// // GJShopLayer::ccTouchBegan from 0x6128c0 to 0x6129f8 (312 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJShopLayer::ccTouchBegan @ 0x612a18 // // 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:54:53 +0000 // int __fastcall GJShopLayer::ccTouchBegan(const cocos2d::CCPoint *a1) { float v2; // s15 int v3; // r0 GameManager *v4; // r0 GameManager *v5; // r7 int v6; // r3 int v7; // r5 GameManager *v8; // r0 GameStatsManager *UGV; // r0 int v10; // r0 int v11; // r9 int v12; // r5 int v13; // r0 _BYTE v15[8]; // [sp+8h] [bp-2Ch] BYREF int v16[3]; // [sp+10h] [bp-24h] BYREF _BYTE v17[16]; // [sp+1Ch] [bp-18h] BYREF if ( *((_DWORD *)a1 + 85) ) return 0; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v15); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v17, a1); cocos2d::CCPoint::operator=(v15, v17); v2 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 92) + 96))(*((_DWORD *)a1 + 92)); v3 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 92) + 96))(*((_DWORD *)a1 + 92)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v17, v2 - 40.0, (float)(*(float *)(v3 + 4) - 45.0) + 10.0, 80.0, 90.0); v4 = (GameManager *)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v17, (const cocos2d::CCPoint *)v15); v5 = v4; if ( !v4 ) return 1; v6 = *((_DWORD *)a1 + 92); v7 = *(unsigned __int8 *)(v6 + 581); if ( *(_BYTE *)(v6 + 581) ) return 1; v8 = (GameManager *)GameManager::sharedState(v4); UGV = (GameStatsManager *)GameManager::getUGV(v8, "31"); if ( UGV ) { v10 = GameStatsManager::sharedState(UGV); v16[0] = v7; v16[1] = v7; v16[2] = v7; v11 = v10; std::string::__init(v16, "0022", 4u); v12 = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked(v11, (int)v16) ^ 1; std::string::~string((int)v16); } else { v12 = 0; } v13 = *((_DWORD *)a1 + 92); if ( *(int *)(v13 + 584) <= 4 && !v12 ) { AnimatedShopKeeper::playReactAnimation(v13); return (int)v5; } *(_DWORD *)(v13 + 584) = 2; GJShopLayer::showReactMessage(a1); if ( *((_DWORD *)a1 + 93) != 9 ) return 1; *(_DWORD *)(*((_DWORD *)a1 + 92) + 584) = 0; return (int)v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source