From 4aa334244ef17f9dd5767e96c559b61a4edba693 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 11 Jan 2025 07:35:55 +1000 Subject: [PATCH] Fix `ObjectDisposedException` when loading non-disc rom into Libretro fixes d9da3cfa6 --- src/BizHawk.Client.Common/RomLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/RomLoader.cs b/src/BizHawk.Client.Common/RomLoader.cs index 2a8f48877f..b4c6036c6f 100644 --- a/src/BizHawk.Client.Common/RomLoader.cs +++ b/src/BizHawk.Client.Common/RomLoader.cs @@ -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 */}]"; } }