// // DS_Dictionary::setArrayForKey from 0x100162484 to 0x100162558 (212 bytes) // // 6 xrefs: // > GameLevelManager::encodeDataTo @ 0x10009aedc // > GameLevelManager::encodeDataTo @ 0x10009afd0 // > DS_Dictionary::setObjectForKey @ 0x10016267c // > LocalLevelManager::encodeDataTo @ 0x1001c92c8 // > LocalLevelManager::encodeDataTo @ 0x1001c92f8 // > GJRewardItem::encodeWithCoder @ 0x100340264 // // 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 __fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCArray *a3) { __int64 v5; // x21 cocos2d::CCObject *v6; // x23 cocos2d::CCString *v7; // x0 const char *CString; // x0 std::__vector_base::pointer end; // x8 if ( a3 ) { DS_Dictionary::setSubDictForKey(a1, a2, 0, 1); DS_Dictionary::setBoolForKey(a1, "_isArr", 1, 0); if ( (unsigned int)sub_10024A36C(a3) ) { v5 = 0; do { v6 = (cocos2d::CCObject *)sub_10024A388(a3, v5); v7 = (cocos2d::CCString *)sub_100268F4C("k_%i", v5); CString = cocos2d::CCString::getCString(v7); DS_Dictionary::setObjectForKey(a1, CString, v6); v5 = (unsigned int)(v5 + 1); } while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a3) ); } end = a1->dictTree.__end_; if ( (unsigned __int64)((char *)end - (char *)a1->dictTree.__begin_) >= 9 ) a1->dictTree.__end_ = end - 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source