From ea19ae9d65ea1871ce34c1e37486be9966368829 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sat, 24 Nov 2012 04:46:43 +0000 Subject: [PATCH] gba: disable outside interim --- BizHawk.MultiClient/MainForm.cs | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index 3b3ed74f63..99b4748ec9 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -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; } }