diff options
author | Max Horn | 2008-11-03 10:45:59 +0000 |
---|---|---|
committer | Max Horn | 2008-11-03 10:45:59 +0000 |
commit | d0c9b0cb233a00094f18269d94b7d0fb64433099 (patch) | |
tree | 2a398567a86bc4a4c1a8fbd89fd7731008c6c7a0 /backends/platform/sdl | |
parent | 282ebbb0e54211a1a3cef5510287a7c494fce1d2 (diff) | |
download | scummvm-rg350-d0c9b0cb233a00094f18269d94b7d0fb64433099.tar.gz scummvm-rg350-d0c9b0cb233a00094f18269d94b7d0fb64433099.tar.bz2 scummvm-rg350-d0c9b0cb233a00094f18269d94b7d0fb64433099.zip |
* turned DefaultSaveFileManager::checkPath into a virtual method
* add a subclass of DefaultSaveFileManager for UNIX, POSIXSaveFileManager, which overloads checkPath
* switched SDL backend to use POSIXSaveFileManager if UNIX is #defined
svn-id: r34872
Diffstat (limited to 'backends/platform/sdl')
-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 |