diff options
Diffstat (limited to 'backends/platform/sdl/sdl.cpp')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index be69817d5a..02c2efccdb 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -37,7 +37,11 @@ #include "common/events.h" #include "common/util.h" -#include "backends/saves/default/default-saves.h" +#ifdef UNIX + #include "backends/saves/posix/posix-saves.h" +#else + #include "backends/saves/default/default-saves.h" +#endif #include "backends/timer/default/default-timer.h" #include "sound/mixer_intern.h" @@ -150,7 +154,11 @@ void OSystem_SDL::initBackend() { // Create the savefile manager, if none exists yet (we check for this to // allow subclasses to provide their own). if (_savefile == 0) { - _savefile = new DefaultSaveFileManager(); +#ifdef UNIX + _savefile = new POSIXSaveFileManager(); +#else + _savefile = new DefaultSaveFileManager(); +#endif } // Create and hook up the mixer, if none exists yet (we check for this to |