Set correct GameInfo even when rom loading failed
- closes #3986 (maybe this should be in CloseGame as well?)
This commit is contained in:
parent
5ee53db53b
commit
9085bd6e0c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue