aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-11-12 03:23:29 +0000
committerMax Horn2006-11-12 03:23:29 +0000
commit1f26cb89652a5804ccace15587426ca2b9e1387d (patch)
tree105cfba6c96569f58e79a1cf9b1fedc72c76bf8a /base
parentc7b2f4d3325942330188f04d23d4a60797c7d2c2 (diff)
downloadscummvm-rg350-1f26cb89652a5804ccace15587426ca2b9e1387d.tar.gz
scummvm-rg350-1f26cb89652a5804ccace15587426ca2b9e1387d.tar.bz2
scummvm-rg350-1f26cb89652a5804ccace15587426ca2b9e1387d.zip
Reworked code in the advanced game detector (getting rid of much of the evil #define hell it consisted of previously)
svn-id: r24685
Diffstat (limited to 'base')
-rw-r--r--base/game.h5
-rw-r--r--base/plugins.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/base/game.h b/base/game.h
index cdafb2f2ca..cb95f1730e 100644
--- a/base/game.h
+++ b/base/game.h
@@ -25,6 +25,7 @@
#define BASE_GAME_H
#include "common/str.h"
+#include "common/array.h"
struct PlainGameDescriptor {
const char *gameid;
@@ -53,6 +54,10 @@ struct GameDescriptor {
gameid(g.gameid), description(g.description) {}
};
+/** List of games. */
+typedef Common::Array<GameDescriptor> GameList;
+
+
class Plugin;
diff --git a/base/plugins.h b/base/plugins.h
index e5a6882e39..9b14f52d57 100644
--- a/base/plugins.h
+++ b/base/plugins.h
@@ -35,9 +35,6 @@ class Engine;
class FSList;
class OSystem;
-/** List of games. */
-typedef Common::Array<GameDescriptor> GameList;
-
/**
* A detected game. Carries the GameDescriptor, but also (optionally)
* information about the language and platform of the detected game.