// // cocos2d::CCUserDefault::getStringForKey from 0x7f6da4 to 0x7f6e4c (168 bytes) // // 1 xrefs: // > cocos2d::CCUserDefault::getStringForKey @ 0x7f6e7e // // 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 // int __fastcall cocos2d::CCUserDefault::getStringForKey( int a1, cocos2d::CCUserDefault *a2, cocos2d::CCUserDefault *a3, int a4) { FILE *v8; // r0 tinyxml2::XMLNode **v9; // r8 char *IO_write_end; // r0 const char *Str; // r0 const char *v12; // r11 size_t v13; // r0 int v14; // r0 int v15; // r1 int v16; // r2 const char *v17; // r2 tinyxml2::XMLDocument *v19; // [sp+4h] [bp-18h] BYREF int v20; // [sp+8h] [bp-14h] BYREF int v21; // [sp+Ch] [bp-10h] int v22; // [sp+10h] [bp-Ch] v19 = nullptr; v8 = sub_7F69E0(a3, &v19); v9 = (tinyxml2::XMLNode **)v8; if ( v8 ) { IO_write_end = v8->_IO_write_end; if ( IO_write_end ) { Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(IO_write_end + 12)); v20 = 0; v21 = 0; v22 = 0; v12 = Str; v13 = strlen(Str); std::string::__init(&v20, v12, v13); cocos2d::CCUserDefault::setStringForKey((int)a2, a3, (int)&v20); cocos2d::CCUserDefault::flush(a2); sub_7F69A8((int)v19, v9); v14 = v20; v15 = v21; v16 = v22; v20 = 0; v21 = 0; v22 = 0; *(_DWORD *)a1 = v14; *(_DWORD *)(a1 + 4) = v15; *(_DWORD *)(a1 + 8) = v16; std::string::~string((int)&v20); return a1; } sub_7F69A8((int)v19, v9); } if ( (*(_BYTE *)a4 & 1) != 0 ) v17 = *(const char **)(a4 + 8); else v17 = (const char *)(a4 + 1); getStringForKeyJNI((char *)a1, (const char *)a3, v17); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source