diff options
author | Joost Peters | 2008-11-03 22:21:34 +0000 |
---|---|---|
committer | Joost Peters | 2008-11-03 22:21:34 +0000 |
commit | f12b76b7fba51a25c363bd59e9918a0605a8774c (patch) | |
tree | 2c8215fc7e5073e27d76e4e682f2f8713cbda44a /backends/platform | |
parent | 13561a008ef620e1e2ef1a8b0fd7c9aff0cc9351 (diff) | |
download | scummvm-rg350-f12b76b7fba51a25c363bd59e9918a0605a8774c.tar.gz scummvm-rg350-f12b76b7fba51a25c363bd59e9918a0605a8774c.tar.bz2 scummvm-rg350-f12b76b7fba51a25c363bd59e9918a0605a8774c.zip |
add PSPSaveFileManager class (subclassed DefaultSaveFileManager)
svn-id: r34891
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 16 |
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); |