From e801025d0f86ed3c2dffb647a8b20848b1aa1733 Mon Sep 17 00:00:00 2001 From: beirich <beirich@4bbf4f03-6f44-549e-7e59-35d4b0962838> Date: Fri, 14 Oct 2011 03:40:34 +0000 Subject: [PATCH] Fix some file extension stuff in Open Rom dialog; add .GEN extension --- BizHawk.Emulation/Database/Database.cs | 1 + BizHawk.MultiClient/MainForm.cs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation/Database/Database.cs b/BizHawk.Emulation/Database/Database.cs index f1407b28e2..5adb014d22 100644 --- a/BizHawk.Emulation/Database/Database.cs +++ b/BizHawk.Emulation/Database/Database.cs @@ -132,6 +132,7 @@ namespace BizHawk case ".SGX": Game.System = "SGX"; break; case ".GB" : Game.System = "GB"; break; case ".BIN": + case ".GEN": case ".SMD": Game.System = "GEN"; break; case ".NES": Game.System = "NES"; break; } diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index c39f7751f9..276beec416 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -932,7 +932,7 @@ namespace BizHawk.MultiClient if (path == null) return false; using (var file = new HawkFile()) { - string[] romExtensions = new string[] { "SMS", "PCE", "SGX", "GG", "SG", "BIN", "SMD", "GB", "NES", "ROM" }; + string[] romExtensions = new string[] { "SMS", "PCE", "SGX", "GG", "SG", "BIN", "GEN", "SMD", "GB", "NES", "ROM" }; //lets not use this unless we need to //file.NonArchiveExtensions = romExtensions; @@ -2139,11 +2139,12 @@ namespace BizHawk.MultiClient ofd.InitialDirectory = PathManager.GetRomsPath(Global.Emulator.SystemId); //"Rom Files|*.NES;*.SMS;*.GG;*.SG;*.PCE;*.SGX;*.GB;*.BIN;*.SMD;*.ROM;*.ZIP;*.7z|NES (*.NES)|*.NES|Master System|*.SMS;*.GG;*.SG;*.ZIP;*.7z|PC Engine|*.PCE;*.SGX;*.ZIP;*.7z|Gameboy|*.GB;*.ZIP;*.7z|TI-83|*.rom|Archive Files|*.zip;*.7z|Savestate|*.state|All Files|*.*"; ofd.Filter = FormatFilter( - "Rom Files", "*.nes;*.sms;*.gg;*.sg;*.pce;*.sgx;*.gb;*.bin;*.smd;*.rom;*.cue;%ARCH%", + "Rom Files", "*.nes;*.sms;*.gg;*.sg;*.pce;*.sgx;*.gb;*.bin;*.gen;*.smd;*.rom;*.cue;%ARCH%", "Disc Images", "*.cue", "NES", "*.nes;%ARCH%", "Master System", "*.sms;*.gg;*.sg;%ARCH%", - "PC Engine", "*.pce;*.sgx;%ARCH%", + "Genesis", "*.gen;*.smd;*.bin;*.cue;%ARCH%", + "PC Engine", "*.pce;*.sgx;*.cue;%ARCH%", "Gameboy", "*.gb;%ARCH%", "TI-83", "*.rom;%ARCH%", "Archive Files", "%ARCH%",