// // DS_Dictionary::setObjectForKey from 0x80d48c to 0x80d582 (246 bytes) // // 2 xrefs: // > DS_Dictionary::setArrayForKey @ 0x80d470 // > DS_Dictionary::setDictForKey @ 0x80d61e // // 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:01:33 +0000 // DS_Dictionary *__fastcall DS_Dictionary::setObjectForKey(DS_Dictionary *this, const char *a2, cocos2d::CCObject *lpsrc) { DS_Dictionary *result; // r0 char *CString; // r4 size_t v8; // r0 int v9; // r0 int v10; // r1 int v11; // r2 int v12; // [sp+Ch] [bp-20h] BYREF int v13; // [sp+10h] [bp-1Ch] int v14; // [sp+14h] [bp-18h] _DWORD v15[3]; // [sp+18h] [bp-14h] BYREF if ( lpsrc ) { if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0) ) { v12 = 0; v13 = 0; v14 = 0; CString = cocos2d::CCString::getCString(lpsrc); v8 = strlen(CString); std::string::__init(&v12, CString, v8); v9 = v12; v10 = v13; v11 = v14; v12 = 0; v13 = 0; v14 = 0; v15[0] = v9; v15[1] = v10; v15[2] = v11; DS_Dictionary::setStringForKey((int)this, a2, (unsigned __int8 *)v15); std::string::~string((int)v15); return (DS_Dictionary *)std::string::~string((int)&v12); } if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { return (DS_Dictionary *)DS_Dictionary::setDictForKey(this, a2, lpsrc); } if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0) ) { return DS_Dictionary::setArrayForKey(this, a2, lpsrc); } } result = (DS_Dictionary *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)lpsrc + 28))(lpsrc); if ( result ) { DS_Dictionary::setSubDictForKey(this, a2, 0, 1); (*(void (__fastcall **)(cocos2d::CCObject *, DS_Dictionary *))(*(_DWORD *)lpsrc + 24))(lpsrc, this); return (DS_Dictionary *)DS_Dictionary::stepOutOfSubDict((int)this); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source