// // GJBaseGameLayer::hasUniqueCoin from 0x1001063b0 to 0x1001064a3 (243 bytes) // // 5 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x10008b3f4 // > GJBaseGameLayer::collisionCheckObjects @ 0x100104b0f // > GJBaseGameLayer::collisionCheckObjects @ 0x100104cfd // > GameObject::playDestroyObjectAnim @ 0x1002485a8 // > EnhancedGameObject::updateUserCoin @ 0x10069321a // // This function is hookable on this platform (idp: pc, 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:21:31 +0000 // char __fastcall GJBaseGameLayer::hasUniqueCoin(__int64 a1, _DWORD *a2) { __int64 v3; // rdi int v4; // eax int v5; // ecx const char *CoinKey_1; // r14 int v7; // ebx __int64 v8; // rdi char result; // al bool hasUserCoin; // cl __int64 v11; // rax v3 = *(_QWORD *)(a1 + 1936); if ( *(_DWORD *)(v3 + 1140) == 2 ) { if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 31 ) { v4 = a2[448]; switch ( v4 ) { case 3: v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1032LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1036LL); return v5 == 1; case 2: v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1024LL); return v5 == 1; case 1: v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1008LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1012LL); return v5 == 1; } } return 0; } else { CoinKey_1 = (const char *)GJGameLevel::getCoinKey_1(v3, (unsigned int)a2[448]); v7 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL); v8 = GameStatsManager::sharedState(); if ( v7 == 1 ) { return GameStatsManager::hasSecretCoin(v8); } else { hasUserCoin = GameStatsManager::hasUserCoin(v8, CoinKey_1); result = 1; if ( !hasUserCoin ) { v11 = GameStatsManager::sharedState(); return GameStatsManager::hasPendingUserCoin(v11, CoinKey_1); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source