// // LevelPage::onTheTower from 0x1004049a4 to 0x100404ca0 (764 bytes) // // 3 xrefs: // > LevelPage::onPlay @ 0x100403990 // > LevelPage::dialogClosed @ 0x10040597c // > LevelPage::updateDynamicPage @ 0x10040276c // // 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 // void __fastcall LevelPage::onTheTower(LevelPage *a1, cocos2d::CCObject *a2) { GameManager *v3; // x0 cocos2d::CCDirector *v4; // x19 cocos2d::CCScene *v5; // x0 cocos2d::CCTransitionFade *v6; // x0 cocos2d::CCArray *v7; // x20 GameManager *v8; // x0 DialogLayer *v9; // x20 DialogDelegate *v10; // x19 cocos2d::CCDirector *v11; // x0 void *v12[2]; // [xsp+0h] [xbp-110h] BYREF char v13; // [xsp+17h] [xbp-F9h] void *v14[2]; // [xsp+18h] [xbp-F8h] BYREF char v15; // [xsp+2Fh] [xbp-E1h] void *v16[2]; // [xsp+30h] [xbp-E0h] BYREF char v17; // [xsp+47h] [xbp-C9h] void *v18[2]; // [xsp+48h] [xbp-C8h] BYREF char v19; // [xsp+5Fh] [xbp-B1h] void *__p[2]; // [xsp+60h] [xbp-B0h] BYREF char v21; // [xsp+77h] [xbp-99h] void *v22[2]; // [xsp+78h] [xbp-98h] BYREF char v23; // [xsp+8Fh] [xbp-81h] void *v24[2]; // [xsp+90h] [xbp-80h] BYREF char v25; // [xsp+A7h] [xbp-69h] void *v26[2]; // [xsp+A8h] [xbp-68h] BYREF char v27; // [xsp+BFh] [xbp-51h] void *v28[2]; // [xsp+C0h] [xbp-50h] BYREF char v29; // [xsp+D7h] [xbp-39h] void *v30[2]; // [xsp+D8h] [xbp-38h] BYREF char v31; // [xsp+EFh] [xbp-21h] v3 = GameManager::sharedState(); if ( GameManager::getUGV(v3, "28") ) { v4 = cocos2d::CCDirector::sharedDirector(); v5 = LevelAreaLayer::scene(); v6 = cocos2d::CCTransitionFade::create_1(0.5, v5); cocos2d::CCDirector::replaceScene(v4, v6); GameManager::sharedState()->m_sceneEnum = 9; } else { v7 = (cocos2d::CCArray *)sub_10024A15C(); sub_100009900(v30, "Scratch"); sub_100009900(v28, "Where do you think you're going?"); DialogObject::create((__int64)v30, (__int64)v28, 10, 0, 0xFFFFFF, 1.0); sub_10024A2D0((__int64)v7); if ( v29 < 0 ) operator delete(v28[0]); if ( v31 < 0 ) operator delete(v30[0]); sub_100009900(v26, "Scratch"); sub_100009900(v24, "There's nothing over there, that place has been abandoned for years."); DialogObject::create((__int64)v26, (__int64)v24, 13, 0, 0xFFFFFF, 1.0); sub_10024A2D0((__int64)v7); if ( v25 < 0 ) operator delete(v24[0]); if ( v27 < 0 ) operator delete(v26[0]); sub_100009900(v22, "Scratch"); sub_100009900(__p, "..."); DialogObject::create((__int64)v22, (__int64)__p, 8, 0, 0xFFFFFF, 1.0); sub_10024A2D0((__int64)v7); if ( v21 < 0 ) operator delete(__p[0]); if ( v23 < 0 ) operator delete(v22[0]); sub_100009900(v18, "Scratch"); sub_100009900(v16, "We can take a quick look if you want, but we can't stay long."); DialogObject::create((__int64)v18, (__int64)v16, 13, 0, 0xFFFFFF, 1.0); sub_10024A2D0((__int64)v7); if ( v17 < 0 ) operator delete(v16[0]); if ( v19 < 0 ) operator delete(v18[0]); sub_100009900(v14, "Scratch"); sub_100009900(v12, "RubRub is always watching...."); DialogObject::create((__int64)v14, (__int64)v12, 12, 0, 0xFFFFFF, 1.0); sub_10024A2D0((__int64)v7); if ( v13 < 0 ) operator delete(v12[0]); if ( v15 < 0 ) operator delete(v14[0]); v8 = GameManager::sharedState(); GameManager::setUGV(v8, "28", 1); v9 = DialogLayer::createWithObjects(v7, 2); v10 = &a1->DialogDelegate; v9->m_delegate = v10; v11 = cocos2d::CCDirector::sharedDirector(); ((void (__fastcall *)(cocos2d::CCScene *, DialogLayer *, __int64))v11->m_pRunningScene->addChild_0)( v11->m_pRunningScene, v9, 1000); ((void (__fastcall *)(DialogLayer *, __int64))v9->setTag)(v9, 1); v9->m_delegate = v10; v9->m_noRemove = 1; DialogLayer::updateChatPlacement(v9, Center); DialogLayer::animateInRandomSide(v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source