provide intelligent message on trying to load CD from archive. this causes no change in functionality, as following that codepath would fail 100% anyway

This commit is contained in:
goyuken 2015-01-14 18:07:03 +00:00
parent 36d98f28a6
commit f69718f57e
1 changed files with 5 additions and 0 deletions

View File

@ -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);