// // cocos2d::CCFileUtils::writeToFile from 0xd74ad4 to 0xd74c04 (304 bytes) // // 3 xrefs: // > @ 0x105e80 // > @ 0x152d9c8 // > @ 0x152de88 // // 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:02 +0000 // __int64 __fastcall cocos2d::CCFileUtils::writeToFile(__int64 a1, __int64 a2, __int64 a3) { tinyxml2::XMLDocument *v5; // x19 tinyxml2::XMLNode *v6; // x0 tinyxml2::XMLNode *v7; // x0 tinyxml2::XMLElement *v8; // x20 tinyxml2::XMLAttribute *Attribute; // x0 tinyxml2::XMLNode *v10; // x1 const char *v11; // x1 bool v12; // zf __int64 v13; // x1 tinyxml2::XMLDocument *v14; // x0 unsigned int v15; // w19 v5 = (tinyxml2::XMLDocument *)operator new(0x280u); tinyxml2::XMLDocument::XMLDocument(v5, 1, 0); v6 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewDeclaration(v5, "xml version=\"1.0\" encoding=\"UTF-8\""); if ( !v6 ) goto LABEL_10; tinyxml2::XMLNode::InsertEndChild(v5, v6); v7 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewElement( v5, "!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\""); tinyxml2::XMLNode::InsertEndChild(v5, v7); v8 = (tinyxml2::XMLElement *)tinyxml2::XMLDocument::NewElement(v5, "plist"); Attribute = (tinyxml2::XMLAttribute *)tinyxml2::XMLElement::FindOrCreateAttribute(v8, "version"); tinyxml2::XMLAttribute::SetAttribute(Attribute, "1.0"); if ( !v8 ) goto LABEL_10; tinyxml2::XMLNode::InsertEndChild(v5, v8); v10 = sub_D74A10(a2, v5); if ( v10 ) { tinyxml2::XMLNode::InsertEndChild(v8, v10); v11 = (const char *)(a3 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) v11 = *(const char **)(a3 + 16); v12 = (unsigned int)tinyxml2::XMLDocument::SaveFile(v5, v11, 0) == 0; v13 = *(_QWORD *)v5; v14 = v5; v15 = v12; (*(void (__fastcall **)(tinyxml2::XMLDocument *))(v13 + 136))(v14); return v15; } else { LABEL_10: (*(void (__fastcall **)(tinyxml2::XMLDocument *))(*(_QWORD *)v5 + 136LL))(v5); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source