// // sub_7F69E0 from 0x7f69e0 to 0x7f6ab8 (216 bytes) // // 6 xrefs: // > sub_7F6AC0 @ 0x7f6ad4 // > cocos2d::CCUserDefault::getBoolForKey @ 0x7f6b2a // > cocos2d::CCUserDefault::getIntegerForKey @ 0x7f6bce // > cocos2d::CCUserDefault::getFloatForKey @ 0x7f6c6c // > cocos2d::CCUserDefault::getDoubleForKey @ 0x7f6d18 // > cocos2d::CCUserDefault::getStringForKey @ 0x7f6dc6 // // 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:01:10 +0000 // FILE *__fastcall sub_7F69E0(cocos2d::CCUserDefault *a1, tinyxml2::XMLDocument **a2) { FILE *result; // r0 tinyxml2::XMLDocument *v5; // r5 cocos2d::CCFileUtils *v6; // r0 cocos2d::CCUserDefault *v7; // r7 int (__fastcall *v8)(cocos2d::CCUserDefault *, char *, const char *, cocos2d::CCUserDefault **, cocos2d::CCUserDefault *, tinyxml2::XMLDocument **); // r8 cocos2d::CCUserDefault *v9; // r0 int *XMLFilePath; // r0 char *v11; // r1 const char *v12; // r0 char *v13; // r7 tinyxml2::XMLNode *ChildElement; // r0 int SiblingElement; // r5 cocos2d::CCUserDefault *v16; // r0 int *v17; // r0 const char *v18; // r0 const char *Str; // r0 cocos2d::CCUserDefault *v20; // [sp+0h] [bp-8h] BYREF tinyxml2::XMLDocument **v21; // [sp+4h] [bp-4h] v20 = a1; v21 = a2; result = cocos2d::CCUserDefault::isXMLFileExist(a1); if ( result ) { if ( a1 ) { v5 = (tinyxml2::XMLDocument *)operator new(0x174u); v6 = (cocos2d::CCFileUtils *)tinyxml2::XMLDocument::XMLDocument(v5, 1, 0); *a2 = v5; v7 = (cocos2d::CCUserDefault *)cocos2d::CCFileUtils::sharedFileUtils(v6); v8 = *(int (__fastcall **)(cocos2d::CCUserDefault *, char *, const char *, cocos2d::CCUserDefault **, cocos2d::CCUserDefault *, tinyxml2::XMLDocument **))(*(_DWORD *)v7 + 16); v9 = (cocos2d::CCUserDefault *)cocos2d::CCUserDefault::sharedUserDefault(v7); XMLFilePath = cocos2d::CCUserDefault::getXMLFilePath(v9); if ( (*(_BYTE *)XMLFilePath & 1) != 0 ) v11 = (char *)XMLFilePath[2]; else v11 = (char *)XMLFilePath + 1; v12 = (const char *)v8(v7, v11, "rb", &v20, v20, v21); v13 = (char *)v12; if ( !v12 ) return nullptr; tinyxml2::XMLDocument::Parse(v5, v12, 0xFFFFFFFF); operator delete[](v13); ChildElement = (tinyxml2::XMLNode *)tinyxml2::XMLNode::FirstChildElement(v5, nullptr); if ( !ChildElement ) return nullptr; SiblingElement = tinyxml2::XMLNode::FirstChildElement(ChildElement, nullptr); if ( !SiblingElement ) { v16 = (cocos2d::CCUserDefault *)cocos2d::CCUserDefault::sharedUserDefault(nullptr); v17 = cocos2d::CCUserDefault::getXMLFilePath(v16); if ( (*(_BYTE *)v17 & 1) != 0 ) v18 = (const char *)v17[2]; else v18 = (char *)v17 + 1; remove(v18); return nullptr; } do { Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(SiblingElement + 12)); if ( !strcmp(Str, (const char *)a1) ) break; SiblingElement = tinyxml2::XMLNode::NextSiblingElement((tinyxml2::XMLNode *)SiblingElement, nullptr); } while ( SiblingElement ); return (FILE *)SiblingElement; } else { return nullptr; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source