2002-03-25 08:51:34 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2001 Ludvig Strigeus
|
2006-01-18 17:39:49 +00:00
|
|
|
* Copyright (C) 2001-2006 The ScummVM project
|
2002-03-25 08:51:34 +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 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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-03-25 08:51:34 +00:00
|
|
|
*
|
2006-02-11 09:53:21 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2002-03-25 08:51:34 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-04-15 21:20:16 +00:00
|
|
|
#ifndef BASE_GAMEDETECTOR_H
|
|
|
|
#define BASE_GAMEDETECTOR_H
|
2002-08-18 17:48:18 +00:00
|
|
|
|
2002-09-30 00:55:47 +00:00
|
|
|
#include "common/str.h"
|
2006-04-02 20:11:50 +00:00
|
|
|
#include "common/config-manager.h"
|
2006-04-15 21:20:16 +00:00
|
|
|
#include "base/game.h"
|
2002-09-30 00:55:47 +00:00
|
|
|
|
2003-09-17 22:41:01 +00:00
|
|
|
class Plugin;
|
2002-08-18 17:48:18 +00:00
|
|
|
|
2006-02-17 00:22:53 +00:00
|
|
|
|
2002-03-25 08:51:34 +00:00
|
|
|
class GameDetector {
|
2003-10-02 17:43:02 +00:00
|
|
|
typedef Common::String String;
|
2002-12-13 23:29:18 +00:00
|
|
|
|
2002-03-23 20:34:47 +00:00
|
|
|
public:
|
2002-09-30 00:55:47 +00:00
|
|
|
GameDetector();
|
2003-03-06 16:27:06 +00:00
|
|
|
|
2006-04-02 21:06:49 +00:00
|
|
|
static Common::String parseCommandLine(Common::StringMap &settings, int argc, char **argv);
|
2006-04-02 21:28:01 +00:00
|
|
|
void processSettings(Common::String &target, Common::StringMap &settings);
|
2006-04-15 16:37:48 +00:00
|
|
|
const Plugin *detectMain();
|
2003-09-08 17:13:40 +00:00
|
|
|
|
2004-12-02 00:33:42 +00:00
|
|
|
public:
|
2006-03-09 02:52:51 +00:00
|
|
|
static GameDescriptor findGame(const String &gameName, const Plugin **plugin = NULL);
|
2002-12-13 23:29:18 +00:00
|
|
|
|
2006-02-18 12:50:48 +00:00
|
|
|
//protected:
|
|
|
|
void setTarget(const String &name); // TODO: This should be protected
|
2002-03-23 20:34:47 +00:00
|
|
|
};
|
2002-08-18 17:48:18 +00:00
|
|
|
|
|
|
|
#endif
|