// // SecretRewardsLayer::dialogClosed from 0x6caaa0 to 0x6cab2a (138 bytes) // // 1 xrefs: // > `non-virtual thunk to'SecretRewardsLayer::dialogClosed @ 0x6cab40 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:58 +0000 // int __fastcall SecretRewardsLayer::dialogClosed(SecretRewardsLayer *this, DialogLayer *a2) { cocos2d::CCScene *v4; // r6 GameManager *v5; // r0 char *v6; // r1 int result; // r0 GameManager *v8; // r0 GameManager *v9; // r0 v4 = (cocos2d::CCScene *)(*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2); if ( v4 == (cocos2d::CCScene *)((char *)&dword_0 + 2) ) { v5 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2)); v6 = "20"; LABEL_5: GameManager::setUGV(v5, v6, (_BYTE *)&dword_0 + 1); return SecretRewardsLayer::showShop(this, v4); } v4 = (cocos2d::CCScene *)(*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2); if ( v4 == (cocos2d::CCScene *)((char *)&dword_0 + 1) ) { v5 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1)); v6 = "11"; goto LABEL_5; } if ( (*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2) == 3 ) { v8 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3)); GameManager::setUGV(v8, "34", (_BYTE *)&dword_0 + 1); return SecretRewardsLayer::showShop(this, (cocos2d::CCScene *)byte_4); } else { result = (*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2); if ( result == 4 ) { v9 = (GameManager *)GameManager::sharedState((GameManager *)byte_4); GameManager::setUGV(v9, "35", (_BYTE *)&dword_0 + 1); return SecretRewardsLayer::showShop(this, (cocos2d::CCScene *)((char *)&dword_0 + 3)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source