diff options
Diffstat (limited to 'backends/fs/psp/psp-fs-factory.cpp')
-rw-r--r-- | backends/fs/psp/psp-fs-factory.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/backends/fs/psp/psp-fs-factory.cpp b/backends/fs/psp/psp-fs-factory.cpp new file mode 100644 index 0000000000..2a0307d3f4 --- /dev/null +++ b/backends/fs/psp/psp-fs-factory.cpp @@ -0,0 +1,23 @@ +#include "backends/fs/psp/psp-fs-factory.h" +#include "backends/fs/psp/psp_fs.cpp" + +PSPFilesystemFactory *PSPFilesystemFactory::_instance = 0; + +PSPFilesystemFactory *PSPFilesystemFactory::instance(){ + if(_instance == 0){ + _instance = new PSPFilesystemFactory(); + } + return _instance; +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeRootFileNode() const { + return new PSPFilesystemNode(); +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const { + return new PSPFilesystemNode(); +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeFileNodePath(const String &path) const { + return new PSPFilesystemNode(path, true); +} |