summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/registered_cache.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-09-17 00:25:17 +0200
committerLiam <byteslice@airmail.cc>2023-09-17 00:25:17 +0200
commit13a7a297bb0c56335e83322c8b9ce0e257cd6ff8 (patch)
tree5a135f9f39d8087d615d260c4ca0285bb6a9da44 /src/core/file_sys/registered_cache.cpp
parentMerge pull request #11519 from german77/system-policy (diff)
downloadyuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar.gz
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar.bz2
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar.lz
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar.xz
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.tar.zst
yuzu-13a7a297bb0c56335e83322c8b9ce0e257cd6ff8.zip
Diffstat (limited to 'src/core/file_sys/registered_cache.cpp')
-rw-r--r--src/core/file_sys/registered_cache.cpp4
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;