// // SecretRewardsLayer::onShop from 0x10070f460 to 0x10070f593 (307 bytes) // // 1 xrefs: // > SecretRewardsLayer::init @ 0x10070e59f // // This function is hookable on this platform (idp: pc, 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 12:36:05 +0000 // __int64 __fastcall SecretRewardsLayer::onShop(__int64 a1, __int64 a2) { unsigned int v2; // r14d __int64 result; // rax __int64 v4; // rax const char *v5; // rsi __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // r15 _BYTE *v10; // rax _QWORD *v11; // rax v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); result = v2 - 1; switch ( v2 ) { case 1u: v4 = GameManager::sharedState(); v5 = "11"; if ( (unsigned __int8)GameManager::getUGV(v4, "11") ) goto LABEL_9; result = SecretRewardsLayer::showDialog01(a1); break; case 2u: v8 = GameManager::sharedState(); v5 = "20"; if ( (unsigned __int8)GameManager::getUGV(v8, "20") ) goto LABEL_9; result = SecretRewardsLayer::showDialog03(a1); break; case 3u: v6 = GameManager::sharedState(); v5 = "35"; if ( (unsigned __int8)GameManager::getUGV(v6, "35") ) goto LABEL_9; result = SecretRewardsLayer::showDialogMechanic(a1); break; case 4u: v7 = GameManager::sharedState(); v5 = "34"; if ( (unsigned __int8)GameManager::getUGV(v7, "34") ) { LABEL_9: v9 = cocos2d::CCDirector::sharedDirector(); v10 = GJShopLayer::scene(v2, (__int64)v5); v11 = cocos2d::CCTransitionMoveInT::create((__int64)v10, 0.5); result = cocos2d::CCDirector::replaceScene(v9, v11); if ( (_BYTE)result ) result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); } else { result = SecretRewardsLayer::showDialogDiamond(a1); } break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source