// // DS_Dictionary::setArrayForKey from 0x100180730 to 0x100180872 (322 bytes) // // 6 xrefs: // > GJRewardItem::encodeWithCoder @ 0x10008f439 // > DS_Dictionary::setObjectForKey @ 0x100180a10 // > GameLevelManager::encodeDataTo @ 0x10053b04a // > GameLevelManager::encodeDataTo @ 0x10053b152 // > LocalLevelManager::encodeDataTo @ 0x1005f7e0e // > LocalLevelManager::encodeDataTo @ 0x1005f7e3c // // 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) { std::__vector_base::pointer v5; // rdi const char *v6; // rsi const char *v7; // rsi unsigned int v8; // r12d cocos2d::CCObject *v9; // r13 cocos2d::CCString *v10; // rax const char *CString; // rax char v12; // [rsp-48h] [rbp-48h] __int64 v13; // [rsp-40h] [rbp-40h] BYREF __int64 v14; // [rsp-38h] [rbp-38h] BYREF if ( a3 ) { DS_Dictionary::setSubDictForKey(a1, a2, 0, 1); pugi::xml_node::xml_node(&v13); v5 = a1->dictTree.__end_ - 1; v6 = "k"; if ( a1->compatible ) v6 = "key"; v13 = sub_10063C660(v5, v6); v14 = sub_10063C150(&v13, 3); sub_10063BA40(&v14, "_isArr"); v7 = "t"; if ( a1->compatible ) v7 = "true"; sub_10063C7D0(&a1->dictTree.__end_[-1], v7, &v13); if ( (unsigned int)sub_100720070(a3) ) { v8 = 0; do { v9 = (cocos2d::CCObject *)sub_1007200C0(a3, v8); v10 = (cocos2d::CCString *)sub_1007AB580("k_%i", v12); CString = cocos2d::CCString::getCString(v10); DS_Dictionary::setObjectForKey(a1, CString, v9); ++v8; } while ( v8 < (unsigned int)sub_100720070(a3) ); } if ( (std::__vector_base::pointer)((char *)a1->dictTree.__end_ - (char *)a1->dictTree.__begin_) >= (std::__vector_base::pointer)9 ) --a1->dictTree.__end_; } }