From 9d95c03f5affac2d940df37f845e4e847d535199 Mon Sep 17 00:00:00 2001 From: DarthMew Date: Sun, 27 Mar 2022 20:25:48 +0200 Subject: [PATCH] Require a core restart when switching memcard1 type, remove 'none' for memcard1, & further option clarification --- src/libretro/libretro_core_options.h | 9 +++++---- src/libretro/libretro_host_interface.cpp | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/libretro/libretro_core_options.h b/src/libretro/libretro_core_options.h index 2c93a0ca..a175707b 100644 --- a/src/libretro/libretro_core_options.h +++ b/src/libretro/libretro_core_options.h @@ -999,13 +999,14 @@ struct retro_core_option_v2_definition option_defs_us[] = { "duckstation_MemoryCards.Card1Type", "Memory Card 1 Type", NULL, - "Sets the type of memory card for Slot 1. Restart core when switching to Libretro from other formats. " - "Libretro (.srm) and PerGameTitle (.mcd) saves have internally identical formats and can be converted " - "between one another via renaming the extension and removing/adding the slot number (_1)", + "Sets the type of memory card for Slot 1. Restart the core when switching formats. " + "'Shared Between All Games' and both 'Separate Card Per Game' options may be used for legacy purposes, " + "and are unsupported. 'Libretro' (.srm) and 'Separate Card Per Game (Game Title)' (.mcd) saves " + "have internally identical formats and can be converted between one another via renaming the extension " + "and removing/adding the slot number (_1)", NULL, "port", { - { "None", "No Memory Card" }, { "Libretro", "Libretro (Default)" }, { "Shared", "Shared Between All Games" }, { "PerGame", "Separate Card Per Game (Game Code)" }, diff --git a/src/libretro/libretro_host_interface.cpp b/src/libretro/libretro_host_interface.cpp index 744f7328..11dbeaf5 100644 --- a/src/libretro/libretro_host_interface.cpp +++ b/src/libretro/libretro_host_interface.cpp @@ -1017,9 +1017,9 @@ void LibretroHostInterface::UpdateSettings() old_settings.gpu_resolution_scale = g_settings.gpu_resolution_scale; } - if (g_settings.memory_card_types[0] == MemoryCardType::Libretro && old_settings.memory_card_types[0] != MemoryCardType::Libretro) + if (g_settings.memory_card_types[0] != old_settings.memory_card_types[0]) { - ReportFormattedMessage("Setting memory card 1 to Save RAM mode will apply on core reload, to prevent save loss."); + ReportFormattedMessage("Changing memory card 1 type will apply on core reload, to prevent save loss."); g_settings.memory_card_types[0] = old_settings.memory_card_types[0]; }