From 9f53af4e332476ba99d0c056668fbb35cfb527c3 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Wed, 16 Oct 2024 07:49:31 +0800 Subject: [PATCH] Fix crash due to core option count overflow Happens mostly on dipswitched-enable games like Vs. System. --- src/drivers/libretro/libretro_core_options.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/libretro/libretro_core_options.h b/src/drivers/libretro/libretro_core_options.h index f13118b..ec3e210 100644 --- a/src/drivers/libretro/libretro_core_options.h +++ b/src/drivers/libretro/libretro_core_options.h @@ -21,7 +21,8 @@ extern "C" { ******************************** */ -#define MAX_CORE_OPTIONS 37 +/* NOTE: add 8 for dipswitch */ +#define MAX_CORE_OPTIONS 42 /* RETRO_LANGUAGE_ENGLISH */