Merge pull request #11522 from liamwhite/vfs-needs-results

registered_cache: correct file deletion case
This commit is contained in:
liamwhite 2023-09-17 10:42:51 -04:00 committed by GitHub
commit e1b79610f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -752,8 +752,10 @@ bool RegisteredCache::RemoveExistingEntry(u64 title_id) const {
for (u8 i = 0; i < 0x10; i++) { for (u8 i = 0; i < 0x10; i++) {
const auto meta_dir = dir->CreateDirectoryRelative("yuzu_meta"); const auto meta_dir = dir->CreateDirectoryRelative("yuzu_meta");
const auto filename = GetCNMTName(TitleType::Update, title_id + i); const auto filename = GetCNMTName(TitleType::Update, title_id + i);
if (meta_dir->GetFile(filename)) {
removed_data |= meta_dir->DeleteFile(filename); removed_data |= meta_dir->DeleteFile(filename);
} }
}
return removed_data; return removed_data;
} }