Fix `ObjectDisposedException` when loading non-disc rom into Libretro
fixes d9da3cfa6
This commit is contained in:
parent
6adab25fac
commit
4aa334244e
|
@ -835,7 +835,7 @@ namespace BizHawk.Client.Common
|
|||
var ext = file.Extension;
|
||||
var gi = Disc.IsValidExtension(ext)
|
||||
? MakeGameFromDisc(InstantiateDiscFor(path), ext: ext, name: Path.GetFileNameWithoutExtension(file.Name))
|
||||
: new RomGame(file).GameInfo;
|
||||
: new RomGame(new(file.CanonicalFullPath)).GameInfo; // need to re-open???
|
||||
Game.Name = $"{gi.Name} [{Game.Name/* core name */}]";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue