// // SecretRewardsLayer::onShop from 0x1002ea008 to 0x1002ea104 (252 bytes) // // 1 xrefs: // > SecretRewardsLayer::init @ 0x1002e940c // // 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 SecretRewardsLayer::onShop(SecretRewardsLayer *a1, cocos2d::CCObject *a2) { int v3; // w0 int v4; // w20 GameManager *v5; // x0 GameManager *v6; // x0 GameManager *v7; // x0 GameManager *v8; // x0 v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v4 = v3; if ( v3 > 2 ) { if ( v3 == 3 ) { v8 = GameManager::sharedState(); if ( GameManager::getUGV(v8, "35") ) { LABEL_14: SecretRewardsLayer::showShop(a1, v4); return; } SecretRewardsLayer::showDialogMechanic(a1); } else if ( v3 == 4 ) { v6 = GameManager::sharedState(); if ( !GameManager::getUGV(v6, "34") ) { SecretRewardsLayer::showDialogDiamond(a1); return; } goto LABEL_14; } } else { if ( v3 == 1 ) { v7 = GameManager::sharedState(); if ( !GameManager::getUGV(v7, "11") ) { SecretRewardsLayer::showDialog01(a1); return; } goto LABEL_14; } if ( v3 == 2 ) { v5 = GameManager::sharedState(); if ( !GameManager::getUGV(v5, "20") ) { SecretRewardsLayer::showDialog03(a1); return; } goto LABEL_14; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source