aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/gp32/gp32-fs-factory.cpp
blob: fc19bdf1cfd0e007be0fc5117a96030188b7d655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "backends/fs/gp32/gp32-fs-factory.h"
#include "backends/fs/gp32/gp32-fs.cpp"

GP32FilesystemFactory *GP32FilesystemFactory::_instance = 0;

GP32FilesystemFactory *GP32FilesystemFactory::instance(){
	if(_instance == 0){
		_instance = new GP32FilesystemFactory();
	}
	return _instance;
}

AbstractFilesystemNode *GP32FilesystemFactory::makeRootFileNode() const {
	return new GP32FilesystemNode();
}

AbstractFilesystemNode *GP32FilesystemFactory::makeCurrentDirectoryFileNode() const {
	return new GP32FilesystemNode();
}

AbstractFilesystemNode *GP32FilesystemFactory::makeFileNodePath(const String &path) const {
	return new GP32FilesystemNode(path);
}