Remove special code for UnsupportedGameException in RomLoader

This shouldn't be needed anymore
This commit is contained in:
nattthebear 2020-07-12 13:48:46 -04:00
parent 78bbc75f33
commit 021b1639c2
1 changed files with 3 additions and 11 deletions

View File

@ -712,19 +712,11 @@ namespace BizHawk.Client.Common
// all of the specific exceptions we're trying to catch here aren't expected to have inner exceptions,
// so drill down in case we got a TargetInvocationException or something like that
while (ex.InnerException != null) ex = ex.InnerException;
while (ex.InnerException != null)
ex = ex.InnerException;
// Specific hack here, as we get more cores of the same system, this isn't scalable
if (ex is UnsupportedGameException)
{
if (system == "NES")
{
DoMessageCallback("Unable to use quicknes, using NESHawk instead");
}
return LoadRom(path, nextComm, launchLibretroCore, recursiveCount + 1);
}
else if (ex is MissingFirmwareException)
if (ex is MissingFirmwareException)
{
DoLoadErrorCallback(ex.Message, system, path, Deterministic, LoadErrorType.MissingFirmware);
}