diff options
author | Max Horn | 2006-04-15 21:20:16 +0000 |
---|---|---|
committer | Max Horn | 2006-04-15 21:20:16 +0000 |
commit | 18975a298d0868461699820b9e59ef8fd90cebed (patch) | |
tree | 93a924ef8700d8bcf107a2e948938d0b152bf5f2 /base/gameDetector.h | |
parent | 68cb7f52c8dd64ccfe8f28e847b530c8835175c3 (diff) | |
download | scummvm-rg350-18975a298d0868461699820b9e59ef8fd90cebed.tar.gz scummvm-rg350-18975a298d0868461699820b9e59ef8fd90cebed.tar.bz2 scummvm-rg350-18975a298d0868461699820b9e59ef8fd90cebed.zip |
Moved (Plain)GameDescriptor from base/gameDetector.h to the new base/game.h header file
svn-id: r21917
Diffstat (limited to 'base/gameDetector.h')
-rw-r--r-- | base/gameDetector.h | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/base/gameDetector.h b/base/gameDetector.h index 1c474a8946..ebb642b57d 100644 --- a/base/gameDetector.h +++ b/base/gameDetector.h @@ -21,42 +21,15 @@ * */ -#ifndef GAMEDETECTOR_H -#define GAMEDETECTOR_H +#ifndef BASE_GAMEDETECTOR_H +#define BASE_GAMEDETECTOR_H #include "common/str.h" #include "common/config-manager.h" +#include "base/game.h" -class OSystem; class Plugin; -struct PlainGameDescriptor { - const char *gameid; - const char *description; // TODO: Rename this to "title" or so -}; - -struct GameDescriptor { - Common::String gameid; - Common::String description; // TODO: Rename this to "title" or so - - GameDescriptor() {} - GameDescriptor(Common::String g, Common::String d) : - gameid(g), description(d) {} - - /** - * This template constructor allows to easily convert structs that mimic GameDescriptor - * to a GameDescriptor instance. - * - * Normally, one would just subclass GameDescriptor to get this effect much easier. - * However, subclassing a struct turns it into a non-POD type. One of the - * consequences is that you can't have inline intialized arrays of that type. - * But we heavily rely on those, hence we can't subclass GameDescriptor... - */ - template <class T> - GameDescriptor(const T &g) : - gameid(g.gameid), description(g.description) {} -}; - class GameDetector { typedef Common::String String; |