diff options
author | Max Horn | 2006-03-08 12:09:07 +0000 |
---|---|---|
committer | Max Horn | 2006-03-08 12:09:07 +0000 |
commit | 4c1e4c6987ed6cd511c932195e845a1ee15022aa (patch) | |
tree | 2f62b0084869810dbe96dc4689c6bf5c535f6b3f | |
parent | 9b6b816a010f809e8396657566d834523771933e (diff) | |
download | scummvm-rg350-4c1e4c6987ed6cd511c932195e845a1ee15022aa.tar.gz scummvm-rg350-4c1e4c6987ed6cd511c932195e845a1ee15022aa.tar.bz2 scummvm-rg350-4c1e4c6987ed6cd511c932195e845a1ee15022aa.zip |
Added alternate DetectedGame constructor, to make it possible to add games to a detection list w/o first creating a temporary GameSettings struct
svn-id: r21144
-rw-r--r-- | base/plugins.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/plugins.h b/base/plugins.h index 2d778e2a51..179f2cf991 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -47,6 +47,10 @@ struct DetectedGame { Common::Language language; Common::Platform platform; DetectedGame() : language(Common::UNK_LANG), platform(Common::kPlatformUnknown) {} + DetectedGame(const char *g, const char *d, + Common::Language l = Common::UNK_LANG, + Common::Platform p = Common::kPlatformUnknown) + : gameid(g), description(d), language(l), platform(p) {} DetectedGame(const GameSettings &game, Common::Language l = Common::UNK_LANG, Common::Platform p = Common::kPlatformUnknown) |