mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
When a game is deleted via GameScreen, remove it from the recent ISOs list, if applicable.
This commit is contained in:
1 parent
c86c9fe11e
commit
e1580bb8ba
1 file changed
+10
-4
+10
-4
@@ -40,10 +40,16 @@ bool GameInfo::DeleteGame() {
|
||||
switch (fileType) {
|
||||
case FILETYPE_PSP_ISO:
|
||||
case FILETYPE_PSP_ISO_NP:
|
||||
// Just delete the one file (TODO: handle two-disk games as well somehow).
|
||||
deleteFile(fileInfo.fullName.c_str());
|
||||
return true;
|
||||
|
||||
{
|
||||
// Just delete the one file (TODO: handle two-disk games as well somehow).
|
||||
const char *fileToRemove = fileInfo.fullName.c_str();
|
||||
deleteFile(fileToRemove);
|
||||
auto i = std::find(g_Config.recentIsos.begin(), g_Config.recentIsos.end(), fileToRemove);
|
||||
if (i != g_Config.recentIsos.end()) {
|
||||
g_Config.recentIsos.erase(i);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case FILETYPE_PSP_PBP_DIRECTORY:
|
||||
// Recursively deleting directories not yet supported
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user