// // GJShopLayer::dialogClosed from 0x1001cbebc to 0x1001cc040 (388 bytes) // // 2 xrefs: // > sub_1001CC074 @ 0x1001cc078 // > @ 0x1008ee0a8 // // 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 11:00:20 +0000 // void __fastcall GJShopLayer::dialogClosed(__int64 a1, __int64 a2) { __int64 v4; // x20 _WORD *v5; // x0 _QWORD *v6; // x0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 int v12; // w19 __int64 v13; // x0 void *v14; // x0 __int64 v15; // x0 __int64 v16; // x20 __int64 v17; // x20 __int64 v18; // x21 void *v19[2]; // [xsp+8h] [xbp-58h] BYREF char v20; // [xsp+1Fh] [xbp-41h] int v21; // [xsp+24h] [xbp-3Ch] BYREF void *__p[2]; // [xsp+28h] [xbp-38h] BYREF char v23; // [xsp+3Fh] [xbp-21h] if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 ) { v4 = FMODAudioEngine::sharedEngine(); sub_100009900(__p, "door001.ogg"); FMODAudioEngine::playEffect(v4, (__int64)__p, 1.0, 0.0, 0.8); if ( v23 < 0 ) operator delete(__p[0]); v21 = -16777216; v5 = cocos2d::CCLayerColor::create_1((__int64)&v21); (*(void (__fastcall **)(__int64, _WORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 1000); v6 = (_QWORD *)FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v6, 1); v8 = cocos2d::CCDirector::sharedDirector(v7); v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8); v10 = cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, a1); v11 = cocos2d::CCDirector::sharedDirector(v10); v12 = v11; v13 = GJGarageLayer::scene(v11); v14 = (void *)cocos2d::CCTransitionFade::create_1(v13, 1.0); cocos2d::CCDirector::replaceScene(v12, v14); } else { v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v15 == 2 ) { v16 = GameStatsManager::sharedState(v15); sub_100009900(v19, "0022"); v17 = GameStatsManager::unlockSpecialChest(v16, v19); if ( v20 < 0 ) operator delete(v19[0]); if ( v17 ) { v18 = RewardUnlockLayer::create(*(unsigned int *)(v17 + 64), 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 100); RewardUnlockLayer::showCollectReward(v18, v17); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source