aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/hopkins.h
diff options
context:
space:
mode:
authorStrangerke2013-01-30 08:31:32 +0100
committerStrangerke2013-01-30 08:31:32 +0100
commit15de07ff74e610510f724cca9c6d155ef376d68a (patch)
treebd4cd62fa68ec590666fbe09b54913c2ac0609ca /engines/hopkins/hopkins.h
parente68e3c91ebb089cf31f305f18199bb3a9ccca612 (diff)
downloadscummvm-rg350-15de07ff74e610510f724cca9c6d155ef376d68a.tar.gz
scummvm-rg350-15de07ff74e610510f724cca9c6d155ef376d68a.tar.bz2
scummvm-rg350-15de07ff74e610510f724cca9c6d155ef376d68a.zip
HOPKINS: Introduce MKTAG24. Make use of MKTAG16 and MKTAG24
Diffstat (limited to 'engines/hopkins/hopkins.h')
-rw-r--r--engines/hopkins/hopkins.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hopkins/hopkins.h b/engines/hopkins/hopkins.h
index 4ab356be9a..04b3558963 100644
--- a/engines/hopkins/hopkins.h
+++ b/engines/hopkins/hopkins.h
@@ -75,6 +75,12 @@ enum {
#define MAX_LINES 400
+/**
+ * A wrapper macro used around three character constants, like 'END', to
+ * ensure portability. Typical usage: MKTAG24('E','N','D').
+ */
+#define MKTAG24(a0,a1,a2) ((uint32)((a2) | (a1) << 8 | ((a0) << 16)))
+
struct HopkinsGameDescription;
class HopkinsEngine : public Engine {