Skip to content

Commit

Permalink
Add back extra params to RomLoader.DoLoadErrorCallback (fixes #3054)
Browse files Browse the repository at this point in the history
fixes fb6924b
  • Loading branch information
YoshiRulz committed Jan 26, 2022
1 parent 319455c commit 547c28e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BizHawk.Client.Common/RomLoader.cs
Expand Up @@ -714,7 +714,7 @@ public bool LoadRom(string path, CoreComm nextComm, string launchLibretroCore, s
{
var system = game?.System;

DispatchErrorMessage(ex, system);
DispatchErrorMessage(ex, system: system, path: path);
return false;
}

Expand All @@ -724,7 +724,7 @@ public bool LoadRom(string path, CoreComm nextComm, string launchLibretroCore, s
return true;
}

private void DispatchErrorMessage(Exception ex, string system)
private void DispatchErrorMessage(Exception ex, string system, string path)
{
if (ex is AggregateException agg)
{
Expand All @@ -735,7 +735,7 @@ private void DispatchErrorMessage(Exception ex, string system)
}
foreach (Exception e in agg.InnerExceptions)
{
DispatchErrorMessage(e, system);
DispatchErrorMessage(e, system: system, path: path);
}

return;
Expand All @@ -748,7 +748,7 @@ private void DispatchErrorMessage(Exception ex, string system)

if (ex is MissingFirmwareException)
{
DoLoadErrorCallback(ex.Message, system, LoadErrorType.MissingFirmware);
DoLoadErrorCallback(ex.Message, system, path, Deterministic, LoadErrorType.MissingFirmware);
}
else if (ex is CGBNotSupportedException)
{
Expand Down

0 comments on commit 547c28e

Please sign in to comment.