yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Use proper install result when overwriting files

This commit is contained in:
Morph 2020-07-12 12:28:18 -04:00
parent 8794e623d9
commit 1bbc61f5f1
2 changed files with 3 additions and 3 deletions

View File

@ -643,7 +643,7 @@ InstallResult RegisteredCache::InstallEntry(const NSP& nsp, bool overwrite_if_ex
Refresh(); Refresh();
if (result) { if (result) {
return InstallResult::ErrorAlreadyExists; return InstallResult::OverwriteExisting;
} }
return InstallResult::Success; return InstallResult::Success;
} }

View File

@ -1755,7 +1755,7 @@ InstallResult GMainWindow::InstallNSPXCI(const QString& filename) {
*nsp, true, qt_raw_copy); *nsp, true, qt_raw_copy);
if (res == FileSys::InstallResult::Success) { if (res == FileSys::InstallResult::Success) {
return InstallResult::Success; return InstallResult::Success;
} else if (res == FileSys::InstallResult::ErrorAlreadyExists) { } else if (res == FileSys::InstallResult::OverwriteExisting) {
return InstallResult::Overwrite; return InstallResult::Overwrite;
} else { } else {
return InstallResult::Failure; return InstallResult::Failure;
@ -1842,7 +1842,7 @@ InstallResult GMainWindow::InstallNCA(const QString& filename) {
if (res == FileSys::InstallResult::Success) { if (res == FileSys::InstallResult::Success) {
return InstallResult::Success; return InstallResult::Success;
} else if (res == FileSys::InstallResult::ErrorAlreadyExists) { } else if (res == FileSys::InstallResult::OverwriteExisting) {
return InstallResult::Overwrite; return InstallResult::Overwrite;
} else { } else {
return InstallResult::Failure; return InstallResult::Failure;