2002-03-25 08:51:34 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2001 Ludvig Strigeus
|
|
|
|
* Copyright (C) 2001/2002 The ScummVM project
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2002-08-18 17:48:18 +00:00
|
|
|
#ifndef GAMEDETECTOR_H
|
|
|
|
#define GAMEDETECTOR_H
|
|
|
|
|
2002-09-30 00:55:47 +00:00
|
|
|
#include "common/str.h"
|
|
|
|
|
2002-08-18 17:48:18 +00:00
|
|
|
class OSystem;
|
|
|
|
class MidiDriver;
|
|
|
|
|
2002-09-27 23:27:14 +00:00
|
|
|
struct VersionSettings {
|
|
|
|
const char *filename;
|
|
|
|
const char *gamename;
|
|
|
|
byte id, major, middle, minor;
|
|
|
|
uint32 features;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const VersionSettings version_settings[];
|
|
|
|
|
|
|
|
|
2002-03-25 08:51:34 +00:00
|
|
|
class GameDetector {
|
2002-09-30 00:55:47 +00:00
|
|
|
typedef ScummVM::String String;
|
|
|
|
protected:
|
|
|
|
bool detectGame(void);
|
|
|
|
|
2002-03-23 20:34:47 +00:00
|
|
|
public:
|
2002-09-30 00:55:47 +00:00
|
|
|
GameDetector();
|
|
|
|
|
2002-03-23 20:34:47 +00:00
|
|
|
void parseCommandLine(int argc, char **argv);
|
2002-09-30 00:55:47 +00:00
|
|
|
int detectMain();
|
|
|
|
void setGame(const String &name);
|
2002-08-31 13:29:10 +00:00
|
|
|
const char *getGameName(void);
|
2002-03-23 20:34:47 +00:00
|
|
|
|
|
|
|
bool _fullScreen;
|
2002-04-12 10:34:46 +00:00
|
|
|
byte _gameId;
|
|
|
|
|
2002-04-13 18:34:11 +00:00
|
|
|
bool _use_adlib;
|
|
|
|
|
2002-08-07 00:32:13 +00:00
|
|
|
int _music_volume;
|
|
|
|
int _sfx_volume;
|
2002-10-23 10:34:14 +00:00
|
|
|
int _master_volume;
|
2002-04-17 03:11:37 +00:00
|
|
|
bool _amiga;
|
2002-04-14 18:13:08 +00:00
|
|
|
|
2002-05-05 20:08:41 +00:00
|
|
|
uint16 _talkSpeed;
|
2002-03-23 20:34:47 +00:00
|
|
|
uint16 _debugMode;
|
2002-09-30 00:55:47 +00:00
|
|
|
bool _noSubtitles;
|
2002-03-23 20:34:47 +00:00
|
|
|
uint16 _bootParam;
|
2002-04-12 10:34:46 +00:00
|
|
|
uint16 _soundCardType;
|
|
|
|
|
2002-03-23 20:34:47 +00:00
|
|
|
char *_gameDataPath;
|
|
|
|
int _gameTempo;
|
|
|
|
int _midi_driver;
|
2002-09-30 00:55:47 +00:00
|
|
|
String _gameFileName;
|
2002-03-23 20:34:47 +00:00
|
|
|
const char *_gameText;
|
|
|
|
uint32 _features;
|
2002-04-12 21:26:59 +00:00
|
|
|
|
2002-04-13 18:34:11 +00:00
|
|
|
int _gfx_driver;
|
2002-04-12 21:26:59 +00:00
|
|
|
int _gfx_mode;
|
2002-04-12 10:34:46 +00:00
|
|
|
|
2002-04-07 07:33:39 +00:00
|
|
|
int _cdrom;
|
2002-07-19 12:06:45 +00:00
|
|
|
int _save_slot;
|
2002-04-27 16:58:29 +00:00
|
|
|
|
|
|
|
bool _saveconfig;
|
2002-04-12 21:26:59 +00:00
|
|
|
|
|
|
|
int parseGraphicsMode(const char *s);
|
2002-03-25 01:40:51 +00:00
|
|
|
|
2002-04-13 18:34:11 +00:00
|
|
|
bool parseMusicDriver(const char *s);
|
2002-04-27 16:58:29 +00:00
|
|
|
|
|
|
|
void updateconfig();
|
2002-10-18 07:08:45 +00:00
|
|
|
void list_games();
|
2002-04-13 18:34:11 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
OSystem *createSystem();
|
|
|
|
MidiDriver *createMidi();
|
2002-03-23 20:34:47 +00:00
|
|
|
};
|
2002-08-18 17:48:18 +00:00
|
|
|
|
|
|
|
#endif
|