// // GameStatsManager::hasSecretCoin from 0x7a2b50 to 0x7a2c54 (260 bytes) // // 25 xrefs: // > GameManager::verifySyncedCoins @ 0x5e9fec // > GameManager::verifySyncedCoins @ 0x5ea018 // > GameManager::verifySyncedCoins @ 0x5ea044 // > GameManager::verifySyncedCoins @ 0x5ea0a4 // > GameManager::verifySyncedCoins @ 0x5ea0c0 // > GameManager::verifySyncedCoins @ 0x5ea0dc // > GameManager::verifySyncedCoins @ 0x5ea12c // > GameManager::verifySyncedCoins @ 0x5ea158 // > GameManager::verifySyncedCoins @ 0x5ea184 // > GameManager::verifyCoinUnlocks @ 0x5f5158 // > GameManager::verifyCoinUnlocks @ 0x5f5184 // > GameManager::verifyCoinUnlocks @ 0x5f51b0 // > GameManager::verifyCoinUnlocks @ 0x5f5220 // > GameManager::verifyCoinUnlocks @ 0x5f523c // > GameManager::verifyCoinUnlocks @ 0x5f5258 // > GameManager::verifyCoinUnlocks @ 0x5f70b0 // > GameManager::verifyCoinUnlocks @ 0x5f70dc // > GameManager::verifyCoinUnlocks @ 0x5f7108 // > LevelPage::updateDynamicPage @ 0x79f530 // > GameStatsManager::getCollectedCoinsForLevel @ 0x7a2c8c // > EndLevelLayer::customSetup @ 0x7d67f8 // > GJBaseGameLayer::processItems @ 0x85a5f0 // > GJBaseGameLayer::hasUniqueCoin @ 0x85a79c // > LevelAreaInnerLayer::init @ 0xa30e84 // > @ 0x70578 // // 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 // bool GameStatsManager::hasSecretCoin(GameStatsManager *a1, const char *a2) { cocos2d::CCDictionary *m_playerStats; // x21 char *SecretCoinKey; // x0 bool v4; // zf __int64 *v5; // x0 bool v6; // w20 unsigned int *v8; // x2 int v9; // w1 std::string v10; // [xsp+40h] [xbp+40h] BYREF m_playerStats = a1->m_playerStats; SecretCoinKey = (char *)GameStatsManager::getSecretCoinKey(a1, a2); sub_D153B8((int)&v10, SecretCoinKey); v4 = cocos2d::CCDictionary::objectForKey(m_playerStats, &v10) == 0; v5 = (__int64 *)((char *)v10.m_data.m_data - 24); v6 = !v4; if ( v5 != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)v10.m_data.m_data - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v10.m_data.m_data - 2); *((_DWORD *)v10.m_data.m_data - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v5); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source