summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-07-12 18:28:18 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-07-15 19:27:04 +0200
commit1bbc61f5f1f65478727fbe6351240331d77f104d (patch)
treef1e637dcf1983ae17188e220d730756bc914b606
parentRemove global system instance and address feedback (diff)
downloadyuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar.gz
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar.bz2
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar.lz
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar.xz
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.tar.zst
yuzu-1bbc61f5f1f65478727fbe6351240331d77f104d.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/registered_cache.cpp2
-rw-r--r--src/yuzu/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index 0f4d52d35..92417ef70 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -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;
}
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 432379705..d51cb2bcb 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -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;