| 1 | /* ScummVM - Scumm Interpreter
|
|---|
| 2 | * Copyright (C) 2001 Ludvig Strigeus
|
|---|
| 3 | * Copyright (C) 2001/2002 The ScummVM project
|
|---|
| 4 | *
|
|---|
| 5 | * This program is free software; you can redistribute it and/or
|
|---|
| 6 | * modify it under the terms of the GNU General Public License
|
|---|
| 7 | * as published by the Free Software Foundation; either version 2
|
|---|
| 8 | * of the License, or (at your option) any later version.
|
|---|
| 9 |
|
|---|
| 10 | * This program is distributed in the hope that it will be useful,
|
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 13 | * GNU General Public License for more details.
|
|---|
| 14 |
|
|---|
| 15 | * You should have received a copy of the GNU General Public License
|
|---|
| 16 | * along with this program; if not, write to the Free Software
|
|---|
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|---|
| 18 | *
|
|---|
| 19 | * $Header: /cvsroot/scummvm/scummvm/gameDetector.h,v 1.14 2002/07/19 12:06:45 painelf Exp $
|
|---|
| 20 | *
|
|---|
| 21 | */
|
|---|
| 22 |
|
|---|
| 23 | class GameDetector {
|
|---|
| 24 | public:
|
|---|
| 25 | int detectMain(int argc, char **argv);
|
|---|
| 26 | void parseCommandLine(int argc, char **argv);
|
|---|
| 27 | bool detectGame(void);
|
|---|
| 28 | char *getGameName(void);
|
|---|
| 29 |
|
|---|
| 30 | bool _fullScreen;
|
|---|
| 31 | byte _gameId;
|
|---|
| 32 | bool _simon;
|
|---|
| 33 |
|
|---|
| 34 | bool _use_adlib;
|
|---|
| 35 |
|
|---|
| 36 | byte _music_volume;
|
|---|
| 37 | byte _sfx_volume;
|
|---|
| 38 | byte _master_volume;
|
|---|
| 39 | bool _amiga;
|
|---|
| 40 |
|
|---|
| 41 | uint16 _talkSpeed;
|
|---|
| 42 | uint16 _debugMode;
|
|---|
| 43 | uint16 _noSubtitles;
|
|---|
| 44 | uint16 _bootParam;
|
|---|
| 45 | uint16 _soundCardType;
|
|---|
| 46 |
|
|---|
| 47 | char *_gameDataPath;
|
|---|
| 48 | int _gameTempo;
|
|---|
| 49 | int _midi_driver;
|
|---|
| 50 | char *_exe_name;
|
|---|
| 51 | const char *_gameText;
|
|---|
| 52 | uint32 _features;
|
|---|
| 53 |
|
|---|
| 54 | int _gfx_driver;
|
|---|
| 55 | int _gfx_mode;
|
|---|
| 56 |
|
|---|
| 57 | int _scummVersion;
|
|---|
| 58 | int _cdrom;
|
|---|
| 59 | int _save_slot;
|
|---|
| 60 |
|
|---|
| 61 | bool _saveconfig;
|
|---|
| 62 |
|
|---|
| 63 | int parseGraphicsMode(const char *s);
|
|---|
| 64 |
|
|---|
| 65 | bool parseMusicDriver(const char *s);
|
|---|
| 66 |
|
|---|
| 67 | void updateconfig();
|
|---|
| 68 |
|
|---|
| 69 | public:
|
|---|
| 70 | OSystem *createSystem();
|
|---|
| 71 | MidiDriver *createMidi();
|
|---|
| 72 | };
|
|---|