// // GJShopLayer::dialogClosed from 0x10014d5bc to 0x10014d740 (388 bytes) // // 2 xrefs: // > sub_10014D774 @ 0x10014d778 // > @ 0x100798d28 // // 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 GJShopLayer::dialogClosed(GJShopLayer *a1, DialogLayer *a2) { FMODAudioEngine *v4; // x20 cocos2d::CCLayerColor *v5; // x0 FMODAudioEngine *v6; // x0 cocos2d::CCDirector *v7; // x0 cocos2d::CCTouchDispatcher *v8; // x0 cocos2d::CCDirector *v9; // x19 cocos2d::CCScene *v10; // x0 cocos2d::CCTransitionFade *v11; // x0 GameStatsManager *v12; // x20 __int64 v13; // x20 RewardUnlockLayer *v14; // x21 void *v15[2]; // [xsp+8h] [xbp-58h] BYREF char v16; // [xsp+1Fh] [xbp-41h] int v17; // [xsp+24h] [xbp-3Ch] BYREF void *__p[2]; // [xsp+28h] [xbp-38h] BYREF char v19; // [xsp+3Fh] [xbp-21h] if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 1 ) { v4 = FMODAudioEngine::sharedEngine(); sub_100009900(__p, "door001.ogg"); FMODAudioEngine::playEffect((__int64)v4, (__int64)__p, 1.0, 0.0, 0.8); if ( v19 < 0 ) operator delete(__p[0]); v17 = -16777216; v5 = cocos2d::CCLayerColor::create_1((const cocos2d::ccColor4B *)&v17); ((void (__fastcall *)(GJShopLayer *, cocos2d::CCLayerColor *, __int64))a1->addChild_0)(a1, v5, 1000); v6 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v6, 1); v7 = cocos2d::CCDirector::sharedDirector(); v8 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v7->getTouchDispatcher)(v7); cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, a1); v9 = cocos2d::CCDirector::sharedDirector(); v10 = GJGarageLayer::scene(); v11 = cocos2d::CCTransitionFade::create_1(1.0, v10); cocos2d::CCDirector::replaceScene(v9, v11); } else if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 2 ) { v12 = GameStatsManager::sharedState(); sub_100009900(v15, "0022"); v13 = GameStatsManager::unlockSpecialChest(v12, v15); if ( v16 < 0 ) operator delete(v15[0]); if ( v13 ) { v14 = RewardUnlockLayer::create(*(_DWORD *)(v13 + 64), nullptr); ((void (__fastcall *)(GJShopLayer *, RewardUnlockLayer *, __int64))a1->addChild_0)(a1, v14, 100); RewardUnlockLayer::showCollectReward(v14, (GJRewardItem *)v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source