mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DolphinQt: Implement "Purge Game List Cache"
This is a missing feature from DolphinWX.
This commit is contained in:
parent
8d1e996f39
commit
8bbec31295
11 changed files with 41 additions and 3 deletions
|
@ -58,8 +58,11 @@ size_t GameFileCache::GetSize() const
|
|||
return m_cached_files.size();
|
||||
}
|
||||
|
||||
void GameFileCache::Clear()
|
||||
void GameFileCache::Clear(DeleteOnDisk delete_on_disk)
|
||||
{
|
||||
if (delete_on_disk != DeleteOnDisk::No)
|
||||
File::Delete(m_path);
|
||||
|
||||
m_cached_files.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue