Detect Perfect Dark GBC Rom, emulating Transfer Pak functionality.

This commit is contained in:
MaikelChan committed 2024-08-25 21:27:21 +02:00
1 parent bdbf0ab789
commit 153ca3341e
5 files changed
+59

No files matched your search

+8
View File
@@ -329,6 +329,10 @@ u8 g_PaksPlugged = 0;
bool var80075d14 = true;
#endif
#ifndef PLATFORM_N64
bool g_validGbcRomFound = false;
#endif
u32 pakGetBlockSize(s8 device)
{
return device == SAVEDEVICE_GAMEPAK ? 0x10 : 0x20;
@@ -5982,6 +5986,7 @@ s32 pak0f11e750(s8 device)
bool gbpakIsAnyPerfectDark(void)
{
#ifdef PLATFORM_N64
s8 i;
for (i = 0; i < MAX_PLAYERS; i++) {
@@ -5991,6 +5996,9 @@ bool gbpakIsAnyPerfectDark(void)
}
return false;
#else
return g_validGbcRomFound;
#endif
}
/**
+3
View File
@@ -293,5 +293,8 @@ extern struct bossfile g_BossFile;
extern struct chrdata *g_MpBotChrPtrs[MAX_BOTS];
extern s32 g_JpnMaxCacheItems;
extern s32 var8009d370jf;
#ifndef PLATFORM_N64
extern bool g_validGbcRomFound;
#endif
#endif