// // cocos2d::CCDictionary::randomObject from 0x7c7c50 to 0x7c7cc8 (120 bytes) // // 0 xrefs: // // 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 12:00:26 +0000 // int __fastcall cocos2d::CCDictionary::randomObject(cocos2d::CCDictionary *this) { int v2; // r4 cocos2d::CCArray *v3; // r0 int *v4; // r0 int v5; // r3 const char *CString; // r7 size_t v7; // r0 int v9[3]; // [sp+0h] [bp-14h] BYREF if ( *((_DWORD *)this + 14) ) { v3 = cocos2d::CCDictionary::allKeys(this); v4 = (int *)cocos2d::CCArray::randomObject(v3); v5 = *((_DWORD *)this + 14); if ( v5 == 2 ) return cocos2d::CCDictionary::objectForKey(this, v4[13]); if ( v5 == 1 ) { memset(v9, 0, sizeof(v9)); CString = (const char *)cocos2d::CCString::getCString((cocos2d::CCString *)v4); v7 = strlen(CString); std::string::__init(v9, CString, v7); v2 = cocos2d::CCDictionary::objectForKey((int)this, (int)v9); std::string::~string((int)v9); return v2; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source