// // SecretRewardsLayer::onShop from 0x100632830 to 0x100632963 (307 bytes) // // 1 xrefs: // > SecretRewardsLayer::init @ 0x10063196f // // 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) { ShopType v2; // r14d GameManager *v3; // rax GameManager *v4; // rax GameManager *v5; // rax GameManager *v6; // rax cocos2d::CCDirector *v7; // r15 cocos2d::CCScene *v8; // rax cocos2d::CCTransitionMoveInT *v9; // rax v2 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); switch ( v2 ) { case Secret: v3 = GameManager::sharedState(); if ( GameManager::getUGV(v3, "11") ) goto LABEL_9; SecretRewardsLayer::showDialog01(a1); break; case Community: v6 = GameManager::sharedState(); if ( GameManager::getUGV(v6, "20") ) goto LABEL_9; SecretRewardsLayer::showDialog03(a1); break; case Mechanic: v4 = GameManager::sharedState(); if ( GameManager::getUGV(v4, "35") ) goto LABEL_9; SecretRewardsLayer::showDialogMechanic(a1); break; case Diamond: v5 = GameManager::sharedState(); if ( GameManager::getUGV(v5, "34") ) { LABEL_9: v7 = cocos2d::CCDirector::sharedDirector(); v8 = GJShopLayer::scene(v2); v9 = cocos2d::CCTransitionMoveInT::create(0.5, v8); if ( cocos2d::CCDirector::replaceScene(v7, v9) ) ((void (__fastcall *)(SecretRewardsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); } else { SecretRewardsLayer::showDialogDiamond(a1); } break; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source