aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-10 21:17:41 +0200
committerEugene Sandulenko2017-07-10 21:17:41 +0200
commit940b2a20f1cd490afb6e541a3cd26f0d3bdd1687 (patch)
treeed080d2edfcc191e2edd4ad61cb8e778e660d422 /backends/fs
parentc61c0cb0ff6edb53d2ff32efa559e76dd4d086ec (diff)
downloadscummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.tar.gz
scummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.tar.bz2
scummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.zip
Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken.
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/ds/ds-fs-factory.cpp3
-rw-r--r--backends/fs/ps2/ps2-fs-factory.cpp4
-rw-r--r--backends/fs/psp/psp-fs-factory.cpp4
-rw-r--r--backends/fs/wii/wii-fs-factory.cpp4
4 files changed, 15 insertions, 0 deletions
diff --git a/backends/fs/ds/ds-fs-factory.cpp b/backends/fs/ds/ds-fs-factory.cpp
index e99033eebd..98c522f1d6 100644
--- a/backends/fs/ds/ds-fs-factory.cpp
+++ b/backends/fs/ds/ds-fs-factory.cpp
@@ -28,6 +28,9 @@
#include "backends/fs/ds/ds-fs.h"
#include "dsmain.h" //for the isGBAMPAvailable() function
+namespace Common {
+DECLARE_SINGLETON(DSFilesystemFactory);
+}
AbstractFSNode *DSFilesystemFactory::makeRootFileNode() const {
if (DS::isGBAMPAvailable()) {
diff --git a/backends/fs/ps2/ps2-fs-factory.cpp b/backends/fs/ps2/ps2-fs-factory.cpp
index 93525eba1a..9c12d27a6e 100644
--- a/backends/fs/ps2/ps2-fs-factory.cpp
+++ b/backends/fs/ps2/ps2-fs-factory.cpp
@@ -28,6 +28,10 @@
#include "backends/fs/ps2/ps2-fs-factory.h"
#include "backends/fs/ps2/ps2-fs.h"
+namespace Common {
+DECLARE_SINGLETON(Ps2FilesystemFactory);
+}
+
AbstractFSNode *Ps2FilesystemFactory::makeRootFileNode() const {
return new Ps2FilesystemNode();
}
diff --git a/backends/fs/psp/psp-fs-factory.cpp b/backends/fs/psp/psp-fs-factory.cpp
index fa92bf42d1..303ea242c5 100644
--- a/backends/fs/psp/psp-fs-factory.cpp
+++ b/backends/fs/psp/psp-fs-factory.cpp
@@ -44,6 +44,10 @@
#include <unistd.h>
+namespace Common {
+DECLARE_SINGLETON(PSPFilesystemFactory);
+}
+
AbstractFSNode *PSPFilesystemFactory::makeRootFileNode() const {
return new PSPFilesystemNode();
}
diff --git a/backends/fs/wii/wii-fs-factory.cpp b/backends/fs/wii/wii-fs-factory.cpp
index 1c95e4e42f..f234c1e300 100644
--- a/backends/fs/wii/wii-fs-factory.cpp
+++ b/backends/fs/wii/wii-fs-factory.cpp
@@ -43,6 +43,10 @@
#include <smb.h>
#endif
+namespace Common {
+DECLARE_SINGLETON(WiiFilesystemFactory);
+}
+
WiiFilesystemFactory::WiiFilesystemFactory() :
_dvdMounted(false),
_smbMounted(false),