// // cocos2d::CCUserDefault::getFloatForKey from 0xd90a78 to 0xd90b54 (220 bytes) // // 2 xrefs: // > cocos2d::CCUserDefault::getFloatForKey @ 0xd90b58 // > @ 0xb7460 // // 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::getFloatForKey(cocos2d::CCUserDefault *this, const char *a2, float a3) { __int64 v5; // x0 tinyxml2::XMLNode **v6; // x20 float v7; // s0 __int64 v8; // x0 const char *Str; // x0 float v10; // s8 tinyxml2::XMLDocument *v13; // [xsp+50h] [xbp+50h] BYREF v13 = nullptr; v5 = sub_D904E4(a2, &v13); v6 = (tinyxml2::XMLNode **)v5; v7 = a3; if ( !v5 ) goto LABEL_6; v8 = *(_QWORD *)(v5 + 48); if ( !v8 ) { sub_D90480((__int64)v13, v6); v7 = a3; LABEL_6: getFloatForKeyJNI(a2, v7); return _stack_chk_guard; } Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v8 + 24)); v10 = atof(Str); cocos2d::CCUserDefault::setFloatForKey(this, a2, v10); cocos2d::CCUserDefault::flush(this); sub_D90480((__int64)v13, v6); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source