diff -r -u scummvm-orig/Makefile.common scummvm-cvs/Makefile.common
old
|
new
|
|
96 | 96 | MODULES += gob |
97 | 97 | endif |
98 | 98 | |
| 99 | ifdef DISABLE_LURE |
| 100 | DEFINES += -DDISABLE_LURE |
| 101 | else |
| 102 | MODULES += lure |
| 103 | endif |
| 104 | |
99 | 105 | # After the game specific modules follow the shared modules |
100 | 106 | MODULES += \ |
101 | 107 | gui \ |
diff -r -u scummvm-orig/base/plugins.cpp scummvm-cvs/base/plugins.cpp
old
|
new
|
|
328 | 328 | #ifndef DISABLE_GOB |
329 | 329 | LINK_PLUGIN(GOB) |
330 | 330 | #endif |
| 331 | #ifndef DISABLE_LURE |
| 332 | LINK_PLUGIN(LURE) |
| 333 | #endif |
331 | 334 | |
332 | 335 | #endif |
333 | 336 | } |
diff -r -u scummvm-orig/configure scummvm-cvs/configure
old
|
new
|
|
56 | 56 | _build_saga=yes |
57 | 57 | _build_gob=yes |
58 | 58 | _build_kyra=yes |
| 59 | _build_lure=yes |
59 | 60 | _need_memalign=no |
60 | 61 | _build_plugins=no |
61 | 62 | _nasm=auto |
… |
… |
|
301 | 302 | --disable-saga don't build the SAGA engine |
302 | 303 | --disable-gob don't build the Gobli*ns engine |
303 | 304 | --disable-kyra don't build the Legend of Kyrandia engine |
| 305 | --disable-lure don't build the Lure of the Temptress engine |
304 | 306 | --enable-plugins build engines as loadable modules instead of |
305 | 307 | static linking them |
306 | 308 | --disable-mt32emu don't enable the integrated MT-32 emulator |
… |
… |
|
366 | 368 | --disable-saga) _build_saga=no ;; |
367 | 369 | --disable-gob) _build_gob=no ;; |
368 | 370 | --disable-kyra) _build_kyra=no ;; |
| 371 | --disable-lure) _build_lure=no ;; |
369 | 372 | --disable-hq-scalers) _build_hq_scalers=no ;; |
370 | 373 | --disable-scalers) _build_scalers=no ;; |
371 | 374 | --enable-alsa) _alsa=yes ;; |
… |
… |
|
677 | 680 | _mak_gob='# DISABLE_GOB = 1' |
678 | 681 | fi |
679 | 682 | |
| 683 | if test "$_build_lure" = no ; then |
| 684 | _mak_lure='DISABLE_LURE = 1' |
| 685 | else |
| 686 | _mak_lure='# DISABLE_LURE = 1' |
| 687 | fi |
| 688 | |
680 | 689 | if test "$_build_hq_scalers" = no ; then |
681 | 690 | _mak_hq_scalers='DISABLE_HQ_SCALERS = 1' |
682 | 691 | else |
… |
… |
|
1242 | 1251 | if test "$_build_gob" = yes ; then |
1243 | 1252 | echo " Gobli*ns" |
1244 | 1253 | fi |
| 1254 | if test "$_build_lure" = yes ; then |
| 1255 | echo " Lure of the Temptress" |
| 1256 | fi |
1245 | 1257 | |
1246 | 1258 | echo |
1247 | 1259 | |
… |
… |
|
1379 | 1391 | $_mak_kyra |
1380 | 1392 | $_mak_saga |
1381 | 1393 | $_mak_gob |
| 1394 | $_mak_lure |
1382 | 1395 | $_mak_mt32emu |
1383 | 1396 | |
1384 | 1397 | $_mak_hq_scalers |
diff -r -u scummvm-orig/lure/disk.cpp scummvm-cvs/lure/disk.cpp
old
|
new
|
|
29 | 29 | uint8 Disk::indexOf(uint16 id, bool suppressError) { |
30 | 30 | // Make sure the correct file is open - the upper two bits of the Id give the file number. Note |
31 | 31 | // that an extra check is done for the upper byte of the Id being 0x3f, which is the Id range |
32 | | // I use for disk0.vga resources, which are resources extracted from the lure.exe executable |
| 32 | // I use for lure.dat resources, which are resources extracted from the lure.exe executable |
33 | 33 | uint8 entryFileNum = ((id>>8) == 0x3f) ? 0 : ((id >> 14) & 3) + 1; |
34 | 34 | openFile(entryFileNum); |
35 | 35 | |
… |
… |
|
85 | 85 | uint32 headerSize = sizeof(FileEntry) * NUM_ENTRIES_IN_HEADER; |
86 | 86 | if (_fileHandle->read(_entries, headerSize) != headerSize) |
87 | 87 | error("The file %s%s had a corrupted header", _gameDataPath.c_str(), sFilename); |
| 88 | |
| 89 | #ifdef SCUMM_BIG_ENDIAN |
| 90 | // Process the read in header list to convert to big endian |
| 91 | for (int i = 0; i < NUM_ENTRIES_IN_HEADER; ++i) { |
| 92 | _entries[i].id = FROM_LE_16(_entries[i].id); |
| 93 | _entries[i].size = FROM_LE_16(_entries[i].size); |
| 94 | _entries[i].offset = FROM_LE_16(_entries[i].offset); |
| 95 | } |
| 96 | #endif |
88 | 97 | } |
89 | 98 | |
90 | 99 | uint32 Disk::getEntrySize(uint16 id) { |