2007-08-18 05:24:18 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 17:47:58 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2007-08-18 05:24:18 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2014-02-18 01:34:23 +00:00
|
|
|
*
|
2007-08-18 05:24:18 +00:00
|
|
|
*/
|
|
|
|
|
2007-05-12 18:17:40 +00:00
|
|
|
#ifndef PSP_FILESYSTEM_FACTORY_H
|
|
|
|
#define PSP_FILESYSTEM_FACTORY_H
|
2007-05-03 02:39:33 +00:00
|
|
|
|
2007-06-04 03:46:56 +00:00
|
|
|
#include "common/singleton.h"
|
2008-02-23 19:01:12 +00:00
|
|
|
#include "backends/fs/fs-factory.h"
|
2007-05-03 02:39:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates PSPFilesystemNode objects.
|
2008-01-27 19:47:41 +00:00
|
|
|
*
|
2008-02-23 19:01:12 +00:00
|
|
|
* Parts of this class are documented in the base interface class, FilesystemFactory.
|
2007-05-03 02:39:33 +00:00
|
|
|
*/
|
2021-08-12 14:16:48 +00:00
|
|
|
class PSPFilesystemFactory final : public FilesystemFactory, public Common::Singleton<PSPFilesystemFactory> {
|
2007-05-03 02:39:33 +00:00
|
|
|
public:
|
2021-11-13 21:18:12 +00:00
|
|
|
AbstractFSNode *makeRootFileNode() const override;
|
|
|
|
AbstractFSNode *makeCurrentDirectoryFileNode() const override;
|
|
|
|
AbstractFSNode *makeFileNodePath(const Common::String &path) const override;
|
2008-01-27 19:47:41 +00:00
|
|
|
|
2007-05-03 02:39:33 +00:00
|
|
|
protected:
|
2011-11-26 12:33:42 +00:00
|
|
|
PSPFilesystemFactory() {}
|
2008-01-27 19:47:41 +00:00
|
|
|
|
2007-05-03 02:39:33 +00:00
|
|
|
private:
|
2007-05-12 20:00:52 +00:00
|
|
|
friend class Common::Singleton<SingletonBaseType>;
|
2007-05-03 02:39:33 +00:00
|
|
|
};
|
|
|
|
|
2007-05-12 18:17:40 +00:00
|
|
|
#endif /*PSP_FILESYSTEM_FACTORY_H*/
|