From f69718f57e0aede797c551f5d6fb9a740e4bbfdc Mon Sep 17 00:00:00 2001 From: goyuken Date: Wed, 14 Jan 2015 18:07:03 +0000 Subject: [PATCH] provide intelligent message on trying to load CD from archive. this causes no change in functionality, as following that codepath would fail 100% anyway --- BizHawk.Client.Common/RomLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.Common/RomLoader.cs b/BizHawk.Client.Common/RomLoader.cs index 7ef703bd55..d776c086c9 100644 --- a/BizHawk.Client.Common/RomLoader.cs +++ b/BizHawk.Client.Common/RomLoader.cs @@ -246,6 +246,11 @@ namespace BizHawk.Client.Common } else if (ext == ".iso" || ext == ".cue" || ext == ".ccd") { + if (file.IsArchive) + { + throw new InvalidOperationException("Can't load CD files from archives!"); + } + Disc disc = null; if(ext == ".iso") disc = Disc.FromIsoPath(path);