// // SecretLayer3::onChest01 from 0x1004a5d20 to 0x1004a5dcb (171 bytes) // // 1 xrefs: // > SecretLayer3::init @ 0x1004a4698 // // 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 SecretLayer3::onChest01(SecretLayer3 *a1, cocos2d::CCObject *a2) { __m128 v2; // xmm0 GameStatsManager *v3; // rax GJRewardItem *v4; // r14 RewardUnlockLayer *v5; // r15 char v6; // [rsp+0h] [rbp-30h] BYREF char v7[15]; // [rsp+1h] [rbp-2Fh] BYREF void *__p; // [rsp+10h] [rbp-20h] if ( !a1->m_lockInput ) { ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[13].copyWithZone)(a2, 0); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[4].~CCObject)(a2, 0); v3 = GameStatsManager::sharedState(); v6 = 8; strcpy(v7, "0001"); v4 = GameStatsManager::unlockSpecialChest(v3, (__int64)&v6, v2); if ( (v6 & 1) != 0 ) operator delete(__p); if ( v4 ) { v5 = RewardUnlockLayer::create(v4->m_rewardType, nullptr); ((void (__fastcall *)(SecretLayer3 *, RewardUnlockLayer *, __int64))a1->addChild_0)(a1, v5, 100); RewardUnlockLayer::showCollectReward(v5, v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source