26382 Commits

Author SHA1 Message Date
D G Turner
dad5258c79 TEENAGENT: Update refactoring notes.
These notes were accidently committed, but may be relevant, so will
retain this (rather than filtering branch).
2012-07-16 12:25:28 +01:00
D G Turner
e73dffa57c Merge branch 'master' into teenagentRefactor
Conflicts:
	engines/teenagent/resources.cpp
2012-07-16 01:24:40 +01: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
a97f4466fd TEENAGENT: Add translatable strings in resources.cpp 2012-07-15 03:07:01 +03:00
Filippos Karapetis
f4e395b4a1 TEENAGENT: Show a verbose warning when a compressed data file is used and zlib hasn't been included in the executable 2012-07-15 02:47:06 +03:00
Filippos Karapetis
c54f95ee86 TEENAGENT: Readd the zlib code, to maintain backwards compatibility 2012-07-15 02:27:51 +03:00
Filippos Karapetis
13a5e5812a TEENAGENT: Unpack teenagent.dat and remove the engine's zlib dependency
This addresses bug #3539822 - "TEENAGENT: Not working without zlib"
2012-07-15 02:14:37 +03:00
Filippos Karapetis
2c5cf9f860 SCI: Properly detect the Polish version of KQ5
Thanks to jacek909 for the extra MD5 checksums of the Polish version.
This fixes bugs #2725722 (Polish version checksums) and #3536863
(SCI: KQ5 Floppy English detected as Polish)
2012-07-15 01:42:47 +03:00
Littleboy
4cee0836c9 LASTEXPRESS: Replace CALLBACK_ACTION macro by member function 2012-07-14 14:34:42 -04:00
Littleboy
13c00d4048 LASTEXPRESS: Fix sound in animated sequences 2012-07-14 14:26:22 -04:00
Littleboy
0635d99ec7 LASTEXPRESS: Cleanup
- Add missing initializer/destructors
 - Add some const modifiers
 - Remove some unneeded casts
 - Use enumeration values in switch constructs
2012-07-14 14:26:00 -04:00
Littleboy
732a2c80dd LASTEXPRESS: Remove duplicated include statements 2012-07-14 13:23:54 -04:00
Filippos Karapetis
e10b59b624 TINSEL: Cleanup 2012-07-14 05:07:16 +03:00
D G Turner
9669b73ca8 TEENAGENT: Add symbols for savestate region. 2012-07-13 10:14:38 +01:00
D G Turner
85cf79a57f TEENAGENT: Minor formatting fixes for consistency.
This is mainly ensuring that all hexadecimal usages i.e. addresses are
 in lowercase for consistency, but also includes some minor comment
