// // cocos2d::CCUserDefault::setBoolForKey from 0xb1fae8 to 0xb1fb98 (176 bytes) // // 2 xrefs: // > cocos2d::CCUserDefault::getBoolForKey @ 0xb1fee8 // > @ 0x331c8 // // 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 // void cocos2d::CCUserDefault::setBoolForKey(cocos2d::CCUserDefault *a1, const char *a2, bool a3) { tinyxml2::XMLNode **v5; // x0 tinyxml2::XMLDocument *v6; // x20 cocos2d::CCUserDefault *v7; // x0 __int64 *XMLFilePath; // x0 tinyxml2::XMLDocument *v9; // [xsp+30h] [xbp+30h] BYREF v9 = nullptr; v5 = (tinyxml2::XMLNode **)sub_B1F9A4(a2, &v9); v6 = v9; if ( v5 ) { tinyxml2::XMLNode::DeleteChild(v5[2], (tinyxml2::XMLNode *)v5); v7 = cocos2d::CCUserDefault::sharedUserDefault(); XMLFilePath = cocos2d::CCUserDefault::getXMLFilePath(v7); tinyxml2::XMLDocument::SaveFile(v6, (const char *)*XMLFilePath, 0); if ( v6 ) (*(void (__fastcall **)(tinyxml2::XMLDocument *))(*(_QWORD *)v6 + 136LL))(v6); } setBoolForKeyJNI(a2, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source