// // LevelEditorLayer::forceShowSelectedObjects from 0x4614ac to 0x461512 (102 bytes) // // 2 xrefs: // > LevelEditorLayer::updateVisibility @ 0x462c94 // > LevelEditorLayer::updateVisibility @ 0x462ca4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:53 +0000 // cocos2d::CCArray *__fastcall LevelEditorLayer::forceShowSelectedObjects(cocos2d::CCArray *this, int a2) { int v2; // r3 cocos2d::CCArray *v3; // r6 int v5; // r0 cocos2d::CCObject *v6; // r1 int v7; // r3 _DWORD *v8; // r2 int v9; // r3 int *v10; // r2 int *v11; // r3 int v12; // r1 int v13; // t1 v2 = *((_DWORD *)this + 2964); v3 = this; if ( v2 ) { v5 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 668)); v7 = *((_DWORD *)v3 + 2964); if ( v5 ) { this = *(cocos2d::CCArray **)(v7 + 668); } else { this = *(cocos2d::CCArray **)(v7 + 996); if ( !this ) return this; this = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(this, v6); } if ( this ) { v8 = *((_DWORD **)this + 13); if ( *v8 ) { v9 = *v8 + 0x40000000; v10 = (int *)v8[3]; v11 = &v10[v9 - 1]; while ( v10 <= v11 ) { v13 = *v10++; v12 = v13; if ( !v13 ) break; if ( a2 ) { *(_BYTE *)(v12 + 551) = *(_BYTE *)(v12 + 550); this = nullptr; } else { this = (cocos2d::CCArray *)*(unsigned __int8 *)(v12 + 551); } *(_BYTE *)(v12 + 550) = (_BYTE)this; } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source