// // cocos2d::CCUserDefault::setIntegerForKey from 0xb1fc50 to 0xb1fd00 (176 bytes) // // 2 xrefs: // > cocos2d::CCUserDefault::getIntegerForKey @ 0xb1ffcc // > @ 0x64020 // // 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::setIntegerForKey(cocos2d::CCUserDefault *a1, const char *a2, int 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); } setIntegerForKeyJNI(a2, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source