// // GameStatsManager::postLoadGameStats from 0x523730 to 0x52381a (234 bytes) // // 2 xrefs: // > GameStatsManager::dataLoaded @ 0x529cf0 // > GJAccountManager::onSyncAccountCompleted @ 0x582bce // // 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 11:51:53 +0000 // int __fastcall GameStatsManager::postLoadGameStats(GameStatsManager *this) { const char *v2; // r4 AchievementManager *v3; // r0 cocos2d::CCString *v4; // r0 const char *CString; // r0 const char *v6; // r6 size_t v7; // r0 char *v8; // r9 char *v9; // r1 size_t v10; // r0 cocos2d::CCString *v11; // r0 const char *v12; // r0 AchievementManager *v13; // r0 int result; // r0 char v15; // [sp+4h] [bp-10h] int v16; // [sp+8h] [bp-Ch] char *v17; // [sp+Ch] [bp-8h] int v18[2]; // [sp+14h] [bp+0h] BYREF char *v19; // [sp+1Ch] [bp+8h] int v20[3]; // [sp+20h] [bp+Ch] BYREF v2 = (_BYTE *)(&dword_0 + 1); v3 = (AchievementManager *)AchievementManager::sharedState(this); v15 = *((_BYTE *)v3 + 284); *(_BYTE *)(AchievementManager::sharedState(v3) + 284) = 1; do { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v2); CString = (const char *)cocos2d::CCString::getCString(v4); v18[0] = 0; v18[1] = 0; v19 = nullptr; v6 = CString; v7 = strlen(CString); std::string::__init(v18, v6, v7); if ( (v18[0] & 1) != 0 ) v8 = v19; else v8 = (char *)v18 + 1; v16 = *((_DWORD *)this + 92); if ( (v18[0] & 1) != 0 ) v9 = v19; else v9 = (char *)v18 + 1; v17 = v9; memset(v20, 0, sizeof(v20)); v10 = strlen(v9); std::string::__init(v20, v17, v10); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v16, v20); v12 = (const char *)cocos2d::CCString::intValue(v11); GameStatsManager::setStat(this, v8, v12); ++v2; std::string::~string((int)v20); v13 = (AchievementManager *)std::string::~string((int)v18); } while ( v2 != (_BYTE *)&word_2C + 1 ); result = AchievementManager::sharedState(v13); *(_BYTE *)(result + 284) = v15; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source