//
// cocos2d::CCUserDefault::isXMLFileExist from 0x18009f1b0 to 0x18009f1f2 (66 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7644
//
// 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
//
bool __fastcall cocos2d::CCUserDefault::isXMLFileExist()
{
const char *v0; // rcx
FILE *v1; // rax
v0 = (const char *)&cocos2d::CCUserDefault::m_sFilePath;
if ( *((_QWORD *)&xmmword_1801A8A40 + 1) > 0xFu )
v0 = cocos2d::CCUserDefault::m_sFilePath;
v1 = fopen(v0, "r");
if ( v1 )
{
fclose(v1);
LOBYTE(v1) = 1;
}
return (char)v1;
}