diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/module.mk | 1 | ||||
-rw-r--r-- | backends/platform/dc/Makefile | 2 | ||||
-rw-r--r-- | backends/platform/dc/dc-fs.cpp (renamed from backends/fs/dc/dc-fs.cpp) | 0 | ||||
-rw-r--r-- | backends/platform/dc/dc.h | 4 | ||||
-rw-r--r-- | backends/platform/dc/ronincd-fs-factory.cpp (renamed from backends/fs/dc/ronincd-fs-factory.cpp) | 6 | ||||
-rw-r--r-- | backends/platform/dc/ronincd-fs-factory.h (renamed from backends/fs/dc/ronincd-fs-factory.h) | 9 |
6 files changed, 8 insertions, 14 deletions
diff --git a/backends/module.mk b/backends/module.mk index 46154d9380..dad25f058b 100644 --- a/backends/module.mk +++ b/backends/module.mk @@ -2,7 +2,6 @@ MODULE := backends MODULE_OBJS := \ fs/amigaos4/amigaos4-fs-factory.o \ - fs/dc/ronincd-fs-factory.o \ fs/ds/ds-fs-factory.o \ fs/gp32/gp32-fs-factory.o \ fs/morphos/abox-fs-factory.o \ diff --git a/backends/platform/dc/Makefile b/backends/platform/dc/Makefile index e40445b515..26088cdf17 100644 --- a/backends/platform/dc/Makefile +++ b/backends/platform/dc/Makefile @@ -35,7 +35,7 @@ POST_OBJS_FLAGS = -Wl,--no-whole-archive endif OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \ - label.o vmsave.o softkbd.o dcloader.o cache.o + label.o vmsave.o softkbd.o dcloader.o cache.o ronincd-fs-factory.o MODULE_DIRS += . diff --git a/backends/fs/dc/dc-fs.cpp b/backends/platform/dc/dc-fs.cpp index 16b77857c0..16b77857c0 100644 --- a/backends/fs/dc/dc-fs.cpp +++ b/backends/platform/dc/dc-fs.cpp diff --git a/backends/platform/dc/dc.h b/backends/platform/dc/dc.h index c70e788275..8d16e59bb7 100644 --- a/backends/platform/dc/dc.h +++ b/backends/platform/dc/dc.h @@ -27,6 +27,7 @@ #include <graphics/surface.h> #include <ronin/soundcommon.h> #include "backends/timer/default/default-timer.h" +#include "ronincd-fs-factory.h" #define NUM_BUFFERS 4 #define SOUND_BUFFER_SHIFT 3 @@ -182,6 +183,8 @@ class OSystem_Dreamcast : public OSystem { // Extra SoftKbd support void mouseToSoftKbd(int x, int y, int &rx, int &ry) const; + // Filesystem + FilesystemFactory *getFilesystemFactory() { return &_fileSystemFactory; } private: @@ -189,6 +192,7 @@ class OSystem_Dreamcast : public OSystem { Audio::Mixer *_mixer; DefaultTimerManager *_timer; SoftKeyboard _softkbd; + RoninCDFilesystemFactory _fileSystemFactory; int _ms_cur_x, _ms_cur_y, _ms_cur_w, _ms_cur_h, _ms_old_x, _ms_old_y; int _ms_hotspot_x, _ms_hotspot_y, _ms_visible, _devpoll; diff --git a/backends/fs/dc/ronincd-fs-factory.cpp b/backends/platform/dc/ronincd-fs-factory.cpp index 12ec1ffd68..8980436cf0 100644 --- a/backends/fs/dc/ronincd-fs-factory.cpp +++ b/backends/platform/dc/ronincd-fs-factory.cpp @@ -23,10 +23,8 @@ */ #if defined(__DC__) -#include "backends/fs/dc/ronincd-fs-factory.h" -#include "backends/fs/dc/dc-fs.cpp" - -DECLARE_SINGLETON(RoninCDFilesystemFactory); +#include "ronincd-fs-factory.h" +#include "dc-fs.cpp" AbstractFilesystemNode *RoninCDFilesystemFactory::makeRootFileNode() const { return new RoninCDFilesystemNode(); diff --git a/backends/fs/dc/ronincd-fs-factory.h b/backends/platform/dc/ronincd-fs-factory.h index 532a6d3333..7763b2bb9f 100644 --- a/backends/fs/dc/ronincd-fs-factory.h +++ b/backends/platform/dc/ronincd-fs-factory.h @@ -25,7 +25,6 @@ #ifndef RONINCD_FILESYSTEM_FACTORY_H #define RONINCD_FILESYSTEM_FACTORY_H -#include "common/singleton.h" #include "backends/fs/fs-factory.h" /** @@ -33,19 +32,13 @@ * * Parts of this class are documented in the base interface class, FilesystemFactory. */ -class RoninCDFilesystemFactory : public FilesystemFactory, public Common::Singleton<RoninCDFilesystemFactory> { +class RoninCDFilesystemFactory : public FilesystemFactory { public: typedef Common::String String; virtual AbstractFilesystemNode *makeRootFileNode() const; virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; - -protected: - RoninCDFilesystemFactory() {}; - -private: - friend class Common::Singleton<SingletonBaseType>; }; #endif /*RONINCD_FILESYSTEM_FACTORY_H*/ |