// // CreatorLayer::dialogClosed from 0x100299840 to 0x1002998f9 (185 bytes) // // 2 xrefs: // > sub_100299920 @ 0x10029992c // > @ 0x1008f7d18 // // 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 CreatorLayer::dialogClosed(CreatorLayer *a1, DialogLayer *a2) { int v2; // eax GameManager *v3; // rax cocos2d::CCSprite *m_secretDoorSprite; // rbx cocos2d::CCSpriteFrameCache *v5; // rax cocos2d::CCSpriteFrame *v6; // rax __int64 v7; // rbx char v8; // [rsp+0h] [rbp-20h] BYREF void *v9[3]; // [rsp+1h] [rbp-1Fh] BYREF v2 = ((__int64 (__fastcall *)(DialogLayer *))a2->getTag)(a2); if ( v2 == 1 ) { v8 = 24; strcpy((char *)v9, "mapPromo.png"); v7 = GJPromoPopup::create(&v8, a2); if ( (v8 & 1) != 0 ) operator delete(*(void **)((char *)&v9[1] + 7)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1288LL))(v7); } else if ( !v2 ) { v3 = GameManager::sharedState(); GameManager::setUGV(v3, "5", 1); m_secretDoorSprite = a1->m_secretDoorSprite; v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "secretDoorBtn_open_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secretDoorSprite->setDisplayFrame)( m_secretDoorSprite, v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source