diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-09-17 16:42:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-17 16:42:51 +0200 |
commit | e1b79610f8522d33d2ead462b804a5cf40961d15 (patch) | |
tree | a89d057162942ccad9683df562cb3cb3f6268d6b /src/core/file_sys | |
parent | Merge pull request #11460 from Kelebek1/hw_opus (diff) | |
parent | registered_cache: correct file deletion case (diff) | |
download | yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar.gz yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar.bz2 yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar.lz yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar.xz yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.tar.zst yuzu-e1b79610f8522d33d2ead462b804a5cf40961d15.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/registered_cache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index e33b00d89..04da93d5c 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp @@ -752,7 +752,9 @@ bool RegisteredCache::RemoveExistingEntry(u64 title_id) const { for (u8 i = 0; i < 0x10; i++) { const auto meta_dir = dir->CreateDirectoryRelative("yuzu_meta"); const auto filename = GetCNMTName(TitleType::Update, title_id + i); - removed_data |= meta_dir->DeleteFile(filename); + if (meta_dir->GetFile(filename)) { + removed_data |= meta_dir->DeleteFile(filename); + } } return removed_data; |