// // GJBaseGameLayer::updateMaxGameplayY from 0x100158e00 to 0x100158eea (234 bytes) // // 2 xrefs: // > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6bc6 // > LevelEditorLayer::onPlaytest @ 0x1000f2276 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJBaseGameLayer::updateMaxGameplayY(GJBaseGameLayer *a1) { LevelSettingsObject *m_levelSettings; // rdi float v3; // xmm0_4 cocos2d::CCArray *m_objects; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r15 unsigned __int64 v7; // r12 float v8; // xmm0_4 cocos2d::CCObject *v9; // r14 m_levelSettings = a1->m_levelSettings; v3 = 2790.0; if ( m_levelSettings ) { v3 = 2790.0; if ( LevelSettingsObject::shouldUseYSection(m_levelSettings) ) { m_objects = a1->m_objects; v3 = 1590.0; if ( m_objects ) { data = m_objects->data; if ( data->num ) { arr = data->arr; v7 = (unsigned __int64)&arr[data->num - 1]; v8 = 1200.0; do { v9 = *arr; if ( !*arr ) break; if ( *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v9->__vftable[2].acceptVisitor)(*arr) + 4) > v8 ) v8 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *, float))v9->__vftable[2].acceptVisitor)( v9, v8) + 4); ++arr; } while ( (unsigned __int64)arr <= v7 ); v3 = (float)(v8 + 90.0) + 300.0; } } } } a1->m_maxGameplayY = v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source