// // LevelBrowserLayer::loadLevelsFinished from 0x4a92bc to 0x4a938c (208 bytes) // // 2 xrefs: // > `non-virtual thunk to'LevelBrowserLayer::loadLevelsFinished @ 0x4a9390 // > LevelListLayer::loadLevelsFinished @ 0x6d7278 // // 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:49:57 +0000 // unsigned int __fastcall LevelBrowserLayer::loadLevelsFinished( cocos2d::CCArray **this, cocos2d::CCArray *a2, const char *a3, int a4) { unsigned int result; // r0 cocos2d::CCObject *v7; // r0 GJSearchObject *v8; // r0 unsigned int v9; // r3 int v10; // r2 int *v11; // r1 int v12; // r2 int *v13; // r1 int *v14; // r2 int v15; // r0 int v16; // t1 result = LevelBrowserLayer::isCorrect((LevelBrowserLayer *)this, a3); if ( result ) { v7 = *(this + 124); if ( v7 ) cocos2d::CCObject::release(v7); *(this + 124) = a2; cocos2d::CCObject::retain(a2); v8 = *(this + 125); if ( v8 && GJSearchObject::isLevelSearchObject(v8) ) { v9 = (unsigned int)*(this + 125); if ( v9 ) { if ( *(this + 131) ) { v9 = *(_DWORD *)(v9 + 264) - 98; LOBYTE(v9) = v9 <= 5 && ((1 << v9) & 0x37) != 0; } else { LOBYTE(v9) = 0; } } v10 = (int)*(this + 124); if ( v10 ) { v11 = *(int **)(v10 + 52); v12 = *v11; if ( *v11 ) { v13 = (int *)v11[3]; v14 = &v13[v12 - 1]; while ( v13 <= v14 ) { v16 = *v13++; v15 = v16; if ( !v16 ) break; *(_BYTE *)(v15 + 595) = 0; *(_BYTE *)(v15 + 596) = v9; } } } } LevelBrowserLayer::updateSelectUI(this); LevelBrowserLayer::setupLevelBrowser((LevelBrowserLayer *)this, *(this + 124)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 135) + 172))(*(this + 135), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 117) + 172))(*(this + 117), 0); result = (unsigned int)*(this + 123); if ( result ) return (*(int (__fastcall **)(unsigned int, int))(*(_DWORD *)result + 172))(result, 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source