mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Trash handling is too high level for FileUtil, move it up.
This commit is contained in:
1 parent
ef2451fc45
commit
71533ac2b7
15 files changed
+118
-105
No files matched your search
+6
-1
@@ -49,6 +49,7 @@
|
||||
#include "Common/GPU/Vulkan/VulkanLoader.h"
|
||||
#include "Common/VR/PPSSPPVR.h"
|
||||
#include "Common/System/OSD.h"
|
||||
#include "Common/System/Request.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/ConfigSettings.h"
|
||||
#include "Core/ConfigValues.h"
|
||||
@@ -1690,7 +1691,11 @@ bool Config::deleteGameConfig(const std::string& pGameId) {
|
||||
Path fullIniFilePath = Path(getGameConfigFile(pGameId, &exists));
|
||||
|
||||
if (exists) {
|
||||
File::MoveFileToTrashOrDelete(fullIniFilePath);
|
||||
if (System_GetPropertyBool(SYSPROP_HAS_TRASH_BIN)) {
|
||||
System_MoveToTrash(fullIniFilePath);
|
||||
} else {
|
||||
File::Delete(fullIniFilePath);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user