// // DS_Dictionary::loadRootSubDictFromFile from 0xdba6d4 to 0xdba940 (620 bytes) // // 5 xrefs: // > CCAnimateFrameCache::addSpriteFramesWithFile @ 0x68e56c // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x68ee88 // > CCContentManager::addDict @ 0xdb49c4 // > CCContentManager::addDictDS @ 0xdb4ba8 // > @ 0x4b730 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:44 +0000 // __int64 __fastcall DS_Dictionary::loadRootSubDictFromFile(DS_Dictionary *this, char *a2) { __int64 v4; // x1 __int64 v5; // x0 _QWORD *v6; // x1 char **v7; // x0 __int64 v8; // x0 cocos2d::CCFileUtils *v9; // x0 __int64 v10; // x0 char *v11; // x1 __int64 v12; // x24 unsigned int v13; // w24 __int64 v14; // x22 unsigned int v15; // w20 size_t v17; // x0 cocos2d::CCFileUtils *v18; // x0 __int64 v19; // x0 char *v20; // x1 __int64 v21; // x22 __int64 v22; // [xsp+50h] [xbp+50h] BYREF void *v23[2]; // [xsp+58h] [xbp+58h] BYREF void *v24; // [xsp+68h] [xbp+68h] _QWORD v25[2]; // [xsp+70h] [xbp+70h] BYREF int v26; // [xsp+80h] [xbp+80h] void *v27[2]; // [xsp+88h] [xbp+88h] BYREF void *v28; // [xsp+98h] [xbp+98h] _QWORD v29[2]; // [xsp+A0h] [xbp+A0h] BYREF int v30; // [xsp+B0h] [xbp+B0h] v4 = *((_QWORD *)this + 26); v5 = *((_QWORD *)this + 27); if ( v4 != v5 ) *((_QWORD *)this + 27) = v5 + 8 * ~((unsigned __int64)(v5 - 8 - v4) >> 3); pugi::xml_node::xml_node((pugi::xml_node *)v29); v6 = *((_QWORD **)this + 27); v7 = (char **)((char *)this + 208); if ( (unsigned __int64)v6 >= *((_QWORD *)this + 28) ) { v7 = (char **)std::vector::__push_back_slow_path(v7, v29); } else { if ( v6 ) { *v6 = v29[0]; v6 = *((_QWORD **)this + 27); } *((_QWORD *)this + 27) = v6 + 1; } v8 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)v7); v9 = (cocos2d::CCFileUtils *)(*(_QWORD *(__fastcall **)(void **__return_ptr, __int64, char *, _QWORD))(*(_QWORD *)v8 + 48LL))( v23, v8, a2, 0); v22 = 0; v10 = cocos2d::CCFileUtils::sharedFileUtils(v9); v11 = (char *)v23 + 1; if ( ((__int64)v23[0] & 1) != 0 ) v11 = (char *)v24; v12 = (*(__int64 (__fastcall **)(__int64, char *, char *, __int64 *))(*(_QWORD *)v10 + 32LL))(v10, v11, "r", &v22); pugi::xml_document::load_buffer(v25, this, v12, v22, 116, 0); v13 = v12 == 0; if ( v13 >= (unsigned __int8)pugi::xml_parse_result::operator bool(v25) ) { FileOperation::getFilePath(v27); v17 = strlen(a2); v18 = (cocos2d::CCFileUtils *)std::string::append((__int64)v27, a2, v17); v22 = 0; v19 = cocos2d::CCFileUtils::sharedFileUtils(v18); if ( ((__int64)v27[0] & 1) != 0 ) v20 = (char *)v28; else v20 = (char *)v27 + 1; v21 = (*(__int64 (__fastcall **)(__int64, char *, char *, __int64 *))(*(_QWORD *)v19 + 32LL))(v19, v20, "r", &v22); pugi::xml_document::load_buffer(v29, this, v21, v22, 116, 0); v25[0] = v29[0]; v25[1] = v29[1]; v26 = v30; if ( ((__int64)v27[0] & 1) != 0 ) operator delete(v28); if ( (v21 == 0) < (unsigned int)(unsigned __int8)pugi::xml_parse_result::operator bool(v25) ) goto LABEL_11; } else if ( v13 < (unsigned __int8)pugi::xml_parse_result::operator bool(v25) ) { LABEL_11: v14 = *((_QWORD *)this + 27); v15 = 1; v29[0] = pugi::xml_node::child(this, "plist"); *(_QWORD *)(v14 - 8) = pugi::xml_node::child((pugi::xml_node *)v29, "dict"); DS_Dictionary::checkCompatibility(this); goto LABEL_12; } v15 = 0; LABEL_12: if ( ((__int64)v23[0] & 1) != 0 ) operator delete(v24); return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source