formatting correction.
2012-07-12 21:03:47 +01:00
D G Turner
8dcc426911 TEENAGENT: Replace most of early return calls in processCallbacks().
This results in a cleaner and simpler function, prior to any further
refactoring.
2012-07-12 00:01:26 +01:00
D G Turner
53a7e522ea TEENAGENT: Start replacing hardcoded addresses with symbols. 2012-07-11 19:28:36 +01:00
D G Turner
923c05faf5 TEENAGENT: Migrate Dialog functions to using dialog numbers.
This removes the hardcoded address/offsets from the callback functions.
2012-07-11 18:21:46 +01:00
D G Turner
cffff61081 TEENAGENT: Replace static Dialog functions with normal class.
This avoids the need to pass the engine pointer, vm to every function
and removes the need for the functions to be static.
2012-07-11 14:34:09 +01:00
D G Turner
c05dfddec3 TEENAGENT: Add Resource code to precompute Dialog Offsets.
This should allow the removal of most/all of the hardcoded eseg
addresses in the Dialog calls.
2012-07-11 13:03:32 +01:00
Paul Gilbert
ee818634ab TINSEL: Added MD5 detection entries for Discworld 1 Polish translation 2012-07-11 21:41:52 +10:00
Paul Gilbert
108e709b9b TSAGE: Fix for bug #3541354 - Nico shooting player after being tied up 2012-07-11 21:20:52 +10:00
Alyssa Milburn
bed2eb20cd MOHAWK: Restart anims when LiveText plays them. 2012-07-09 09:11:31 +02: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
Filippos Karapetis
078c09c13e SCI: Update comments in kGetAngleWorker() 2012-07-09 01:33:38 +03:00
Filippos Karapetis
b2fb2730d6 SCI: Also set the filename of the videoState struct when playing AVIs 2012-07-08 22:01:15 +03:00
Filippos Karapetis
262c7a1fb7 SCI: Fix a typo and add some comments to kGetAngleWorker() 2012-07-08 22:01:13 +03:00
Filippos Karapetis
50dc5009c8 SCI: Ignore another leftover script from KQ7 in the debugger 2012-07-08 22:01:11 +03:00
Alyssa Milburn
ff1828fc71 MOHAWK: Play anims for LiveText items *after* the speech.
Another attempt at fixing bug #3541294.
2012-07-08 20:26:02 +02:00
Filippos Karapetis
3b69816a7d SCI: Add another English floppy version of KQ5 (bug #3536863)
According to this bug report, there exists another English version
with the same file checksums as the vanilla English version, patched to
Polish. We need a better way of distinguishing the two versions. Until
we do, this is a duplicate entry of the Polish floppy version
2012-07-08 16:18:26 +03:00
Filippos Karapetis
10b3fdf247 SCI: Show information for correct file naming in the QFG4 import room
This information is shown in previous QFG versions, but it had to be
placed in a SCI32 graphics function in order to be shown in QFG4 too
2012-07-08 16:15:47 +03:00
Filippos Karapetis
2ef3f5e695 SCI: Update the virtual file selected in the QFG4 character import screen
This makes the character import screen in QFG4 functional, as the virtual
file index was never updated
2012-07-08 16:15:45 +03:00
Filippos Karapetis
4c43d6d85d SCI: Add a hack in kGetAngleWorker to fix bug #3540976
kGetAngle(Worker) has been implemented based on behavior observed
with a test program created with SCI Studio. However, the return values
have subtle differences from the original, which uses atan(). This
temporary hack will do for now till the implementation of kGetAngle is
done again. A simpler atan2-based implementation has also been added for
future reference
2012-07-08 16:15:43 +03:00
Alyssa Milburn
87b79f2124 COMPOSER: Fix parsing v1 book groups.
This fixes bug #3539019.
2012-07-08 10:28:44 +02:00
Alyssa Milburn
e265be07bf MOHAWK: Run animations attached to LiveText items.
Should fix bug #3541294.
2012-07-08 09:54:36 +02:00
D G Turner
aec83e015c TEENAGENT: Replaced non-const static variable in Scene class.
This could cause glitches with Return To Launcher and thus should be
avoided. Replaced with a private member variable on the class.
2012-07-08 01:08:15 +01:00
Travis Howell
4f9b9ce3cc SCUMM: Correct HE version for another English Windows version of Freddi Fish and Luther's Maze Madness. 2012-07-08 09:41:25 +10:00
D G Turner
0e6ba29ede TEENAGENT: Migrate engine to using debugflags.
This required some restructuring of the header dependencies.
2012-07-08 00:36:05 +01:00
D G Turner
62c4c09225 TEENAGENT: Enable commented out debug statements.
Commented out code is not good practice. Will change these statements
to using debugflags instead in a future commit.
2012-07-07 17:04:42 +01:00
D G Turner
a77a81da51 TEENAGENT: Remove unecessary passing of OSystem to scene Class.
This can be accessed via the engine's _system variable instead.
2012-07-07 14:42:26 +01:00
D G Turner
cfe7bf614b TOON: Remove unecessary getSystem() function.
This was needed due to the unecessary protected shadow variable
hiding the Engine superclass _system member variable.
2012-07-07 14:37:15 +01:00
D G Turner
d7b3ca02fe TEENAGENT: Migrate to using ConfMan singleton. 2012-07-07 14:04:11 +01:00
D G Turner
313502e2ee TEENAGENT: Remove static Resources class Instance.
This is replaced by an engine instance. This should prevent issues
with Return To Launcher and may remove issues with file handles.
2012-07-07 13:46:28 +01:00
Travis Howell
10ba526812 SCUMM: Add another English Windows version of Freddi Fish and Luther's Maze Madness. 2012-07-07 20:13:02 +10:00