From a1035642100cb8737a9d11db1455425170b644ab Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sun, 11 May 2025 14:57:51 +0200 Subject: [PATCH] unregister IStatable for dosbox see #4311 --- src/BizHawk.Emulation.Cores/Computers/DOS/DOSBox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Computers/DOS/DOSBox.cs b/src/BizHawk.Emulation.Cores/Computers/DOS/DOSBox.cs index bf235ce33b..d486a2ec6d 100644 --- a/src/BizHawk.Emulation.Cores/Computers/DOS/DOSBox.cs +++ b/src/BizHawk.Emulation.Cores/Computers/DOS/DOSBox.cs @@ -20,7 +20,7 @@ namespace BizHawk.Emulation.Cores.Computers.DOS portedVersion: "2025.02.01 (324193b)", portedUrl: "https://github.com/joncampbell123/dosbox-x", isReleased: false)] - public partial class DOSBox : WaterboxCore + public sealed partial class DOSBox : WaterboxCore { private static readonly Configuration DefaultConfig = new Configuration { @@ -65,6 +65,7 @@ namespace BizHawk.Emulation.Cores.Computers.DOS _romAssets = lp.Roms; _discAssets = lp.Discs; _syncSettings = lp.SyncSettings ?? new(); + _serviceProvider.Unregister(); DriveLightEnabled = false; ControllerDefinition = CreateControllerDefinition(_syncSettings, _romAssets.Count, _discAssets.Count);