diff options
author | Joost Peters | 2008-06-28 13:53:39 +0000 |
---|---|---|
committer | Joost Peters | 2008-06-28 13:53:39 +0000 |
commit | ad447b6f3912d99a0d24575571203a78186ad2b9 (patch) | |
tree | d15b71881fad6f6dd57627ba9df36ba529bf09a8 /backends/platform/null | |
parent | 09247e7e5a5a78d050b716365a22dc9ccb61b078 (diff) | |
download | scummvm-rg350-ad447b6f3912d99a0d24575571203a78186ad2b9.tar.gz scummvm-rg350-ad447b6f3912d99a0d24575571203a78186ad2b9.tar.bz2 scummvm-rg350-ad447b6f3912d99a0d24575571203a78186ad2b9.zip |
add getFilesystemFactory() method to null backend
svn-id: r32823
Diffstat (limited to 'backends/platform/null')
-rw-r--r-- | backends/platform/null/null.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/backends/platform/null/null.cpp b/backends/platform/null/null.cpp index 64d429a83e..3389d357b7 100644 --- a/backends/platform/null/null.cpp +++ b/backends/platform/null/null.cpp @@ -34,6 +34,19 @@ #include "backends/timer/default/default-timer.h" #include "sound/mixer.h" +/* + * Include header files needed for the getFilesystemFactory() method. + */ +#if defined(__amigaos4__) + #include "backends/fs/amigaos4/amigaos4-fs-factory.h" +#elif defined(UNIX) + #include "backends/fs/posix/posix-fs-factory.h" +#elif defined(WIN32) + #include "backends/fs/windows/windows-fs-factory.h" +#endif + + + class OSystem_NULL : public OSystem { protected: Common::SaveFileManager *_savefile; @@ -104,6 +117,8 @@ public: virtual Audio::Mixer *getMixer(); virtual void getTimeAndDate(struct tm &t) const; virtual Common::TimerManager *getTimerManager(); + FilesystemFactory *getFilesystemFactory(); + }; static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { @@ -299,6 +314,19 @@ Common::TimerManager *OSystem_NULL::getTimerManager() { void OSystem_NULL::getTimeAndDate(struct tm &t) const { } +FilesystemFactory *OSystem_NULL::getFilesystemFactory() { + #if defined(__amigaos4__) + return &AmigaOSFilesystemFactory::instance(); + #elif defined(UNIX) + return &POSIXFilesystemFactory::instance(); + #elif defined(WIN32) + return &WindowsFilesystemFactory::instance(); + #else + #error Unknown and unsupported backend in OSystem_NULL::getFilesystemFactory + #endif +} + + OSystem *OSystem_NULL_create() { return new OSystem_NULL(); } |