gba: disable outside interim

This commit is contained in:
goyuken 2012-11-24 04:46:43 +00:00
parent 8aad53e76c
commit ea19ae9d65
1 changed files with 16 additions and 13 deletions

View File

@ -1830,21 +1830,24 @@ namespace BizHawk.MultiClient
nextEmulator = c64;
break;
case "GBA":
string gbabiospath = Path.Combine(PathManager.MakeAbsolutePath(Global.Config.PathGBAFirmwares, "GBA"), "gbabios.rom");
byte[] gbabios = null;
if (INTERIM)
{
string gbabiospath = Path.Combine(PathManager.MakeAbsolutePath(Global.Config.PathGBAFirmwares, "GBA"), "gbabios.rom");
byte[] gbabios = null;
if (File.Exists(gbabiospath))
{
gbabios = File.ReadAllBytes(gbabiospath);
if (File.Exists(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;
}
}