aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.h
diff options
context:
space:
mode:
authorMax Horn2002-12-13 23:29:18 +0000
committerMax Horn2002-12-13 23:29:18 +0000
commite01ecb3a7fbfb8b1f465117472eb7c23d8403b7e (patch)
treec83e01a232a2796040aa1c356ad2505488d8f197 /common/gameDetector.h
parente1b29ce16ce1e58d2dc8abf81ef410b201ffdf9e (diff)
downloadscummvm-rg350-e01ecb3a7fbfb8b1f465117472eb7c23d8403b7e.tar.gz
scummvm-rg350-e01ecb3a7fbfb8b1f465117472eb7c23d8403b7e.tar.bz2
scummvm-rg350-e01ecb3a7fbfb8b1f465117472eb7c23d8403b7e.zip
added an API to query the list of available music drivers; cleanup
svn-id: r5942
Diffstat (limited to 'common/gameDetector.h')
-rw-r--r--common/gameDetector.h40
1 files changed, 29 insertions, 11 deletions
diff --git a/common/gameDetector.h b/common/gameDetector.h
index fb271a4685..fe8c62eb50 100644
--- a/common/gameDetector.h
+++ b/common/gameDetector.h
@@ -88,18 +88,33 @@ enum GameFeatures {
struct VersionSettings {
const char *filename;
const char *gamename;
- byte id, major, middle, minor;
- uint32 features;
+ const byte id, major, middle, minor;
+ const uint32 features;
const char *detectname;
};
+struct MusicDrivers {
+ const char *name;
+ const char *description;
+ const int id;
+ bool available;
+};
+
+struct GraphicsModes {
+ const char *name;
+ const char *description;
+ int id;
+};
+
extern const VersionSettings version_settings[];
class GameDetector {
typedef ScummVM::String String;
-protected:
- bool detectGame(void);
+
+public:
+ static const MusicDrivers *getMusicDrivers();
+ static bool isMusicDriverAvailable(int drv);
public:
GameDetector();
@@ -108,7 +123,7 @@ public:
int detectMain();
void setGame(const String &name);
const String& getGameName(void);
-
+
bool _fullScreen;
byte _gameId;
@@ -141,16 +156,19 @@ public:
bool _saveconfig;
- int parseGraphicsMode(const char *s);
+public:
+ OSystem *createSystem();
+ MidiDriver *createMidi();
+
+ void updateconfig();
+
+protected:
+ bool detectGame(void);
+ int parseGraphicsMode(const char *s);
bool parseMusicDriver(const char *s);
- void updateconfig();
void list_games();
-
-public:
- OSystem *createSystem();
- MidiDriver *createMidi();
};
#endif