From 99b0ba3f20a8aa5359ce2fef9653d93e77eeb74d Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 24 Jul 2020 02:40:29 +1000 Subject: [PATCH] libretro: Use correct path for shared mode memcards --- src/duckstation-libretro/libretro_host_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index 670fcb10e..90b47a122 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -554,6 +554,10 @@ void LibretroHostInterface::LoadSettings() system_directory = "bios"; m_settings.bios_path = StringUtil::StdStringFromFormat("%s%cscph1001.bin", system_directory, FS_OSPATH_SEPERATOR_CHARACTER); + + // Ensure we don't use the standalone memcard directory in shared mode. + for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++) + m_settings.memory_card_paths[i] = GetSharedMemoryCardPath(i); } void LibretroHostInterface::UpdateSettings()