diff options
Diffstat (limited to 'backends/fs/psp/PSPFilesystemFactory.cpp')
-rw-r--r-- | backends/fs/psp/PSPFilesystemFactory.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/backends/fs/psp/PSPFilesystemFactory.cpp b/backends/fs/psp/PSPFilesystemFactory.cpp new file mode 100644 index 0000000000..5a3802c10a --- /dev/null +++ b/backends/fs/psp/PSPFilesystemFactory.cpp @@ -0,0 +1,23 @@ +#include "backends/fs/psp/PSPFilesystemFactory.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); +} |