Add back extra params to `RomLoader.DoLoadErrorCallback` (fixes #3054)

fixes fb6924bd8
This commit is contained in:
YoshiRulz 2022-01-27 02:46:05 +10:00
parent 319455c2ea
commit 547c28ef28
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 4 deletions

View File

@ -714,7 +714,7 @@ namespace BizHawk.Client.Common
{
var system = game?.System;
DispatchErrorMessage(ex, system);
DispatchErrorMessage(ex, system: system, path: path);
return false;
}
@ -724,7 +724,7 @@ namespace BizHawk.Client.Common
return true;
}
private void DispatchErrorMessage(Exception ex, string system)
private void DispatchErrorMessage(Exception ex, string system, string path)
{
if (ex is AggregateException agg)
{
@ -735,7 +735,7 @@ namespace BizHawk.Client.Common
}
foreach (Exception e in agg.InnerExceptions)
{
DispatchErrorMessage(e, system);
DispatchErrorMessage(e, system: system, path: path);
}
return;
@ -748,7 +748,7 @@ namespace BizHawk.Client.Common
if (ex is MissingFirmwareException)
{
DoLoadErrorCallback(ex.Message, system, LoadErrorType.MissingFirmware);
DoLoadErrorCallback(ex.Message, system, path, Deterministic, LoadErrorType.MissingFirmware);
}
else if (ex is CGBNotSupportedException)
{