Set correct GameInfo even when rom loading failed

- closes #3986

(maybe this should be in CloseGame as well?)
This commit is contained in:
Morilli 2024-08-17 22:25:55 +02:00
parent 5ee53db53b
commit 9085bd6e0c
1 changed files with 1 additions and 1 deletions

View File

@ -3645,7 +3645,7 @@ namespace BizHawk.Client.EmuHawk
var result = loader.LoadRom(path, nextComm, ioaRetro?.CorePath, forcedCoreName: MovieSession.QueuedCoreName);
if (result) Game = loader.Game;
Game = result ? loader.Game : GameInfo.NullInstance;
// 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)