//
// tinyxml2::XMLDocument::LoadFile from 0x5eea4c to 0x5eea88 (60 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
//
int __fastcall tinyxml2::XMLDocument::LoadFile(tinyxml2::XMLDocument *this, const char *a2)
{
FILE *v4; // r5
tinyxml2::XMLNode::DeleteChildren((int)this);
tinyxml2::XMLDocument::InitDocument(this);
v4 = fopen(a2, "rb");
if ( v4 )
{
tinyxml2::XMLDocument::LoadFile((int)this, v4);
fclose(v4);
}
else
{
tinyxml2::XMLDocument::SetError(this, 3, (int)a2, 0);
}
return *((_DWORD *)this + 12);
}