aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-02-13 01:28:18 +0000
committerMax Horn2007-02-13 01:28:18 +0000
commit55adc889e7f639394e1830ffdafffe38279db17c (patch)
tree1ce296d7d64e9da116401440770bb552745326bb /common
parent9e30a6e990d1556e0d051e965e4a36263a8c7f4a (diff)
downloadscummvm-rg350-55adc889e7f639394e1830ffdafffe38279db17c.tar.gz
scummvm-rg350-55adc889e7f639394e1830ffdafffe38279db17c.tar.bz2
scummvm-rg350-55adc889e7f639394e1830ffdafffe38279db17c.zip
(re)added flags field to ADGameDescription, with currently only one value (GF_DEMO) -- this flag value is not yet used by anything (also, GF_DEMO hasn't been correctly set for AGI games yet)
svn-id: r25539
Diffstat (limited to 'common')
-rw-r--r--common/advancedDetector.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/advancedDetector.h b/common/advancedDetector.h
index 93650f7f72..30481181c5 100644
--- a/common/advancedDetector.h
+++ b/common/advancedDetector.h
@@ -37,14 +37,29 @@ struct ADGameFileDescription {
int32 fileSize; // Optional. Set to -1 to ignore.
};
+enum ADGameFlags {
+ GF_NO_FLAGS = 0,
+ GF_DEMO = 1 << 31
+};
+
struct ADGameDescription {
const char *gameid;
const char *extra;
ADGameFileDescription filesDescriptions[14];
Language language;
Platform platform;
+
+ /**
+ * A bitmask of extra flags. The top 8 bits are reserved for generic flags
+ * defined in the ADGameFlags. This leaves 24 flags to be used by client
+ * code.
+ */
+ uint32 flags;
};
+#define AD_TABLE_END_MARKER \
+ { NULL, NULL, { { NULL, 0, NULL, 0 } }, Common::UNK_LANG, Common::kPlatformUnknown, Common::GF_NO_FLAGS }
+
struct ADObsoleteGameID {
const char *from;
const char *to;