// // CreatorLayer::onMyLevels from 0x14009d310 to 0x14009d51d (525 bytes) // // 2 xrefs: // > CreatorLayer::init @ 0x14009c931 // > @ 0x1406c7578 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 void CreatorLayer::onMyLevels(CreatorLayer *a1, cocos2d::CCObject *a2) { __int64 v2; // rax GJSearchObject *v3; // rdi GameManager *v4; // rcx int IntGameVariable; // ebx GameManager *v6; // rcx GameManager *v7; // rcx GameManager *v8; // rcx struct cocos2d::CCScene *v9; // rbx __int64 v10; // rdx __int64 v11; // rcx LevelBrowserLayer *v12; // rax struct cocos2d::CCTransitionFade *v13; // rbx __int64 v14; // rcx cocos2d::CCDirector *v15; // rax void *v16; // [rsp+40h] [rbp+18h] void *v17; // [rsp+40h] [rbp+18h] void *v18; // [rsp+40h] [rbp+18h] void *v19; // [rsp+40h] [rbp+18h] void *v20; // [rsp+40h] [rbp+18h] v2 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = qword_1406C2ED8; } if ( *(_DWORD *)(v2 + 1200) == 102 ) { v3 = GJSearchObject::create_2(MyLists); } else { v3 = GJSearchObject::create_2(MyLevels); v4 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v17 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = (GameManager *)qword_1406C2ED8; } IntGameVariable = 999; if ( GameManager::getIntGameVariable(v4, "0091") > 999 ) goto LABEL_11; v6 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v18 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getIntGameVariable(v6, "0091") >= 0 ) { LABEL_11: v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getIntGameVariable(v7, "0091") <= 999 ) { v8 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v20 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v8 = (GameManager *)qword_1406C2ED8; } IntGameVariable = GameManager::getIntGameVariable(v8, "0091"); } v3->m_folder = IntGameVariable; } else { v3->m_folder = 0; } } v9 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v11, v10) + 224) = v9; v12 = LevelBrowserLayer::create(v3); v9->addChild_1(v9, v12); v13 = cocos2d::CCTransitionFade::create(0.5, v9); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::pushScene(v15, v13); }