// // GameStatsManager::preSaveGameStats from 0x10033ef44 to 0x10033f044 (256 bytes) // // 2 xrefs: // > GameStatsManager::encodeDataTo @ 0x10033ecc4 // > GJAccountManager::onSyncAccountCompleted @ 0x10039f838 // // 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 __fastcall GameStatsManager::preSaveGameStats(GameStatsManager *a1) { bool m_dontNotify; // w23 int v3; // w24 cocos2d::CCString *v4; // x0 char *CString; // x0 cocos2d::CCDictionary *m_playerStats; // x21 void **v7; // x1 int Stat; // w0 cocos2d::CCObject *v9; // x22 char *v10; // x1 void *__p[2]; // [xsp+10h] [xbp-70h] BYREF char v12; // [xsp+27h] [xbp-59h] void *v13[2]; // [xsp+28h] [xbp-58h] BYREF char v14; // [xsp+3Fh] [xbp-41h] m_dontNotify = AchievementManager::sharedState()->m_dontNotify; v3 = 1; AchievementManager::sharedState()->m_dontNotify = 1; do { v4 = (cocos2d::CCString *)sub_100268F4C("%i", v3); CString = (char *)cocos2d::CCString::getCString(v4); sub_100009900(v13, CString); m_playerStats = a1->m_playerStats; if ( v14 >= 0 ) v7 = v13; else v7 = (void **)v13[0]; Stat = GameStatsManager::getStat(a1, (const char *)v7); v9 = sub_100268F4C("%i", Stat); if ( v14 >= 0 ) v10 = (char *)v13; else v10 = (char *)v13[0]; sub_100009900(__p, v10); cocos2d::CCDictionary::setObject_1(m_playerStats, v9, __p); if ( v12 < 0 ) operator delete(__p[0]); if ( v14 < 0 ) operator delete(v13[0]); ++v3; } while ( v3 != 44 ); AchievementManager::sharedState()->m_dontNotify = m_dontNotify; }
GD Web Decomp Icon

GD Web Decomp

Raw Source