diff options
| author | JosJuice <josjuice@gmail.com> | 2018-10-14 18:03:10 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2018-10-25 08:29:54 +0200 |
| commit | 8bbec312953277fa7970fd3adf88976eb6515dd7 (patch) | |
| tree | 1c9ff5e67de2d3e02275f4f5fe237788ed9f03eb /Source/Core/UICommon/GameFileCache.cpp | |
| parent | 8d1e996f395f161ceb346a6b4c67ae1a91595103 (diff) | |
DolphinQt: Implement "Purge Game List Cache"
This is a missing feature from DolphinWX.
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index 282dcd0ee8..7fa558d889 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -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(); } |
