// // CCContentManager::addDict from 0x5fc3a8 to 0x5fc444 (156 bytes) // // 7 xrefs: // > LoadingLayer::loadAssets @ 0x30b9cc // > LoadingLayer::loadAssets @ 0x30b9da // > LoadingLayer::loadAssets @ 0x30b9e8 // > cocos2d::CCLabelAtlas::initWithString @ 0x5cb32e // > cocos2d::CCParticleSystem::initWithFile @ 0x5dce32 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9584 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x5e9a3e // // 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 // cocos2d::CCDictionary *CCContentManager::addDict(CCContentManager *a1, const char *a2, bool a3) { CCContentManager_vtbl *v3; // r4 cocos2d::CCDictionary *DictForKey; // r4 DS_Dictionary *v7; // r7 pugi::xml_node *m_start; // r0 CCContentManager_vtbl *v9; // r7 _BOOL4 v11; // [sp+8h] [bp-8h] BYREF v11 = a3; v3 = a1[1].__vftable; sub_776584((int)&v11, (char *)a2); DictForKey = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((int)v3, (const char **)&v11); sub_774008(&v11); if ( !DictForKey ) { v7 = (DS_Dictionary *)operator new(0xD8u); DS_Dictionary::DS_Dictionary(v7); DS_Dictionary::loadRootSubDictFromFile(v7, a2); DictForKey = DS_Dictionary::getDictForKey(v7, nullptr, 0); m_start = v7->dictTree.m_start; if ( m_start ) operator delete(m_start); pugi::xml_document::~xml_document(&v7->doc); operator delete(v7); v9 = a1[1].__vftable; sub_776584((int)&v11, (char *)a2); cocos2d::CCDictionary::setObject((int)v9, DictForKey, (const char **)&v11); sub_774008(&v11); } return DictForKey; }