// // GameStatsManager::verifyUserCoins from 0x100331d2c to 0x100331e0c (224 bytes) // // 2 xrefs: // > GameManager::dataLoaded @ 0x10031c3a4 // > GJAccountManager::onSyncAccountCompleted @ 0x10039fc20 // // 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::verifyUserCoins(GameStatsManager *a1) { int Stat; // w20 GameStatsManager *v3; // x0 bool v4; // w1 unsigned int v5; // w23 int v6; // w24 int v7; // w25 cocos2d::CCString *v8; // x0 const char *CString; // x0 const char *v10; // x22 AchievementManager *v11; // x0 Stat = GameStatsManager::getStat(a1, "12"); if ( Stat <= (int)cocos2d::CCDictionary::count(a1->m_verifiedUserCoins) ) { v5 = 1; v6 = 10; while ( 1 ) { v7 = v5 <= 1 ? 1 : v6; v8 = (cocos2d::CCString *)sub_100268F4C("geometry.ach.usercoins%02d", v5); CString = cocos2d::CCString::getCString(v8); if ( v7 > Stat ) { v10 = CString; v11 = AchievementManager::sharedState(); if ( AchievementManager::isAchievementEarned(v11, v10) ) break; } ++v5; v6 += 10; if ( v6 == 220 ) return; } v3 = a1; v4 = 1; } else { v3 = a1; v4 = 0; } GameStatsManager::recountUserCoins(v3, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source