From d921d06d3965d2ee5ad072503d72d52564947b21 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 30 Sep 2002 00:55:47 +0000 Subject: played a bit with the launcher - it now is already somewhat usable svn-id: r5047 --- common/gameDetector.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'common/gameDetector.h') diff --git a/common/gameDetector.h b/common/gameDetector.h index 857b73a5ef..cdfb77d8e3 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -23,6 +23,8 @@ #ifndef GAMEDETECTOR_H #define GAMEDETECTOR_H +#include "common/str.h" + class OSystem; class MidiDriver; @@ -37,15 +39,20 @@ extern const VersionSettings version_settings[]; class GameDetector { + typedef ScummVM::String String; +protected: + bool detectGame(void); + public: - int detectMain(int argc, char **argv); + GameDetector(); + void parseCommandLine(int argc, char **argv); - bool detectGame(void); + int detectMain(); + void setGame(const String &name); const char *getGameName(void); bool _fullScreen; byte _gameId; - bool _simon; bool _use_adlib; @@ -55,14 +62,14 @@ public: uint16 _talkSpeed; uint16 _debugMode; - uint16 _noSubtitles; + bool _noSubtitles; uint16 _bootParam; uint16 _soundCardType; char *_gameDataPath; int _gameTempo; int _midi_driver; - char *_exe_name; + String _gameFileName; const char *_gameText; uint32 _features; -- cgit v1.2.3