// // GameStatsManager::verifyUserCoins from 0x5235f8 to 0x523662 (106 bytes) // // 2 xrefs: // > GameManager::dataLoaded @ 0x41cfea // > GJAccountManager::onSyncAccountCompleted @ 0x582b84 // // 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::verifyUserCoins(cocos2d::CCDictionary **this) { int Stat; // r6 cocos2d::CCDictionary **v3; // r0 int v4; // r1 const char *v5; // r4 int i; // r7 cocos2d::CCString *v7; // r0 int result; // r0 const char *v9; // r10 AchievementManager *v10; // r0 Stat = GameStatsManager::getStat((GameStatsManager *)this, "12"); if ( Stat <= cocos2d::CCDictionary::count(*(this + 104)) ) { v5 = (char *)&dword_0 + 1; for ( i = (int)&dword_0 + 1; ; i = 10 * (_DWORD)v5 ) { v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"geometry.ach.usercoins%02d", v5); result = cocos2d::CCString::getCString(v7); v9 = (const char *)result; if ( i > Stat ) { v10 = (AchievementManager *)AchievementManager::sharedState((AchievementManager *)result); result = AchievementManager::isAchievementEarned(v10, v9); if ( result ) break; } if ( ++v5 == (_BYTE *)&dword_14 + 2 ) return result; } v3 = this; v4 = 1; } else { v3 = this; v4 = 0; } return GameStatsManager::recountUserCoins(v3, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source