// // GameStatsManager::checkCoinsForLevel from 0x41bc80 to 0x41bd2c (172 bytes) // // 1 xrefs: // > GameLevelManager::updateLevelRewards @ 0x3c6426 // // 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::checkCoinsForLevel(GameStatsManager *a1, GJGameLevel *a2) { int v4; // r4 char *CoinKey; // r6 cocos2d::CCDictionary *m_pendingUserCoins; // [sp+4h] [bp-18h] _BYTE v7[4]; // [sp+10h] [bp-Ch] BYREF if ( a2->m_coins > 0 ) { v4 = a2->m_coinsVerified.random - a2->m_coinsVerified.seed; if ( v4 == 1 ) { do { CoinKey = (char *)GJGameLevel::getCoinKey(a2, v4); if ( GameStatsManager::hasPendingUserCoin(a1, CoinKey) ) { if ( !GameStatsManager::hasUserCoin(a1, CoinKey) ) { GameStatsManager::storeUserCoin(a1, CoinKey); GameStatsManager::incrementStat(a1, "12"); } m_pendingUserCoins = a1->m_pendingUserCoins; sub_776584((int)v7, CoinKey); cocos2d::CCDictionary::removeObjectForKey(m_pendingUserCoins); sub_774008(v7); } ++v4; } while ( v4 != 4 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source