From a2bedcf06cbbd8c677e5cd42b025bf7e3d22fd24 Mon Sep 17 00:00:00 2001 From: Andrew Pilley Date: Mon, 19 Feb 2024 08:33:37 +1100 Subject: [PATCH] Based on feedback: Don't delete existing files. There's legitimate reasons that someone may want to keep their retail keys and title key handling is resilient to mismatches. --- src/yuzu/main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 5112fe5857..df58b556e0 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -4338,12 +4338,6 @@ void GMainWindow::OnInstallDecryptionKeys() { } const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir); - if (!Common::FS::RemoveDirContentsRecursively(yuzu_keys_dir)) { - QMessageBox::critical(this, tr("Decryption Keys install failed"), - tr("Failed to remove old keys from Yuzu's keys location.")); - return; - } - for (auto key_file : source_key_files) { std::filesystem::path destination_key_file = yuzu_keys_dir / key_file.filename(); if (!std::filesystem::copy_file(key_file, destination_key_file,