From 36fd7ec44574a4b1712fff1eb0ec43a76aab8f1c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 12 Oct 2003 18:40:12 +0000 Subject: some renaming for more consistent terminology (although we might want to reevaluate this): 'target' is what is in your config file; 'game' is what a frontend provide. E.g. the scumm frontend provides the game 'monkeyvga', and my config file has target 'monkeyvga-ger' configured to use that game svn-id: r10766 --- base/gameDetector.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'base/gameDetector.h') diff --git a/base/gameDetector.h b/base/gameDetector.h index 7f96ecf4e4..a236d0b479 100644 --- a/base/gameDetector.h +++ b/base/gameDetector.h @@ -84,8 +84,8 @@ enum MidiDriverType { MDT_PREFER_NATIVE = 16 }; -struct TargetSettings { - const char *targetName; +struct GameSettings { + const char *gameName; const char *description; byte id, version; int midi; // MidiDriverType values @@ -102,8 +102,8 @@ public: void parseCommandLine(int argc, char **argv); bool detectMain(); - String _gameFileName; - TargetSettings _game; + String _targetName; + GameSettings _game; const Plugin *_plugin; bool _debugMode; @@ -120,14 +120,14 @@ public: MidiDriver *createMidi(); int getMidiDriverType(); // FIXME: Try to get rid of this, only Sky frontend uses it - void setGame(const String &name); + void setTarget(const String &name); static int parseGraphicsMode(const String &s); // Used in main() static int parseMusicDriver(const String &s); static Language parseLanguage(const String &s); static Platform parsePlatform(const String &s); - const TargetSettings *findTarget(const String &targetName, const Plugin **plugin = NULL) const; + const GameSettings *findGame(const String &gameName, const Plugin **plugin = NULL) const; protected: bool detectGame(void); -- cgit v1.2.3