Add back extra params to `RomLoader.DoLoadErrorCallback` (fixes #3054)
fixes fb6924bd8
This commit is contained in:
parent
319455c2ea
commit
547c28ef28
|
@ -714,7 +714,7 @@ namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
var system = game?.System;
|
var system = game?.System;
|
||||||
|
|
||||||
DispatchErrorMessage(ex, system);
|
DispatchErrorMessage(ex, system: system, path: path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -724,7 +724,7 @@ namespace BizHawk.Client.Common
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DispatchErrorMessage(Exception ex, string system)
|
private void DispatchErrorMessage(Exception ex, string system, string path)
|
||||||
{
|
{
|
||||||
if (ex is AggregateException agg)
|
if (ex is AggregateException agg)
|
||||||
{
|
{
|
||||||
|
@ -735,7 +735,7 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
foreach (Exception e in agg.InnerExceptions)
|
foreach (Exception e in agg.InnerExceptions)
|
||||||
{
|
{
|
||||||
DispatchErrorMessage(e, system);
|
DispatchErrorMessage(e, system: system, path: path);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -748,7 +748,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
if (ex is MissingFirmwareException)
|
if (ex is MissingFirmwareException)
|
||||||
{
|
{
|
||||||
DoLoadErrorCallback(ex.Message, system, LoadErrorType.MissingFirmware);
|
DoLoadErrorCallback(ex.Message, system, path, Deterministic, LoadErrorType.MissingFirmware);
|
||||||
}
|
}
|
||||||
else if (ex is CGBNotSupportedException)
|
else if (ex is CGBNotSupportedException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue