mirror of https://github.com/RPCS3/rpcs3.git
Qt: remove entire cache dir of a serial on remove all caches
This commit is contained in:
parent
2082f06443
commit
4657afd899
|
@ -1099,9 +1099,10 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
||||||
if (QMessageBox::question(this, tr("Confirm Removal"), tr("Remove all caches?")) != QMessageBox::Yes)
|
if (QMessageBox::question(this, tr("Confirm Removal"), tr("Remove all caches?")) != QMessageBox::Yes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RemoveShadersCache(cache_base_dir);
|
if (fs::remove_all(cache_base_dir))
|
||||||
RemovePPUCache(cache_base_dir);
|
game_list_log.success("Removed cache directory: '%s'", cache_base_dir);
|
||||||
RemoveSPUCache(cache_base_dir);
|
else
|
||||||
|
game_list_log.error("Could not remove cache directory: '%s' (%s)", cache_base_dir, fs::g_tls_error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
Loading…
Reference in New Issue