// // LevelBrowserLayer::loadLevelsFinished from 0x1403e6010 to 0x1403e6155 (325 bytes) // // 2 xrefs: // > @ 0x140789fd0 // > @ 0x140924efc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:31:43 +0000 // __int64 __fastcall LevelBrowserLayer::loadLevelsFinished(__int64 a1, cocos2d::CCObject *a2, _BYTE *a3) { __int64 result; // rax cocos2d::CCObject *v6; // rcx __int64 v7; // rcx __int64 v8; // rcx char v9; // dl int v10; // ecx int v11; // ecx int v12; // ecx __int64 v13; // rax unsigned int *v14; // rcx __int64 v15; // rax __int64 *v16; // rcx __int64 *i; // r8 __int64 v18; // rax unsigned int v19; // eax __int64 v20; // r11 __int64 v21; // rdx __int64 v22; // rcx result = LevelBrowserLayer::isCorrect(a1 - 544, a3); if ( (_BYTE)result ) { v6 = *(cocos2d::CCObject **)(a1 + 112); if ( v6 ) cocos2d::CCObject::release(v6); *(_QWORD *)(a1 + 112) = a2; cocos2d::CCObject::retain(a2); v7 = *(_QWORD *)(a1 + 120); if ( v7 && GJSearchObject::isLevelSearchObject(v7) ) { v9 = 0; if ( *(_QWORD *)(a1 + 168) ) { v10 = *(_DWORD *)(v8 + 320) - 98; if ( !v10 || (v11 = v10 - 1) == 0 || (v12 = v11 - 1) == 0 || (unsigned int)(v12 - 2) <= 1 ) v9 = 1; } v13 = *(_QWORD *)(a1 + 112); if ( v13 ) { v14 = *(unsigned int **)(v13 + 56); v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((__int64 **)v14 + 2); for ( i = &v16[v15 - 1]; v16 <= i; *(_BYTE *)(v18 + 844) = v9 ) { v18 = *v16; if ( !*v16 ) break; ++v16; *(_BYTE *)(v18 + 843) = 0; } } } } if ( *(_QWORD *)(a1 + 168) ) { v19 = LevelBrowserLayer::selectedCount(a1 - 544); GJSelectionStrip::setCount(v20, v19); } LevelBrowserLayer::setupLevelBrowser(a1 - 544, *(cocos2d::CCObject **)(a1 + 112)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 336LL))(*(_QWORD *)(a1 + 192), 0); result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), 0); v22 = *(_QWORD *)(a1 + 104); if ( v22 ) { LOBYTE(v21) = 1; return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 336LL))(v22, v21); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source