Skip to content

Commit

Permalink
Qt: remove cache dir when deleting games
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Dec 11, 2022
1 parent ab3c826 commit e1e7684
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rpcs3/rpcs3qt/game_list_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,9 +1426,11 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
{
if (remove_caches)
{
RemoveShadersCache(cache_base_dir);
RemovePPUCache(cache_base_dir);
RemoveSPUCache(cache_base_dir);
if (fs::remove_all(cache_base_dir))
game_list_log.notice("Removed cache directory: '%s'", cache_base_dir);
else
game_list_log.error("Could not remove cache directory: '%s' (%s)", cache_base_dir, fs::g_tls_error);

RemoveCustomConfiguration(current_game.serial);
RemoveCustomPadConfiguration(current_game.serial);
}
Expand Down

0 comments on commit e1e7684

Please sign in to comment.