TINSEL: Improve support for DW mac demo (see bug #3110936)
svn-id: r54811
This commit is contained in:
parent
20de55129f
commit
9a0c20a45f
3 changed files with 4 additions and 7 deletions
|
@ -78,12 +78,13 @@ static const TinselGameDescription gameDescriptions[] = {
|
||||||
TINSEL_V1,
|
TINSEL_V1,
|
||||||
},
|
},
|
||||||
#if 0
|
#if 0
|
||||||
{ // Macintosh CD Demo V1 version, with *.scn files
|
{ // Macintosh CD Demo V1 version, with *.scn files, see tracker #3110936
|
||||||
{
|
{
|
||||||
"dw",
|
"dw",
|
||||||
"CD Demo",
|
"CD Demo",
|
||||||
{
|
{
|
||||||
{"dw.scn", 0, "ae291aa4ed7f7caacbfb711b6ff2c8bd", 1286264},
|
{"dw.scn", 0, "cfc40a8d5d476a1c9d3abf826fa46f8c", 1272686},
|
||||||
|
{"english.txt", 0, "c69b5d2067e9114a63569a61e9a82faa", 228878},
|
||||||
{"english.smp", 0, NULL, -1},
|
{"english.smp", 0, NULL, -1},
|
||||||
},
|
},
|
||||||
Common::EN_ANY,
|
Common::EN_ANY,
|
||||||
|
@ -93,7 +94,7 @@ static const TinselGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
GID_DW1,
|
GID_DW1,
|
||||||
0,
|
0,
|
||||||
GF_CD | GF_BIG_ENDIAN,
|
GF_CD | GF_SCNFILES | GF_BIG_ENDIAN,
|
||||||
TINSEL_V1,
|
TINSEL_V1,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -107,8 +107,6 @@ void SetupHandleTable() {
|
||||||
if (f.open(TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME)) {
|
if (f.open(TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME)) {
|
||||||
// get size of index file
|
// get size of index file
|
||||||
len = f.size();
|
len = f.size();
|
||||||
if (TinselV1Mac)
|
|
||||||
len -= 2; // Macintosh version has two redundant ending bytes
|
|
||||||
|
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
if ((len % RECORD_SIZE) != 0) {
|
if ((len % RECORD_SIZE) != 0) {
|
||||||
|
|
|
@ -46,8 +46,6 @@ byte *FindChunk(SCNHANDLE handle, uint32 chunk) {
|
||||||
byte *bptr = LockMem(handle);
|
byte *bptr = LockMem(handle);
|
||||||
uint32 *lptr = (uint32 *)bptr;
|
uint32 *lptr = (uint32 *)bptr;
|
||||||
uint32 add;
|
uint32 add;
|
||||||
bool bigEndian = (_vm->getFeatures() & GF_BIG_ENDIAN) != 0;
|
|
||||||
assert(!bigEndian); // Big endian data not yet supported
|
|
||||||
|
|
||||||
// Initial adjustmnet for Tinsel 1 chunk types
|
// Initial adjustmnet for Tinsel 1 chunk types
|
||||||
if ((TinselVersion != TINSEL_V2) && (chunk >= CHUNK_SCENE) &&
|
if ((TinselVersion != TINSEL_V2) && (chunk >= CHUNK_SCENE) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue