diff options
author | Max Horn | 2011-05-03 10:33:03 +0200 |
---|---|---|
committer | Max Horn | 2011-05-03 13:22:00 +0200 |
commit | f62fd4f25f5fcc237d59054af0d6182da8d8eff8 (patch) | |
tree | 05fd53a36cd791f91419e261a547c7c2406daa98 /backends/fs/psp/psp-fs-factory.cpp | |
parent | 5ea9e14c2fcd3c1054ce95867ca7df7c8498a2d8 (diff) | |
download | scummvm-rg350-f62fd4f25f5fcc237d59054af0d6182da8d8eff8.tar.gz scummvm-rg350-f62fd4f25f5fcc237d59054af0d6182da8d8eff8.tar.bz2 scummvm-rg350-f62fd4f25f5fcc237d59054af0d6182da8d8eff8.zip |
BACKENDS: Avoid #including .cpp files
So far, the various *-fs-factory.cpp files were #including the
corresponding *-fs.cpp files. This is surprising and hence could lead to
all kinds of problems). To fix this, provide proper headers for the
*-fs.cpp files.
This also makes code reuse via subclassing possible.
Since not all ports were tested, this will likely lead to a few
easy to fix compile regressions.
Diffstat (limited to 'backends/fs/psp/psp-fs-factory.cpp')
-rw-r--r-- | backends/fs/psp/psp-fs-factory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/fs/psp/psp-fs-factory.cpp b/backends/fs/psp/psp-fs-factory.cpp index 7ed84de034..7fd8d8b077 100644 --- a/backends/fs/psp/psp-fs-factory.cpp +++ b/backends/fs/psp/psp-fs-factory.cpp @@ -23,8 +23,9 @@ */ #if defined(__PSP__) + #include "backends/fs/psp/psp-fs-factory.h" -#include "backends/fs/psp/psp-fs.cpp" +#include "backends/fs/psp/psp-fs.h" DECLARE_SINGLETON(PSPFilesystemFactory); @@ -34,7 +35,7 @@ AbstractFSNode *PSPFilesystemFactory::makeRootFileNode() const { AbstractFSNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const { char buf[MAXPATHLEN]; - char * ret = 0; + char *ret = 0; PowerMan.beginCriticalSection(); ret = getcwd(buf, MAXPATHLEN); @@ -46,4 +47,5 @@ AbstractFSNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const { AbstractFSNode *PSPFilesystemFactory::makeFileNodePath(const Common::String &path) const { return new PSPFilesystemNode(path, true); } + #endif |