// // GJBaseGameLayer::hasUniqueCoin from 0x58f194 to 0x58f238 (164 bytes) // // 5 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x411bac // > EnhancedGameObject::updateUserCoin @ 0x45ab0a // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba932 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba996 // > GameObject::playDestroyObjectAnim @ 0x65ef4c // // 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:53:04 +0000 // int __fastcall GJBaseGameLayer::hasUniqueCoin(GJBaseGameLayer *this, EffectGameObject *a2) { GJGameLevel *v3; // r0 int v5; // r3 int v6; // r2 int v7; // r3 int v8; // r0 int v9; // r2 int v10; // r2 int result; // r0 GameStatsManager *CoinKey; // r0 const char *v13; // r5 GameStatsManager *v14; // r0 GameStatsManager *v15; // r0 GameStatsManager *v16; // r0 v3 = *((GJGameLevel **)this + 352); if ( *((_DWORD *)v3 + 238) == 2 ) { if ( (*(int (__fastcall **)(EffectGameObject *))(*(_DWORD *)a2 + 900))(a2) == 31 ) { v5 = *((_DWORD *)a2 + 402); switch ( v5 ) { case 1: v6 = *((_DWORD *)this + 352); v7 = *(_DWORD *)(v6 + 832); v8 = *(_DWORD *)(v6 + 836); return v7 - v8 == 1; case 2: v9 = *((_DWORD *)this + 352); v7 = *(_DWORD *)(v9 + 844); v8 = *(_DWORD *)(v9 + 848); return v7 - v8 == 1; case 3: v10 = *((_DWORD *)this + 352); v7 = *(_DWORD *)(v10 + 856); v8 = *(_DWORD *)(v10 + 860); return v7 - v8 == 1; } } return 0; } else { CoinKey = (GameStatsManager *)GJGameLevel::getCoinKey(v3, *((_DWORD *)a2 + 402)); v13 = (const char *)CoinKey; if ( *(_DWORD *)(*((_DWORD *)this + 352) + 952) == 1 ) { v14 = (GameStatsManager *)GameStatsManager::sharedState(CoinKey); return GameStatsManager::hasSecretCoin(v14, v13); } else { v15 = (GameStatsManager *)GameStatsManager::sharedState(CoinKey); result = GameStatsManager::hasUserCoin(v15, v13); if ( !result ) { v16 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); return GameStatsManager::hasPendingUserCoin(v16, v13); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source