gba: disable outside interim
This commit is contained in:
parent
8aad53e76c
commit
ea19ae9d65
|
@ -1830,21 +1830,24 @@ namespace BizHawk.MultiClient
|
||||||
nextEmulator = c64;
|
nextEmulator = c64;
|
||||||
break;
|
break;
|
||||||
case "GBA":
|
case "GBA":
|
||||||
string gbabiospath = Path.Combine(PathManager.MakeAbsolutePath(Global.Config.PathGBAFirmwares, "GBA"), "gbabios.rom");
|
if (INTERIM)
|
||||||
byte[] gbabios = null;
|
{
|
||||||
|
string gbabiospath = Path.Combine(PathManager.MakeAbsolutePath(Global.Config.PathGBAFirmwares, "GBA"), "gbabios.rom");
|
||||||
|
byte[] gbabios = null;
|
||||||
|
|
||||||
if (File.Exists(gbabiospath))
|
if (File.Exists(gbabiospath))
|
||||||
{
|
{
|
||||||
gbabios = File.ReadAllBytes(gbabiospath);
|
gbabios = File.ReadAllBytes(gbabiospath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show(string.Format("Couldn't open GBA BIOS: {0}\nCheck your firmware config", gbabiospath));
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
GBA gba = new GBA();
|
||||||
|
gba.Load(rom.RomData, gbabios);
|
||||||
|
nextEmulator = gba;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
MessageBox.Show(string.Format("Couldn't open GBA BIOS: {0}\nCheck your firmware config", gbabiospath));
|
|
||||||
throw new Exception();
|
|
||||||
}
|
|
||||||
GBA gba = new GBA();
|
|
||||||
gba.Load(rom.RomData, gbabios);
|
|
||||||
nextEmulator = gba;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue