// // LevelPage::dialogClosed from 0x1004058e4 to 0x10040598c (168 bytes) // // 2 xrefs: // > sub_10040598C @ 0x100405990 // > @ 0x1008173c0 // // 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::dialogClosed(LevelPage *a1, DialogLayer *a2) { GameManager *v4; // x0 cocos2d::CCSprite *m_secretDoor; // x19 cocos2d::CCSpriteFrameCache *v6; // x0 cocos2d::CCSpriteFrame *v7; // x1 cocos2d::CCObject *v8; // x1 if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 2 ) { v4 = GameManager::sharedState(); GameManager::setUGV(v4, "8", 1); m_secretDoor = a1->m_secretDoor; if ( m_secretDoor ) { v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, "secretDoorBtn2_open_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secretDoor->setDisplayFrame)( m_secretDoor, v7); } } else if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 1 ) { LevelPage::onTheTower(a1, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source