// // GameLevelManager::gotoLevelPage from 0x1000ad64c to 0x1000ad7b0 (356 bytes) // // 2 xrefs: // > LevelCell::onClick @ 0x100136918 // > sub_1002CFAE0 @ 0x1002cfb20 // // This function is hookable on this platform (idp: arm, 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 10:58:37 +0000 // __int64 __fastcall GameLevelManager::gotoLevelPage(_QWORD *a1, __int64 a2) { __int64 result; // x0 int v5; // w8 __int64 v6; // x20 __int64 v7; // x0 void *v8; // x1 __int64 v9; // x0 __int64 SavedLevel_1; // x0 int v11; // w21 __int64 v12; // x0 result = GameManager::sharedState(a1); *(_BYTE *)(result + 712) = 1; if ( !a2 ) return result; v5 = *(_DWORD *)(a2 + 1140); switch ( v5 ) { case 4: SavedLevel_1 = GameLevelManager::getSavedLevel_1((__int64)a1, a2); if ( SavedLevel_1 && (*(_DWORD *)(a2 + 920) <= *(_DWORD *)(a2 + 924) || *(_DWORD *)(SavedLevel_1 + 328) - *(_DWORD *)(SavedLevel_1 + 332) == *(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332)) ) { if ( *(_BYTE *)(SavedLevel_1 + 1105) == 1 ) { GameLevelManager::saveLevel(a1, a2); } else if ( *(_DWORD *)(SavedLevel_1 + 788) >= *(_DWORD *)(a2 + 788) ) { *(_DWORD *)(SavedLevel_1 + 608) = *(_DWORD *)(a2 + 608); a2 = SavedLevel_1; } } v11 = *(unsigned __int8 *)(a2 + 649); v6 = cocos2d::CCDirector::sharedDirector(SavedLevel_1); v12 = LevelInfoLayer::scene(a2, 0); v8 = (void *)cocos2d::CCTransitionFade::create_1(v12, 0.5); if ( v11 == 1 ) return cocos2d::CCDirector::replaceScene(v6, v8); return cocos2d::CCDirector::pushScene(v6, v8); case 3: v6 = cocos2d::CCDirector::sharedDirector(result); v9 = LevelInfoLayer::scene(a2, 0); v8 = (void *)cocos2d::CCTransitionFade::create_1(v9, 0.5); return cocos2d::CCDirector::pushScene(v6, v8); case 2: LODWORD(v6) = cocos2d::CCDirector::sharedDirector(result); v7 = EditLevelLayer::scene(a2); v8 = (void *)cocos2d::CCTransitionFade::create_1(v7, 0.5); return cocos2d::CCDirector::replaceScene(v6, v8); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source