// // DS_Dictionary::setObjectForKey from 0x5ff368 to 0x5ff44c (228 bytes) // // 2 xrefs: // > DS_Dictionary::setArrayForKey @ 0x5ff34c // > DS_Dictionary::setDictForKey @ 0x5ff4dc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void DS_Dictionary::setObjectForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCObject *a3) { char *CString; // r0 const char *v7; // [sp+Ch] [bp-10h] BYREF const char *v8; // [sp+10h] [bp-Ch] BYREF if ( a3 ) { if ( _dynamic_cast( a3, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0) ) { CString = (char *)cocos2d::CCString::getCString((cocos2d::CCString *)a3); sub_776584((int)&v7, CString); v8 = v7; v7 = (const char *)&unk_ACDDA8; DS_Dictionary::setStringForKey((int)a1, a2, &v8); sub_774008(&v8); sub_774008(&v7); return; } if ( _dynamic_cast( a3, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { DS_Dictionary::setDictForKey(a1, a2, (cocos2d::CCDictionary *)a3); return; } if ( _dynamic_cast( a3, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0) ) { DS_Dictionary::setArrayForKey(a1, a2, (cocos2d::CCArray *)a3); return; } } if ( ((int (__fastcall *)(cocos2d::CCObject *))a3->canEncode)(a3) ) { DS_Dictionary::setSubDictForKey(a1, a2, 0, 1); a3->encodeWithCoder(a3, a1); DS_Dictionary::stepOutOfSubDict(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source