From 7ac1f73a8ec0aac95ebe95fcd2ffb6784da422ca Mon Sep 17 00:00:00 2001 From: BigBossWHD Date: Thu, 8 Oct 2026 14:29:05 +0800 Subject: [PATCH] libretro: reset machine options between content sessions --- src/osd/libretro/retromain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/libretro/retromain.cpp b/src/osd/libretro/retromain.cpp index 042ac9004c67f..dafb2fa9286fe 100644 --- a/src/osd/libretro/retromain.cpp +++ b/src/osd/libretro/retromain.cpp @@ -247,6 +247,10 @@ int mmain(int argc, char *argv[]) { static retro_options retro_global_options; + + // A new content session must not inherit slot/image defaults from + // the previous machine (e.g. different Neo Geo cartridge types). + retro_global_options.set_system_name(""); retro_global_osd = new retro_osd_interface(retro_global_options); retro_output retrooutput;