// // GJBaseGameLayer::hasUniqueCoin from 0x99e720 to 0x99e838 (280 bytes) // // 6 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x70fa7c // > EnhancedGameObject::updateUserCoin @ 0x77e394 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8cf0 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8ff0 // > GameObject::playDestroyObjectAnim @ 0xaf41e8 // > @ 0xe2fd8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:58:05 +0000 // bool __fastcall GJBaseGameLayer::hasUniqueCoin(GJBaseGameLayer *this, EffectGameObject *a2) { GJGameLevel *v3; // x0 const char *CoinKey; // x20 GameStatsManager *v5; // x0 GameStatsManager *v6; // x0 _BOOL8 result; // x0 bool v8; // zf int v9; // w1 GameStatsManager *v10; // x0 GameStatsManager *v11; // x0 v3 = *((GJGameLevel **)this + 242); if ( *((_DWORD *)v3 + 285) == 2 ) { v8 = (*(unsigned int (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 31; result = 0; if ( v8 ) { v9 = *((_DWORD *)a2 + 448); switch ( v9 ) { case 1: return *(_DWORD *)(*((_QWORD *)this + 242) + 1008LL) - *(_DWORD *)(*((_QWORD *)this + 242) + 1012LL) == 1; case 2: return *(_DWORD *)(*((_QWORD *)this + 242) + 1020LL) - *(_DWORD *)(*((_QWORD *)this + 242) + 1024LL) == 1; case 3: return *(_DWORD *)(*((_QWORD *)this + 242) + 1032LL) - *(_DWORD *)(*((_QWORD *)this + 242) + 1036LL) == 1; } } } else { CoinKey = (const char *)GJGameLevel::getCoinKey(v3, *((_DWORD *)a2 + 448)); v5 = (GameStatsManager *)*(unsigned int *)(*((_QWORD *)this + 242) + 1140LL); if ( (_DWORD)v5 == 1 ) { v11 = (GameStatsManager *)GameStatsManager::sharedState(v5); return GameStatsManager::hasSecretCoin(v11, CoinKey); } else { v6 = (GameStatsManager *)GameStatsManager::sharedState(v5); result = GameStatsManager::hasUserCoin(v6, CoinKey); if ( !(_BYTE)result ) { v10 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)result); return GameStatsManager::hasPendingUserCoin(v10, CoinKey); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source