From 64d693e63fc7be1d6f318f270960bd39ed4cba3f Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Thu, 8 Dec 2022 23:18:37 -0800 Subject: [PATCH] call retro_unload_game before retro_deinit (libretro api specifies retro_unload_game be called before retro_deinit, in practice cores don't really care but best fix this) --- src/BizHawk.Emulation.Cores/Libretro/Libretro.Emulator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Libretro/Libretro.Emulator.cs b/src/BizHawk.Emulation.Cores/Libretro/Libretro.Emulator.cs index 3cd6faa42e..a9ca7cdcc9 100644 --- a/src/BizHawk.Emulation.Cores/Libretro/Libretro.Emulator.cs +++ b/src/BizHawk.Emulation.Cores/Libretro/Libretro.Emulator.cs @@ -136,8 +136,8 @@ namespace BizHawk.Emulation.Cores.Libretro if (inited) { - api.retro_deinit(); api.retro_unload_game(); + api.retro_deinit(); inited = false; }