// // cocos2d::CCFileUtils::writeToFile from 0x7e7074 to 0x7e7126 (178 bytes) // // 0 xrefs: // // 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 12:00:54 +0000 // bool __fastcall cocos2d::CCFileUtils::writeToFile(int a1, int a2, int a3) { tinyxml2::XMLDocument *v5; // r5 tinyxml2::XMLNode *v6; // r0 _BOOL4 v7; // r4 tinyxml2::XMLNode *v8; // r0 tinyxml2::XMLElement *v9; // r7 tinyxml2::XMLAttribute *Attribute; // r0 tinyxml2::XMLNode *v12; // r0 const char *v13; // r1 v5 = (tinyxml2::XMLDocument *)operator new(0x174u); tinyxml2::XMLDocument::XMLDocument(v5, 1, 0); v6 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewDeclaration(v5, "xml version=\"1.0\" encoding=\"UTF-8\""); v7 = (_BOOL4)v6; if ( v6 ) { tinyxml2::XMLNode::InsertEndChild(v5, v6); v8 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::NewElement( v5, "!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/Proper" "tyList-1.0.dtd\""); tinyxml2::XMLNode::InsertEndChild(v5, v8); v9 = (tinyxml2::XMLElement *)tinyxml2::XMLDocument::NewElement(v5, "plist"); Attribute = (tinyxml2::XMLAttribute *)tinyxml2::XMLElement::FindOrCreateAttribute(v9, "version"); tinyxml2::XMLAttribute::SetAttribute(Attribute, "1.0"); if ( !v9 ) { (*(void (__fastcall **)(tinyxml2::XMLDocument *))(*(_DWORD *)v5 + 68))(v5); return 0; } tinyxml2::XMLNode::InsertEndChild(v5, v9); v12 = sub_7E6FF4(a2, v5); v7 = (_BOOL4)v12; if ( v12 ) { tinyxml2::XMLNode::InsertEndChild(v9, v12); if ( (*(_BYTE *)a3 & 1) != 0 ) v13 = *(const char **)(a3 + 8); else v13 = (const char *)(a3 + 1); v7 = tinyxml2::XMLDocument::SaveFile(v5, v13, 0) == 0; } } (*(void (__fastcall **)(tinyxml2::XMLDocument *))(*(_DWORD *)v5 + 68))(v5); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source