mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-08 10:07:06 +00:00
parent
5a06439a04
commit
ae478aad41
@ -82,18 +82,28 @@ bool GameInfo::Delete() {
|
||||
return true;
|
||||
}
|
||||
case FILETYPE_PSP_ELF:
|
||||
case FILETYPE_PPSSPP_SAVESTATE:
|
||||
case FILETYPE_UNKNOWN_BIN:
|
||||
case FILETYPE_UNKNOWN_ELF:
|
||||
case FILETYPE_ARCHIVE_RAR:
|
||||
case FILETYPE_ARCHIVE_ZIP:
|
||||
case FILETYPE_ARCHIVE_7Z:
|
||||
{
|
||||
const char *fileToRemove = filePath_.c_str();
|
||||
const std::string &fileToRemove = filePath_;
|
||||
File::Delete(fileToRemove);
|
||||
return true;
|
||||
}
|
||||
|
||||
case FILETYPE_PPSSPP_SAVESTATE:
|
||||
{
|
||||
const std::string &ppstPath = filePath_;
|
||||
File::Delete(ppstPath);
|
||||
const std::string screenshotPath = ReplaceAll(filePath_, ".ppst", ".jpg");
|
||||
if (File::Exists(screenshotPath)) {
|
||||
File::Delete(screenshotPath);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user