// // GJRewardItem::getRewardObjectForType from 0x51670e to 0x51675e (80 bytes) // // 1 xrefs: // > GameStatsManager::preProcessReward @ 0x522c86 // // 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:51:41 +0000 // cocos2d::CCObject *__fastcall GJRewardItem::getRewardObjectForType(int a1, int a2) { cocos2d::CCObject *v4; // r0 unsigned int i; // r6 cocos2d::CCObject *v6; // r5 if ( !*(_DWORD *)(a1 + 64) ) { v4 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); sub_5158BA((cocos2d::CCObject *)(a1 + 64), v4); } for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 64)); ++i ) { v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 64), i); if ( *((_DWORD *)v6 + 13) == a2 ) return v6; } v6 = GJRewardObject::create(a2, 0, 0); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 64), v6); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source