From 5684bcb6f4c599635426295fee46cfd5ac448b8f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 23 Jan 2024 22:33:36 +1000 Subject: [PATCH] Qt: Explicitly set memcard compression regardless of choice Fixes compressed cards being created when the directory has the compressed flag set (probably from wx..). --- pcsx2-qt/Settings/MemoryCardCreateDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/Settings/MemoryCardCreateDialog.cpp b/pcsx2-qt/Settings/MemoryCardCreateDialog.cpp index 1f7b1942b5..86a32dc8ab 100644 --- a/pcsx2-qt/Settings/MemoryCardCreateDialog.cpp +++ b/pcsx2-qt/Settings/MemoryCardCreateDialog.cpp @@ -117,10 +117,10 @@ void MemoryCardCreateDialog::createCard() } #ifdef _WIN32 - if (m_ui.ntfsCompression->isChecked() && m_type == MemoryCardType::File) + if (m_type == MemoryCardType::File) { - const std::string fullPath(Path::Combine(EmuFolders::MemoryCards, name_str)); - FileSystem::SetPathCompression(fullPath.c_str(), true); + const std::string fullPath = Path::Combine(EmuFolders::MemoryCards, name_str); + FileSystem::SetPathCompression(fullPath.c_str(), m_ui.ntfsCompression->isChecked()); } #endif