501 Commits

Author SHA1 Message Date
Filippos Karapetis
b532a81b42 TINSEL: Add a WIP BE To LE SCN file conversion code (unfinished)
This is a cleaner approach to handle the Mac version of DW1 (demo
and full versions - refer to bug #3110936). This way, we can keep
the game engine as LE even with the Mac BE resource files.

Both the demo and the full version progress up to drawing the scene
graphics now and crash because of the currently unhandled bitmap
chunk.
2012-12-10 17:38:24 +02:00
Filippos Karapetis
c90d56355f TINSEL: Simplify the scene entrance handling code
This also reverts the rest of the BE resource handling code
2012-12-10 17:38:23 +02:00
Filippos Karapetis
c6cf4827d7 TINSEL: Revert most of the engine BE resource handling code
This was added in commit 3fdddd53b2b970aae3e967bebc0bff6e642a5111.
However, having handling for both BE and LE resource complicates
the engine code unnecessarily. Thus, a different approach will be
done.
2012-12-10 17:38:22 +02:00
Torbjörn Andersson
da971e38a5 TINSEL: Fix misleading comment
I missed these in my scroll wheel pull request, but better late
than never.
2012-12-03 20:00:08 +01:00
David Turner
2509b6475c Merge pull request #294 from eriktorbjorn/tinsel-scrollwheel
TINSEL: Add scrollwheel support to save/load and inventory
2012-12-03 04:05:14 -08:00
Filippos Karapetis
3fdddd53b2 TINSEL: Start handling the BE resources of the Mac versions of DW1
Refer to bug #3110936

This is still work in progress, but it doesn't affect the rest
of the LE versions of DW1. Both the Mac demo and the full
version still crash. The music in the Mac version is skipped for
now, as it isn't MIDI
2012-12-01 21:53:33 +02:00
Torbjörn Andersson
220fb66364 TINSEL: Add scrollwheel support to save/load and inventory 2012-11-24 11:06:42 +01:00
Torbjörn Andersson
0da424efb6 TINSEL: Fix typo in comment 2012-11-22 23:11:27 +01:00
Torbjörn Andersson
29afdabb6b TINSEL: Fix inventory scrollbar handle position
The scrollbar handle was one pixel too far to the left, and the
topmost position was off by one as well. I've verified this to the
best of my ability. I've compared it visually in DOSBox (which is
a bit tricky for Discworld 2, but I think it's right now), and
against the initial Tinsel v1 source code that was added to
ScummVM. I don't know what the initial Tinsel v2 source code
looked like, though.
2012-11-22 23:04:12 +01:00
Torbjörn Andersson
c16de405d7 TINSEL: Fix inventory scrolling
Adjusted NM_SLIDE_INSET and NM_SLIDE_THICKNESS to make the inventory
scrollbar work as it did before Tinsel v1 and v2 were combined. The
scrollbar worked before, but you had to click a bit to the left of
it to operate it. It's the only place in the code where these
constants are used, so it should not break anything else.
2012-11-22 22:12:51 +01:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Filippos Karapetis
e9730ca597 TINSEL: Fix bug #3541542 - "DW: PSX version dies when pressing ESC in intro"
DW1 PSX seems to have its own scene skipping code for scenes 2 and 3, thus
injecting our own causes it to hang. Scenes 2 and 3 can be skipped separately.
2012-09-03 04:32:31 +03:00
Paul Gilbert
2dee92a908 TINSEL: Fixed portability issue with earlier savegames 2012-08-06 20:03:56 +10:00
Filippos Karapetis
b17667cbcf TINSEL: Fix bug #3541745 - "DW: PSX version has a too small Re-Start window" 2012-07-15 22:19:10 +03:00
Filippos Karapetis
1fffbe40ce TINSEL: Change SetMidiVolume() so that it doesn't start/stop music tracks
Previously, SetMidiVolume() would stop the currently playing track when
the MIDI volume was set to 0. Now, the music track always plays, even
when the volume is set to 0. This fixes bug #3541533 - "DW: Silencing
music volume stops music" and resolves two FIXME comments
2012-07-15 17:37:55 +03:00
Filippos Karapetis
4c3b4835aa TINSEL: Fix bug #3459999 - "TINSEL: DW Crash in Subtitle Menu" 2012-07-15 16:54:59 +03:00
Filippos Karapetis
a5af61005c TINSEL: Remove the GF_BIG_ENDIAN flag 2012-07-15 15:00:00 +03:00
Filippos Karapetis
d4a354c17f TINSEL: Remove the GF_CD and GF_FLOPPY flags 2012-07-15 14:55:06 +03:00
Filippos Karapetis
bd09eb0655 TINSEL: Reorder the detection entries to split the DW1 and DW2 entries 2012-07-15 14:41:27 +03:00
Filippos Karapetis
89aa6573fe TINSEL: Remove the GF_DEMO flag 2012-07-15 14:38:26 +03:00
Paul Gilbert
212551fe4e TINSEL: Added script workaround for #3543624 - DW1 PSX demo idle animation 2012-07-15 20:58:14 +10:00
Filippos Karapetis
e10b59b624 TINSEL: Cleanup 2012-07-14 05:07:16 +03:00
Paul Gilbert
ee818634ab TINSEL: Added MD5 detection entries for Discworld 1 Polish translation 2012-07-11 21:41:52 +10:00
Filippos Karapetis
b8354e27ae TINSEL: Fix bug #3541230 - "DW: PSX version locks up after using the book"
Removed the superfluous MIDI offset storing code. Now, the MIDI buffer is
re-read when the music loops. This removes a static variable and also
fixes another bug in the SEQ decoder.
2012-07-09 01:33:40 +03:00
Johannes Schickel
e1d45a7b89 TINSEL: Remove unused member _scheduler in TinselEngine.
This is a leftover from before the move of the coroutine code.
2012-06-07 18:19:58 +02:00
Paul Gilbert
68b0412ce9 TINSEL: Fix compiler warning 2012-05-17 20:46:13 +10:00
Paul Gilbert
41692ef48a TINSEL: Refactored Tinsel engine to use the Common coroutine scheduler 2012-05-17 20:42:23 +10:00
Paul Gilbert
c6810c174e COMMON: Moved the Tinsel Coroutine code into it's own Common class 2012-05-17 20:39:55 +10:00
Matthew Hoops
76dfbbede4 TINSEL: Add basic PSX SEQ playback support
Instrument bank support is not implemented yet
2012-05-03 18:19:54 -04:00
Matthew Hoops
b93b17e7f4 TINSEL: Capitalize 'demo' 2012-05-03 17:59:19 -04:00
Alyssa Milburn
be35baddc7 TINSEL: Rename globals to add g_ prefix. 2012-02-22 23:14:29 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Paul Gilbert
5ce622c1b6 TINSEL: Added extra fields to the savegame header for SCN/GRA usage and language
New savegames that are created will no longer appear in the savegame list for different data versions or languages.
2012-02-11 21:45:16 +11:00
Johannes Schickel
adb5342247 TINSEL: Take advantage of KeyState::hasFlags. 2011-12-30 01:53:01 +01:00
D G Turner
111f580676 TINSEL: Replace usage of 'goto'. 2011-12-08 14:27:28 +00:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Johannes Schickel
61795739f8 COMMON: Rename Common::set_to to Common::fill.
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Alyssa Milburn
e21764be76 TINSEL: Don't leak _curChunk on exit. 2011-11-14 22:54:34 +01:00
Strangerke
9684a1079d LAUNCHER: Add GUIO_NOASPECT to tinsel 2011-10-24 01:27:47 +02:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Paul Gilbert
b7ab968dc7 TINSEL: Cleaner fix for bug #2893946 - Psychiatrist savegame problem 2011-10-20 20:36:37 +11:00
Paul Gilbert
ca7bc71846 TINSEL: Bugfix for restoring DW1 savegames with a saved scene
This happens, for example, when restoring a savegame of the dragon summoning book close-up. After restoring, you couldn't leave the close up.
2011-10-18 19:47:45 +11:00
Paul Gilbert
01616afecc TINSEL: Revert of prior commits for #2893946 2011-10-16 16:14:02 +11:00
Paul Gilbert
6811a3daff TINSEL: Alter previous DW1 bugfix so that DW2 still works properly 2011-10-14 20:38:00 +11:00
Torbjörn Andersson
744f8507d7 TINSEL: Fix #3422433 ("DW2: US version uses UK graphics")
According to dreammaster it should be enough to add cases for the
US version in these two functions, but unfortunately he can't test
it himself. I guess I should try to find the time to play through
the game, but right now there's an annoying DW2 regression from
commit d5690e0. See GitHub commit note for details.
2011-10-13 23:48:09 +02:00
Paul Gilbert
d5690e09b3 TINSEL: Bugfix for #2893946 - DW1 psychiatrist scene isn't playing 2011-10-04 20:47:01 +11:00
Johannes Schickel
b8dfd3366b TINSEL: Made some static data const. 2011-09-08 20:15:07 +02:00
Matthew Hoops
adb69a5a39 AUDIO: Rename Vag to XA
Vag is really an XA container, and one that we do not have a decoder for (nor need)
2011-08-24 09:54:19 -04:00
Filippos Karapetis
21b2a7064f Merge pull request #63 from tsoliman/detection-tables
Some missing ADGF_CD and ADGF_UNSTABLE flags
2011-08-13 12:24:30 -07:00