[Scummvm-cvs-logs] SF.net SVN: scummvm: [32823] scummvm/trunk/backends/platform/null/null.cpp

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sat Jun 28 15:53:39 CEST 2008


Revision: 32823
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32823&view=rev
Author:   joostp
Date:     2008-06-28 06:53:39 -0700 (Sat, 28 Jun 2008)

Log Message:
-----------
add getFilesystemFactory() method to null backend

Modified Paths:
--------------
    scummvm/trunk/backends/platform/null/null.cpp

Modified: scummvm/trunk/backends/platform/null/null.cpp
===================================================================
--- scummvm/trunk/backends/platform/null/null.cpp	2008-06-28 13:44:10 UTC (rev 32822)
+++ scummvm/trunk/backends/platform/null/null.cpp	2008-06-28 13:53:39 UTC (rev 32823)
@@ -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 @@
 	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 @@
 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();
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list