aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2012-07-15 15:00:00 +0300
committerFilippos Karapetis2012-07-15 15:00:00 +0300
commita5af61005c4a2f3daacc40c81da06ff344c9bbd3 (patch)
tree98eff8be5b7f261dba5ec849e5b3b23c06c12916
parentd4a354c17f811faa916bf548a11a88cb51c3b7b2 (diff)
downloadscummvm-rg350-a5af61005c4a2f3daacc40c81da06ff344c9bbd3.tar.gz
scummvm-rg350-a5af61005c4a2f3daacc40c81da06ff344c9bbd3.tar.bz2
scummvm-rg350-a5af61005c4a2f3daacc40c81da06ff344c9bbd3.zip
TINSEL: Remove the GF_BIG_ENDIAN flag
-rw-r--r--engines/tinsel/detection_tables.h4
-rw-r--r--engines/tinsel/drives.cpp2
-rw-r--r--engines/tinsel/tinsel.h8
3 files changed, 6 insertions, 8 deletions
diff --git a/engines/tinsel/detection_tables.h b/engines/tinsel/detection_tables.h
index 5f305f06e4..631c2dce14 100644
--- a/engines/tinsel/detection_tables.h
+++ b/engines/tinsel/detection_tables.h
@@ -86,7 +86,7 @@ static const TinselGameDescription gameDescriptions[] = {
},
GID_DW1,
0,
- GF_SCNFILES | GF_BIG_ENDIAN,
+ GF_SCNFILES,
TINSEL_V1,
},
#endif
@@ -491,7 +491,7 @@ static const TinselGameDescription gameDescriptions[] = {
},
GID_DW1,
0,
- GF_SCNFILES | GF_ENHANCED_AUDIO_SUPPORT | GF_BIG_ENDIAN,
+ GF_SCNFILES | GF_ENHANCED_AUDIO_SUPPORT,
TINSEL_V1,
},
diff --git a/engines/tinsel/drives.cpp b/engines/tinsel/drives.cpp
index 5c4b939e4e..3ecef83753 100644
--- a/engines/tinsel/drives.cpp
+++ b/engines/tinsel/drives.cpp
@@ -149,7 +149,7 @@ bool GotoCD() {
bool TinselFile::_warningShown = false;
-TinselFile::TinselFile() : ReadStreamEndian((_vm->getFeatures() & GF_BIG_ENDIAN) != 0) {
+TinselFile::TinselFile() : ReadStreamEndian(TinselV1Mac) {
_stream = NULL;
}
diff --git a/engines/tinsel/tinsel.h b/engines/tinsel/tinsel.h
index 38c17812b4..123249125e 100644
--- a/engines/tinsel/tinsel.h
+++ b/engines/tinsel/tinsel.h
@@ -72,9 +72,7 @@ enum TinselGameFeatures {
// None of these defined -> 1 language, in ENGLISH.TXT
GF_USE_3FLAGS = 1 << 3, // French, German, Spanish
GF_USE_4FLAGS = 1 << 4, // French, German, Spanish, Italian
- GF_USE_5FLAGS = 1 << 5, // All 5 flags
-
- GF_BIG_ENDIAN = 1 << 6
+ GF_USE_5FLAGS = 1 << 5 // All 5 flags
};
/**
@@ -135,8 +133,8 @@ typedef bool (*KEYFPTR)(const Common::KeyState &);
#define TinselV1PSX (TinselVersion == TINSEL_V1 && _vm->getPlatform() == Common::kPlatformPSX)
#define TinselV1Mac (TinselVersion == TINSEL_V1 && _vm->getPlatform() == Common::kPlatformMacintosh)
-#define READ_16(v) ((_vm->getFeatures() & GF_BIG_ENDIAN) ? READ_BE_UINT16(v) : READ_LE_UINT16(v))
-#define READ_32(v) ((_vm->getFeatures() & GF_BIG_ENDIAN) ? READ_BE_UINT32(v) : READ_LE_UINT32(v))
+#define READ_16(v) (TinselV1Mac ? READ_BE_UINT16(v) : READ_LE_UINT16(v))
+#define READ_32(v) (TinselV1Mac ? READ_BE_UINT32(v) : READ_LE_UINT32(v))
// Global reference to the TinselEngine object
extern TinselEngine *_vm;