// // GJBaseGameLayer::orderSpawnObjects from 0x100162420 to 0x1001624cb (171 bytes) // // 2 xrefs: // > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6bbe // > LevelEditorLayer::onPlaytest @ 0x1000f2679 // // 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) { __int64 v1; // rax cocos2d::CCArray *m_spawnObjectsArray; // rdi cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r12 unsigned __int64 v6; // r13 __int64 v7[6]; // [rsp+0h] [rbp-30h] BYREF v7[0] = v1; cocos2d::CCDictionary::removeAllObjects(a1->m_spawnObjects); m_spawnObjectsArray = a1->m_spawnObjectsArray; if ( m_spawnObjectsArray ) { data = m_spawnObjectsArray->data; if ( data->num ) { arr = data->arr; v6 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; ((void (__fastcall *)(__int64 *, cocos2d::CCObject *))(*arr)->__vftable[22].update)(v7, *arr); sub_10028CC90(); ++arr; } while ( (unsigned __int64)arr <= v6 ); m_spawnObjectsArray = a1->m_spawnObjectsArray; } } else { m_spawnObjectsArray = nullptr; } LevelTools::sortChannelOrderObjects(m_spawnObjectsArray, a1->m_spawnObjects, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source