aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/psp')
-rw-r--r--backends/platform/psp/osys_psp.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp
index 9c2bacfef6..52d0913a4b 100644
--- a/backends/platform/psp/osys_psp.cpp
+++ b/backends/platform/psp/osys_psp.cpp
@@ -30,7 +30,7 @@
#include "osys_psp.h"
-#include "backends/saves/default/default-saves.h"
+#include "backends/saves/psp/psp-saves.h"
#include "backends/timer/default/default-timer.h"
#include "graphics/surface.h"
#include "graphics/scaler.h"
@@ -98,19 +98,7 @@ OSystem_PSP::~OSystem_PSP() {
void OSystem_PSP::initBackend() {
- _savefile = new DefaultSaveFileManager("ms0:/scummvm_savegames");
-
- const char *savePath = _savefile->getSavePath().c_str();
-
- //check if the save directory exists
- SceUID fd = sceIoDopen(savePath);
- if (fd < 0) {
- //No? then let's create it.
- sceIoMkdir(savePath, 0777);
- } else {
- //it exists, so close it again.
- sceIoDclose(fd);
- }
+ _savefile = new PSPSaveFileManager;
_timer = new DefaultTimerManager();
setTimerCallback(&timer_handler, 10);