// // CreatorLayer::onSavedLevels from 0x1000db6d4 to 0x1000db7a8 (212 bytes) // // 1 xrefs: // > CreatorLayer::init @ 0x1000dac88 // // 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:59 +0000 // __int64 __fastcall CreatorLayer::onSavedLevels(__int64 a1) { __int64 v1; // x0 __int64 v2; // x0 __int64 v3; // x0 char *v4; // x19 __int64 v5; // x0 __int64 IntGameVariable; // x0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x20 __int64 v13; // x0 __int64 v14; // x1 v1 = GameManager::sharedState(a1); if ( *(_DWORD *)(v1 + 1308) == 103 && (v2 = GameManager::sharedState(v1), !(unsigned int)GameManager::onlyCuratedLevels(v2)) ) { v3 = 103; } else { v3 = 99; } v4 = GJSearchObject::create_2(v3); v5 = GameManager::sharedState(v4); IntGameVariable = GameManager::getIntGameVariable(v5, "0092"); if ( (int)IntGameVariable <= 998 && (v7 = GameManager::sharedState(IntGameVariable), IntGameVariable = GameManager::getIntGameVariable(v7, "0092"), (int)IntGameVariable < 1) ) { v11 = 0; } else { v8 = GameManager::sharedState(IntGameVariable); v9 = GameManager::getIntGameVariable(v8, "0092"); if ( (int)v9 > 998 ) { v11 = 999; } else { v10 = GameManager::sharedState(v9); v11 = GameManager::getIntGameVariable(v10, "0092"); } } *((_DWORD *)v4 + 105) = v11; v12 = cocos2d::CCDirector::sharedDirector(v11); v13 = LevelBrowserLayer::scene(v4); v14 = cocos2d::CCTransitionFade::create_1(v13, 0.5); return cocos2d::CCDirector::pushScene(v12, v14); }