// // GJShopLayer::dialogClosed from 0x61154c to 0x61167c (304 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJShopLayer::dialogClosed @ 0x611690 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:52 +0000 // int __fastcall GJShopLayer::dialogClosed(GJShopLayer *this, DialogLayer *a2) { FMODAudioEngine *v4; // r8 int v5; // r0 FMODAudioEngine *v6; // r0 FMODAudioEngine *v7; // r0 char **v8; // r0 int v9; // r0 cocos2d::CCTouchDispatcher *v10; // r0 cocos2d::CCDirector *v11; // r0 GJGarageLayer *v12; // r4 AppDelegate *v13; // r0 cocos2d::CCScene *v14; // r2 cocos2d::CCScene *v15; // r0 int result; // r0 int *v17; // r5 int v18; // r2 int v19; // r3 RewardUnlockLayer **v20; // r5 RewardsPage *v21; // r2 RewardUnlockLayer *v22; // r4 _BYTE v23[4]; // [sp+Ch] [bp-14h] BYREF int v24; // [sp+10h] [bp-10h] BYREF int v25; // [sp+14h] [bp-Ch] int v26; // [sp+18h] [bp-8h] if ( (*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2) == 1 ) { v24 = 0; v25 = 0; v26 = 0; v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)((char *)&dword_0 + 1)); std::string::__init(&v24, "door001.ogg", 0xBu); FMODAudioEngine::playEffect(v4, (int)&v24, 1065353216, 0, 1061997773); std::string::~string((int)&v24); v23[0] = 0; v23[1] = 0; v23[2] = 0; v23[3] = -1; v5 = cocos2d::CCLayerColor::create(v23); v6 = (FMODAudioEngine *)(*(int (__fastcall **)(GJShopLayer *, int, int))(*(_DWORD *)this + 232))(this, v5, 1000); v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6); v8 = FMODAudioEngine::stopAllMusic(v7, 1); v9 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8); v10 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 80))(v9); v11 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, this); v12 = (GJGarageLayer *)cocos2d::CCDirector::sharedDirector(v11); v13 = GJGarageLayer::scene(v12); v15 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create( (cocos2d::CCTransitionFade *)0x3F800000, *(float *)&v13, v14); return cocos2d::CCDirector::replaceScene(v12, v15); } else { result = (*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2); if ( result == 2 ) { v24 = 0; v25 = 0; v26 = 0; v17 = (int *)GameStatsManager::sharedState((GameStatsManager *)((char *)&dword_0 + 2)); std::string::__init(&v24, "0022", 4u); v20 = (RewardUnlockLayer **)GameStatsManager::unlockSpecialChest(v17, (int)&v24, v18, v19); result = std::string::~string((int)&v24); if ( v20 ) { v22 = (RewardUnlockLayer *)RewardUnlockLayer::create(v20[15], 0, v21); (*(void (__fastcall **)(GJShopLayer *, RewardUnlockLayer *, int))(*(_DWORD *)this + 232))(this, v22, 100); return RewardUnlockLayer::showCollectReward(v22, (GJRewardItem *)v20); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source