// // GJSmartTemplate::savePrefab from 0x53b510 to 0x53b5c2 (178 bytes) // // 1 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x39c44c // // 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 // int __fastcall GJSmartTemplate::savePrefab(cocos2d::CCDictionary **a1, const std::string *a2, int a3) { cocos2d::CCArray *v6; // r4 unsigned int i; // r5 int v8; // r0 int result; // r0 GJSmartPrefab *v10; // r5 _DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF v11[0] = a1; v11[1] = a2; v11[2] = a3; sub_7753D4((int)(a1 + 28), (char *)&unk_939830); v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1[13], a2); if ( !v6 ) { v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject((int)a1[13], v6); } for ( i = 0; i < cocos2d::CCArray::count(v6); ++i ) { v8 = cocos2d::CCArray::objectAtIndex(v6, i); result = sub_774DBC(v8 + 56, a3); if ( !result ) return result; } v10 = GJSmartPrefab::create(); sub_775D40(&v10->m_prefabData, a3); sub_775D40(&v10->m_prefabKey, a2); cocos2d::CCArray::addObject(v6, v10); sub_775C20(v11); GJSmartTemplate::saveRemap(a1); return sub_774008(v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source