// // FileSaveManager::firstLoad from 0x2ea9f8 to 0x2eab84 (396 bytes) // // 0 xrefs: // // 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 FileSaveManager::firstLoad(FileSaveManager *a1) { unsigned int v2; // r6 cocos2d::CCDictionary *StoreData; // r5 cocos2d::CCString *v4; // r0 char *CString; // r0 cocos2d::CCDictionary *m_storeData; // r5 cocos2d::CCDictionary *v7; // r8 cocos2d::CCString *v8; // r0 char *v9; // r5 unsigned int v10; // r5 cocos2d::CCArray *v11; // r10 cocos2d::CCString *v12; // r0 char *v13; // r11 cocos2d::CCObject *v14; // r9 cocos2d::CCDictionary *v15; // r5 cocos2d::CCArray *v16; // [sp+4h] [bp-38h] char *v17; // [sp+8h] [bp-34h] cocos2d::CCDictionary *v18; // [sp+1Ch] [bp-20h] _BYTE v19[4]; // [sp+2Ch] [bp-10h] BYREF std::string v20; // [sp+30h] [bp-Ch] BYREF v2 = 0; StoreData = FileSaveManager::getStoreData(a1); cocos2d::CCObject::retain(StoreData); a1->m_storeData = StoreData; v16 = cocos2d::CCDictionary::allKeys(StoreData); while ( v2 < cocos2d::CCArray::count(v16) ) { v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v16, v2); CString = (char *)cocos2d::CCString::getCString(v4); m_storeData = a1->m_storeData; v17 = CString; sub_776584((int)&v20, CString); v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(m_storeData, &v20); sub_774008(&v20); sub_776584((int)&v20, "category"); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v7, &v20); v9 = (char *)cocos2d::CCString::getCString(v8); sub_774008(&v20); sub_776584((int)v19, v9); sub_776584((int)&v20, "group"); v10 = sub_774DBC(v19, &v20); sub_774008(&v20); sub_774008(v19); if ( !v10 ) { v11 = cocos2d::CCDictionary::allKeys(v7); while ( v10 < cocos2d::CCArray::count(v11) ) { v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, v10); v13 = (char *)cocos2d::CCString::getCString(v12); sub_776584((int)&v20, v13); v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v7, &v20); sub_774008(&v20); if ( v14 ) { if ( _dynamic_cast( v14, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v18 = a1->m_storeData; sub_776584((int)&v20, v13); cocos2d::CCDictionary::setObject((int)v18, v14); sub_774008(&v20); } } ++v10; } v15 = a1->m_storeData; sub_776584((int)&v20, v17); cocos2d::CCDictionary::removeObjectForKey(v15); sub_774008(&v20); } ++v2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source