Skip to content

Commit 547c28e

Browse files
committed
Add back extra params to RomLoader.DoLoadErrorCallback (fixes #3054)
fixes fb6924b
1 parent 319455c commit 547c28e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BizHawk.Client.Common/RomLoader.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public bool LoadRom(string path, CoreComm nextComm, string launchLibretroCore, s
714714
{
715715
var system = game?.System;
716716

717-
DispatchErrorMessage(ex, system);
717+
DispatchErrorMessage(ex, system: system, path: path);
718718
return false;
719719
}
720720

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

727-
private void DispatchErrorMessage(Exception ex, string system)
727+
private void DispatchErrorMessage(Exception ex, string system, string path)
728728
{
729729
if (ex is AggregateException agg)
730730
{
@@ -735,7 +735,7 @@ private void DispatchErrorMessage(Exception ex, string system)
735735
}
736736
foreach (Exception e in agg.InnerExceptions)
737737
{
738-
DispatchErrorMessage(e, system);
738+
DispatchErrorMessage(e, system: system, path: path);
739739
}
740740

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

749749
if (ex is MissingFirmwareException)
750750
{
751-
DoLoadErrorCallback(ex.Message, system, LoadErrorType.MissingFirmware);
751+
DoLoadErrorCallback(ex.Message, system, path, Deterministic, LoadErrorType.MissingFirmware);
752752
}
753753
else if (ex is CGBNotSupportedException)
754754
{

0 commit comments

Comments
 (0)