// // GJBaseGameLayer::updateMaxGameplayY from 0x866850 to 0x86694c (252 bytes) // // 3 xrefs: // > PlayLayer::createObjectsFromSetupFinished @ 0x5d7d7c // > LevelEditorLayer::onPlaytest @ 0x6640a8 // > @ 0x7f410 // // 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 GJBaseGameLayer::updateMaxGameplayY(GJBaseGameLayer *a1) { LevelSettingsObject *m_levelSettings; // x0 cocos2d::CCArray *m_objects; // x0 cocos2d::ccArray *data; // x1 cocos2d::CCObject **arr; // x19 __int64 v6; // x0 char *v7; // x22 cocos2d::CCObject *v8; // x20 float v9; // s8 m_levelSettings = a1->m_levelSettings; if ( m_levelSettings && LevelSettingsObject::shouldUseYSection(m_levelSettings) ) { m_objects = a1->m_objects; if ( m_objects && (data = m_objects->data, data->num) && (arr = data->arr, v6 = 8LL * data->num - 8, v7 = (char *)arr + v6, arr <= (cocos2d::CCObject **)((char *)arr + v6)) && (v8 = *arr) != nullptr ) { v9 = 1200.0; do { if ( *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v8->__vftable[2].acceptVisitor)(v8) + 4) > v9 ) v9 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v8->__vftable[2].acceptVisitor)(v8) + 4); if ( v7 < (char *)++arr ) break; v8 = *arr; } while ( *arr ); a1->m_maxGameplayY = (float)(v9 + 90.0) + 300.0; } else { a1->m_maxGameplayY = 1590.0; } } else { a1->m_maxGameplayY = 2790.0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source