aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/res_struct.h')
-rw-r--r--engines/lure/res_struct.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h
index b9a9b363bc..d0851d98c7 100644
--- a/engines/lure/res_struct.h
+++ b/engines/lure/res_struct.h
@@ -39,6 +39,18 @@ using namespace Common;
/* */
/*-------------------------------------------------------------------------*/
+/* HACK/FIXME: three structs are misaligned (at least on 4-byte aligned system,
+ should have more troubles with coming 64bit systems), GET_NEXT let us read
+ properly sequence of struct in lure.dat hardcoding size of struct.
+*/
+
+#define GET_NEXT(v, sc) v = (sc *)(((byte *)v) + kSizeOf##sc)
+
+#define kSizeOfRoomExitJoinResource 13
+#define kSizeOfHotspotResource 62
+#define kSizeOfHotspotActionResource 3
+
+
#include "common/pack-start.h" // START STRUCT PACKING
struct VersionStructure {