//
// cocos2d::CCUserDefault::isXMLFileExist from 0xd90154 to 0xd901a0 (76 bytes)
//
// 2 xrefs:
// > sub_D904E4 @ 0xd90510
// > ??> @ 0xc1cc0
//
// 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:18 +0000
//
__int64 __fastcall cocos2d::CCUserDefault::isXMLFileExist(cocos2d::CCUserDefault *this)
{
const char *v1; // x0
FILE *v2; // x0
v1 = (char *)&cocos2d::CCUserDefault::m_sFilePath + 1;
if ( (cocos2d::CCUserDefault::m_sFilePath & 1) != 0 )
v1 = (const char *)qword_1560E48;
v2 = fopen(v1, "r");
if ( !v2 )
return 0;
fclose(v2);
return 1;
}