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.
|
|
|
|
*
|
|
|
|
* $URL: $
|
|
|
|
* $Id: $
|
2007-05-03 02:39:33 +00:00
|
|
|
*/
|
|
|
|
|
2007-08-18 05:24:18 +00:00
|
|
|
#include "backends/factories/fs-factory-maker.h"
|
2007-05-03 02:39:33 +00:00
|
|
|
|
|
|
|
AbstractFilesystemFactory *FilesystemFactoryMaker::makeFactory(){
|
|
|
|
#if defined(__amigaos4__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &AmigaOSFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__DC__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &RoninCDFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__DS__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &DSFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__GP32__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &GP32FilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__MORPHOS__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &ABoxFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(PALMOS_MODE)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &PalmOSFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__PLAYSTATION2__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &Ps2FilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__PSP__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &PSPFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(__SYMBIAN32__)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &SymbianFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(UNIX)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &POSIXFilesystemFactory::instance();
|
2007-08-18 05:24:18 +00:00
|
|
|
#elif defined(WIN32)
|
2007-05-12 20:00:52 +00:00
|
|
|
return &WindowsFilesystemFactory::instance();
|
2007-05-03 02:39:33 +00:00
|
|
|
#endif
|
|
|
|
}
|