// // cocos2d::CCTMXMapInfo::parseXMLFile from 0xb3bf84 to 0xb3c0a0 (284 bytes) // // 3 xrefs: // > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0xb3c0c8 // > cocos2d::CCTMXMapInfo::startElement @ 0xb3c730 // > @ 0x8da98 // // 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 cocos2d::CCTMXMapInfo::parseXMLFile(cocos2d::CCTMXMapInfo *a1, const char *a2) { bool v4; // w21 cocos2d::CCFileUtils *v6; // x0 char *v7; // x0 unsigned int *v8; // x2 int v9; // w1 cocos2d::CCSAXParser v10; // [xsp+48h] [xbp+48h] BYREF char *v11; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCSAXParser::CCSAXParser(&v10); v4 = cocos2d::CCSAXParser::init(&v10, "UTF-8"); if ( v4 ) { cocos2d::CCSAXParser::setDelegator(&v10, &a1->cocos2d::CCSAXDelegator); v6 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(char **__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))v6->createCCArrayWithContentsOfFile)( &v11, v6, a2, 0); v4 = cocos2d::CCSAXParser::parse(&v10, v11); v7 = v11 - 24; if ( v11 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v11 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v11 - 2); *((_DWORD *)v11 - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } } cocos2d::CCSAXParser::~CCSAXParser(&v10); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source