// // GJBaseGameLayer::orderSpawnObjects from 0x100207460 to 0x1002074f8 (152 bytes) // // 2 xrefs: // > PlayLayer::createObjectsFromSetupFinished @ 0x10011c228 // > LevelEditorLayer::onPlaytest @ 0x100362d8c // // 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::orderSpawnObjects(GJBaseGameLayer *a1) { cocos2d::CCArray *m_spawnObjectsArray; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x21 unsigned __int64 v6; // x22 cocos2d::CCObject *v7; // x20 __int64 v8; // [xsp+8h] [xbp-28h] BYREF cocos2d::CCDictionary::removeAllObjects(a1->m_spawnObjects); m_spawnObjectsArray = a1->m_spawnObjectsArray; if ( m_spawnObjectsArray ) { data = m_spawnObjectsArray->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v6 = (unsigned __int64)&arr[num - 1]; do { v7 = *arr; if ( !*arr ) break; ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCObject *))v7->__vftable[22].update)(&v8, *arr); sub_1000229D0(&v7[31].m_uOrderOfArrival, (double *)&v8); ++arr; } while ( (unsigned __int64)arr <= v6 ); m_spawnObjectsArray = a1->m_spawnObjectsArray; } } LevelTools::sortChannelOrderObjects(m_spawnObjectsArray, a1->m_spawnObjects, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source