DolphinQt: Implement "Purge Game List Cache"

This is a missing feature from DolphinWX.
This commit is contained in:
JosJuice
2018-10-14 18:03:10 +02:00
parent 8d1e996f39
commit 8bbec31295
11 changed files with 41 additions and 3 deletions

View File

@ -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();
}