mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-04 14:02:45 +01:00
Use proper install result when overwriting files
This commit is contained in:
parent
8794e623d9
commit
1bbc61f5f1
2 changed files with 3 additions and 3 deletions
|
@ -643,7 +643,7 @@ InstallResult RegisteredCache::InstallEntry(const NSP& nsp, bool overwrite_if_ex
|
|||
|
||||
Refresh();
|
||||
if (result) {
|
||||
return InstallResult::ErrorAlreadyExists;
|
||||
return InstallResult::OverwriteExisting;
|
||||
}
|
||||
return InstallResult::Success;
|
||||
}
|
||||
|
|
|
@ -1755,7 +1755,7 @@ InstallResult GMainWindow::InstallNSPXCI(const QString& filename) {
|
|||
*nsp, true, qt_raw_copy);
|
||||
if (res == FileSys::InstallResult::Success) {
|
||||
return InstallResult::Success;
|
||||
} else if (res == FileSys::InstallResult::ErrorAlreadyExists) {
|
||||
} else if (res == FileSys::InstallResult::OverwriteExisting) {
|
||||
return InstallResult::Overwrite;
|
||||
} else {
|
||||
return InstallResult::Failure;
|
||||
|
@ -1842,7 +1842,7 @@ InstallResult GMainWindow::InstallNCA(const QString& filename) {
|
|||
|
||||
if (res == FileSys::InstallResult::Success) {
|
||||
return InstallResult::Success;
|
||||
} else if (res == FileSys::InstallResult::ErrorAlreadyExists) {
|
||||
} else if (res == FileSys::InstallResult::OverwriteExisting) {
|
||||
return InstallResult::Overwrite;
|
||||
} else {
|
||||
return InstallResult::Failure;
|
||||
|
|
Loading…
Reference in a new issue