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.
|
|
|
|
*
|
|
|
|
* 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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
2007-09-18 20:02:04 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2007-08-18 05:24:18 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-24 23:14:04 +00:00
|
|
|
#if defined(__PSP__)
|
2007-09-18 20:02:04 +00:00
|
|
|
#include "backends/fs/psp/psp-fs-factory.h"
|
2007-10-17 19:45:23 +00:00
|
|
|
#include "backends/fs/psp/psp-fs.cpp"
|
2007-05-03 02:39:33 +00:00
|
|
|
|
2010-11-16 08:23:13 +00:00
|
|
|
DECLARE_SINGLETON(PSPFilesystemFactory);
|
2007-05-31 23:44:43 +00:00
|
|
|
|
2008-10-02 16:58:59 +00:00
|
|
|
AbstractFSNode *PSPFilesystemFactory::makeRootFileNode() const {
|
2007-05-03 02:39:33 +00:00
|
|
|
return new PSPFilesystemNode();
|
|
|
|
}
|
|
|
|
|
2008-10-02 16:58:59 +00:00
|
|
|
AbstractFSNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const {
|
2009-08-15 10:44:58 +00:00
|
|
|
char buf[MAXPATHLEN];
|
2009-08-17 12:57:37 +00:00
|
|
|
char * ret = 0;
|
|
|
|
|
|
|
|
PowerMan.beginCriticalSection();
|
|
|
|
ret = getcwd(buf, MAXPATHLEN);
|
|
|
|
PowerMan.endCriticalSection();
|
|
|
|
|
|
|
|
return (ret ? new PSPFilesystemNode(buf) : NULL);
|
2007-05-03 02:39:33 +00:00
|
|
|
}
|
|
|
|
|
2008-10-02 16:58:59 +00:00
|
|
|
AbstractFSNode *PSPFilesystemFactory::makeFileNodePath(const Common::String &path) const {
|
2007-05-03 02:39:33 +00:00
|
|
|
return new PSPFilesystemNode(path, true);
|
|
|
|
}
|
2008-02-24 23:14:04 +00:00
|
|
|
#endif
|