// // GJSmartTemplate::savePrefab from 0x67094c to 0x670a00 (180 bytes) // // 1 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x4888cc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:55:50 +0000 // int __fastcall GJSmartTemplate::savePrefab(int *a1, unsigned __int8 *a2, unsigned __int8 *a3) { cocos2d::CCObject *v6; // r4 unsigned int i; // r5 GJSmartPrefab *v8; // r0 int v9; // r0 int result; // r0 unsigned __int8 *v11; // r5 int v12[3]; // [sp+0h] [bp-14h] BYREF std::string::assign(a1 + 27, (char *)&unk_B6B226); v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(a1[13], a2); if ( !v6 ) { v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(a1[13], v6); } for ( i = 0; ; ++i ) { v8 = (GJSmartPrefab *)cocos2d::CCArray::count(v6); if ( i >= (unsigned int)v8 ) break; v9 = cocos2d::CCArray::objectAtIndex(v6, i); result = sub_66E7A8((unsigned __int8 *)(v9 + 64), a3); if ( result ) return result; } v11 = (unsigned __int8 *)GJSmartPrefab::create(v8); std::string::operator=(v11 + 64, a3); std::string::operator=(v11 + 52, a2); cocos2d::CCArray::addObject(v6, (cocos2d::CCObject *)v11); std::string::basic_string(v12, (int)a2); GJSmartTemplate::saveRemap(a1, (int)v12); return std::string::~string((int)v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source