// // cocos2d::CCUserDefault::getIntegerForKey from 0xd908c8 to 0xd909a8 (224 bytes) // // 2 xrefs: // > cocos2d::CCUserDefault::getIntegerForKey @ 0xd909ac // > @ 0xbc200 // // 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::getIntegerForKey( cocos2d::CCUserDefault *this, const char *a2, unsigned int a3) { __int64 v5; // x0 tinyxml2::XMLNode **v6; // x21 unsigned int v7; // w2 __int64 v8; // x0 const char *Str; // x0 unsigned int v10; // w20 tinyxml2::XMLDocument *v13; // [xsp+50h] [xbp+50h] BYREF v13 = nullptr; v5 = sub_D904E4(a2, &v13); v6 = (tinyxml2::XMLNode **)v5; v7 = a3; if ( !v5 ) return getIntegerForKeyJNI(a2, v7); v8 = *(_QWORD *)(v5 + 48); if ( !v8 ) { sub_D90480((__int64)v13, v6); v7 = a3; return getIntegerForKeyJNI(a2, v7); } Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v8 + 24)); v10 = atoi(Str); cocos2d::CCUserDefault::setIntegerForKey(this, a2, v10); cocos2d::CCUserDefault::flush(this); sub_D90480((__int64)v13, v6); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source