From 0e6efb22416a6545de235fda909281331b8eb4a6 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 31 Aug 2023 23:44:08 +1000 Subject: [PATCH] Qt: Canonicalize memory card paths in settings --- src/duckstation-qt/memorycardsettingswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/memorycardsettingswidget.cpp b/src/duckstation-qt/memorycardsettingswidget.cpp index b90381ff4..aaada2533 100644 --- a/src/duckstation-qt/memorycardsettingswidget.cpp +++ b/src/duckstation-qt/memorycardsettingswidget.cpp @@ -191,7 +191,7 @@ void MemoryCardSettingsWidget::updateMemoryCardPath(int index) std::string path( m_dialog->getEffectiveStringValue("MemoryCards", key, Settings::GetDefaultSharedMemoryCardName(index).c_str())); if (!Path::IsAbsolute(path)) - path = Path::Combine(EmuFolders::MemoryCards, path); + path = Path::Canonicalize(Path::Combine(EmuFolders::MemoryCards, path)); QSignalBlocker db(m_port_ui[index].memory_card_path); m_port_ui[index].memory_card_path->setText(QString::fromStdString(path));