mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-02-06 09:44:59 -05:00
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.
This commit is contained in:
parent
f95c6143dd
commit
a2bedcf06c
1 changed files with 0 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue