// // GJShopLayer::dialogClosed from 0xa7cf10 to 0xa7d114 (516 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJShopLayer::dialogClosed @ 0xa7d11c // > @ 0x9e938 // > @ 0x14963d0 // // 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 13:00:29 +0000 // __int64 __fastcall GJShopLayer::dialogClosed(GJShopLayer *this, DialogLayer *a2) { FMODAudioEngine *v3; // x0 GameStatsManager *v4; // x0 __int64 v6; // x22 __int64 v7; // x0 FMODAudioEngine *v8; // x0 FMODAudioEngine *v9; // x0 cocos2d::CCDirector *v10; // x0 __int64 v11; // x0 cocos2d::CCTouchDispatcher *v12; // x0 cocos2d::CCDirector *v13; // x0 GJGarageLayer *v14; // x20 AppDelegate *v15; // x0 cocos2d::CCScene *v16; // x1 cocos2d::CCScene *v17; // x0 GameStatsManager *v18; // x22 RewardsPage *v19; // x2 unsigned int *v20; // x21 RewardUnlockLayer *v21; // x22 _BYTE v23[8]; // [xsp+48h] [xbp+48h] BYREF __int64 v24; // [xsp+50h] [xbp+50h] BYREF __int64 v25; // [xsp+58h] [xbp+58h] void *v26; // [xsp+60h] [xbp+60h] v3 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v3 == 1 ) { v6 = FMODAudioEngine::sharedEngine(v3); v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, "door001.ogg", 0xBu); FMODAudioEngine::playEffect(v6, (char *)&v24, 1.0, 0.0, 0.8); if ( (v24 & 1) != 0 ) operator delete(v26); v23[3] = -1; v23[0] = 0; v23[1] = 0; v23[2] = 0; v7 = cocos2d::CCLayerColor::create(v23); v8 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(GJShopLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))( this, v7, 1000); v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v8); v10 = (cocos2d::CCDirector *)FMODAudioEngine::stopAllMusic(v9, 1); v11 = cocos2d::CCDirector::sharedDirector(v10); v12 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL))(v11); v13 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v12, this); v14 = (GJGarageLayer *)cocos2d::CCDirector::sharedDirector(v13); v15 = GJGarageLayer::scene(v14); v17 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v15, 1.0, v16); cocos2d::CCDirector::replaceScene(v14, v17); } else { v4 = (GameStatsManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v4 == 2 ) { v18 = (GameStatsManager *)GameStatsManager::sharedState(v4); v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, "0022", 4u); v20 = (unsigned int *)GameStatsManager::unlockSpecialChest(v18, (char *)&v24); if ( (v24 & 1) != 0 ) operator delete(v26); if ( v20 ) { v21 = (RewardUnlockLayer *)RewardUnlockLayer::create((RewardUnlockLayer *)v20[16], 0, v19); (*(void (__fastcall **)(GJShopLayer *, RewardUnlockLayer *, __int64))(*(_QWORD *)this + 464LL))(this, v21, 100); RewardUnlockLayer::showCollectReward(v21, (GJRewardItem *)v20); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source