Fix window title after loading rom via FW config (fixes #3581)

This commit is contained in:
YoshiRulz 2023-03-17 06:32:23 +10:00
parent eb6f2864ff
commit 7c3e35f3e7
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 2 deletions

View File

@ -3835,10 +3835,9 @@ namespace BizHawk.Client.EmuHawk
//path = ioa_openrom.Path;
}
var oldGame = Game;
var result = loader.LoadRom(path, nextComm, ioaRetro?.CorePath, forcedCoreName: MovieSession.QueuedCoreName);
Game = result ? loader.Game : oldGame;
if (result) Game = loader.Game;
// we need to replace the path in the OpenAdvanced with the canonical one the user chose.
// It can't be done until loader.LoadRom happens (for CanonicalFullPath)