// // GameStatsManager::preSaveGameStats from 0x4189ac to 0x418a6a (190 bytes) // // 2 xrefs: // > GameStatsManager::encodeDataTo @ 0x418a7e // > GJAccountManager::onSyncAccountCompleted @ 0x4649a6 // // 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 GameStatsManager::preSaveGameStats(GameStatsManager *a1) { const char *v2; // r4 cocos2d::CCString *v3; // r0 char *CString; // r0 const char *Stat; // r0 cocos2d::CCObject *v6; // r10 bool m_dontNotify; // [sp+0h] [bp-1Ch] cocos2d::CCDictionary *m_playerStats; // [sp+4h] [bp-18h] char *v9; // [sp+Ch] [bp-10h] BYREF _BYTE v10[4]; // [sp+10h] [bp-Ch] BYREF v2 = (_BYTE *)(&dword_0 + 1); m_dontNotify = AchievementManager::sharedState()->m_dontNotify; AchievementManager::sharedState()->m_dontNotify = 1; do { v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v2); CString = (char *)cocos2d::CCString::getCString(v3); sub_776584((int)&v9, CString); m_playerStats = a1->m_playerStats; Stat = (const char *)GameStatsManager::getStat(a1, v9); v6 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", Stat); sub_776584((int)v10, v9); cocos2d::CCDictionary::setObject((int)m_playerStats, v6); ++v2; sub_774008(v10); sub_774008(&v9); } while ( v2 != (const char *)&word_2C ); AchievementManager::sharedState()->m_dontNotify = m_dontNotify; }
GD Web Decomp Icon

GD Web Decomp

Raw Source