From: kub Date: Thu, 11 Nov 2021 21:32:01 +0000 (+0100) Subject: libretro, fix sms options X-Git-Tag: v2.00~420 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06d963c795ad2ef6bda2908af7a3d7e6e69f2667;p=picodrive.git libretro, fix sms options --- diff --git a/platform/libretro/libretro.c b/platform/libretro/libretro.c index ad3b919d..bf37c9e0 100644 --- a/platform/libretro/libretro.c +++ b/platform/libretro/libretro.c @@ -1486,23 +1486,23 @@ static void update_variables(bool first_run) var.key = "picodrive_smsmapper"; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) { if (strcmp(var.value, "Auto") == 0) - PicoIn.hwSelect = PMS_MAP_AUTO; + PicoIn.mapper = PMS_MAP_AUTO; else if (strcmp(var.value, "Codemasters") == 0) - PicoIn.hwSelect = PMS_MAP_CODEM; + PicoIn.mapper = PMS_MAP_CODEM; else if (strcmp(var.value, "Korea") == 0) - PicoIn.hwSelect = PMS_MAP_KOREA; + PicoIn.mapper = PMS_MAP_KOREA; else if (strcmp(var.value, "Korea MSX") == 0) - PicoIn.hwSelect = PMS_MAP_MSX; + PicoIn.mapper = PMS_MAP_MSX; else if (strcmp(var.value, "Korea X-in-1") == 0) - PicoIn.hwSelect = PMS_MAP_N32K; + PicoIn.mapper = PMS_MAP_N32K; else if (strcmp(var.value, "Korea 4-Pak") == 0) - PicoIn.hwSelect = PMS_MAP_N16K; + PicoIn.mapper = PMS_MAP_N16K; else if (strcmp(var.value, "Korea Janggun") == 0) - PicoIn.hwSelect = PMS_MAP_JANGGUN; + PicoIn.mapper = PMS_MAP_JANGGUN; else if (strcmp(var.value, "Korea Nemesis") == 0) - PicoIn.hwSelect = PMS_MAP_NEMESIS; + PicoIn.mapper = PMS_MAP_NEMESIS; else - PicoIn.hwSelect = PMS_MAP_SEGA; + PicoIn.mapper = PMS_MAP_SEGA; } var.value = NULL;