mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-25 16:25:38 +01:00
registered_cache: correct file deletion case
This commit is contained in:
parent
9912704234
commit
13a7a297bb
@ -752,7 +752,9 @@ 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);
|
||||||
removed_data |= meta_dir->DeleteFile(filename);
|
if (meta_dir->GetFile(filename)) {
|
||||||
|
removed_data |= meta_dir->DeleteFile(filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return removed_data;
|
return removed_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user