Skip to content

Commit 7c3e35f

Browse files
committed
Fix window title after loading rom via FW config (fixes #3581)
1 parent eb6f286 commit 7c3e35f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BizHawk.Client.EmuHawk/MainForm.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,10 +3835,9 @@ private bool LoadRomInternal(string path, LoadRomArgs args, out bool failureIsFr
38353835
//path = ioa_openrom.Path;
38363836
}
38373837

3838-
var oldGame = Game;
38393838
var result = loader.LoadRom(path, nextComm, ioaRetro?.CorePath, forcedCoreName: MovieSession.QueuedCoreName);
38403839

3841-
Game = result ? loader.Game : oldGame;
3840+
if (result) Game = loader.Game;
38423841

38433842
// we need to replace the path in the OpenAdvanced with the canonical one the user chose.
38443843
// It can't be done until loader.LoadRom happens (for CanonicalFullPath)

0 commit comments

Comments
 (0)