Commit Graph

1325 Commits

Author SHA1 Message Date
Johannes Schickel
e66b9d4487 DREAMWEB: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Ori Avtalion
f9d2871eb4 JANITORIAL: Remove extra semicolons 2012-07-03 18:28:14 +03:00
D G Turner
d335b78003 DREAMWEB: Fix minor regression with Ryan's watch.
Using Ryan's watch within the game, the watch time always started at
19.30 from point of use, which did not seem correct.

Checking with the original CD and Floppy interpreters under DOSBox
showed they used the current system time, so this was incorrect.

Bisection shows that this regression was introduced by commit
57e940f678 i.e. "DREAMWEB: Move all saved
variables to a GameVars struct" and was probably a side effect of a
minor call ordering change in the equivalent of setupInitialVars()
with respect to the getTime() call.

However, to ensure no further regressions, it was easier to fix this
by replacing the initial value setting by a getTime() call.
2012-07-01 06:20:53 +01:00
Johannes Schickel
7c5cf1b400 GUI: Add helper to SaveLoadChooser, which uses the currently active target.
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel
15046a7529 GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +02:00
D G Turner
7d29e4017d DREAMWEB: Modify Sound code to better match original behaviour.
This fixes bug #3531635 - "DREAMWEB: doors don't play "open" sound when
opening".
In addition, the resultant code is simpler and should better match the
original behaviour and a basic playtest has not shown any regressions.
2012-06-05 01:00:01 +01:00
D G Turner
db77b9e4a7 DREAMWEB: Modify sound code to prevent missing sound effects.
This should fix bug #3528164 "DREAMWEB: missing sound
effects/music cues during main title" by preventing repeated calls
of SFX id 12 being lost if the next call is made before the sound
handler has cleared the previous one.
2012-06-02 22:28:34 +01:00
D G Turner
d9983a6224 DREAMWEB: Cleanup of debugging code and formatting in sound code.
This commit removes various temporary debugging output, cleans up
some points of formatting and replaces some hexadecimal sizes and
offsets with decimal for readability.
2012-06-02 07:03:40 +01:00
D G Turner
6691424397 DREAMWEB: Remove irrelevant additions in SFX id 62 usage. 2012-05-31 05:39:08 +01:00
D G Turner
628cfa3d47 DREAMWEB: Objectify Sound functions & data into DreamWebSound class.
This change should have no functional change, but makes the sound code
more decoupled, modular and readable, prior to attempting a fix for
bug #3528164 - "DREAMWEB: missing sound effects/music cues during main
title".
2012-05-31 05:16:10 +01:00
D G Turner
ae31469a9a DREAMWEB: Replaced vsync() function with waitForVSync().
As a call to waitForVSync() was the only contents of vsync(), there
should be no functional change.
2012-05-30 04:23:34 +01:00
D G Turner
96ae10c749 DREAMWEB: Removal of dead code and cleanup in sound code.
The removed blocks in the playChannel<n> functions referencing index are
non-functional leftovers from more complex logic in the original code
structure, and thus can be safely removed.
2012-05-30 03:53:52 +01:00
D G Turner
45974a1bf0 DREAMWEB: Increased debugging output from sound related code.
This code is intended as temporary debugging code to aid investigation
of bug #3528164 - "DREAMWEB: missing sound effects/music cues during
main title" and can be removed once this bug is fixed.
2012-05-22 16:31:23 +01:00
Filippos Karapetis
b678dca1c0 DREAMWEB: Fix bug #3528160 - "DREAMWEB: graphical glitch on UKV CD version loading screen" 2012-05-21 11:41:15 +03:00
D G Turner
e23ac65799 DREAMWEB: Modify detection entries to allow for early UK CD Release.
As this version has identical dreamweb.r00 and r02 files to the
international floppy release, have added the executable to clarify
between the two versions.

Fixes bug #3526483 - "DREAMWEB: No speech playing in CD version"
2012-05-18 17:13:37 +01:00
Willem Jan Palenstijn
f6acc5d5be DREAMWEB: Fix crash when entering short console password
_inputLine is not a string, so it shouldn't be cast to Common::String.
This fixes bug #3525602.
2012-05-10 23:06:32 +02:00
D G Turner
29a866217f DREAMWEB: Fix Speech Directory Name for SP/FR CD Variant.
This should fix the remaining issues on bug #3524362 "DREAMWEB: Problem
with Spanish/French version".
2012-05-08 16:58:43 +01:00
D G Turner
0cff5c547c DREAMWEB: Add _speechDirName to remove duplication of Directory name. 2012-05-08 16:48:01 +01:00
D G Turner
4161d83cba DREAMWEB: Add detection entry for another French/Spanish CD variant.
The MD5sums are taken from bug #3524362 "DREAMWEB: Problem with
Spanish/French version".
2012-05-07 23:21:20 +01:00
Willem Jan Palenstijn
5a1f458bd0 DREAMWEB: Add character map for the Italian version.
It is the same as the French version. This fixes bug #3523338.
2012-05-04 23:35:18 +02:00
Johannes Schickel
e72f51129b DREAMWEB: Tag all detection entries as testing instead of unstable. 2012-05-03 18:44:41 +02:00
Filippos Karapetis
8a227d6903 DREAMWEB: Slight cleanup 2012-04-22 16:32:52 +03:00
Filippos Karapetis
6ecf27711c DREAMWEB: Move all of the mouse cursor related code into a separate file 2012-04-22 16:06:25 +03:00
Thierry Crozat
8d274f5006 DREAMWEB: Simplify modifyFileName() by using _datafilePrefix 2012-04-16 23:21:30 +01:00
Thierry Crozat
a4aaca5919 DREAMWEB: Minor style fixes 2012-04-16 21:26:55 +01:00
Thierry Crozat
c62c5d61ca DREAMWEB: Add character mapping for french version 2012-04-15 11:45:14 +01:00
Thierry Crozat
a3406aab13 DREAMWEB: Support opening data files from ES and FR CD version 2012-04-15 11:45:14 +01:00
Filippos Karapetis
98b60f1af8 DREAMWEB: Slight cleanup of DreamWebEngine::animPointer() 2012-03-27 00:21:48 +03:00
Filippos Karapetis
fb5aa3ccbb DREAMWEB: Rename the dreamweb_originalsaveload option to originalsaveload
This changes its naming to be like the rest of the game options
2012-03-25 17:50:22 +03:00
Filippos Karapetis
eabdf8048e DREAMWEB: Add per-game GUI option support. 2012-03-19 21:04:29 +01:00
Filippos Karapetis
d41d7e5f36 DREAMWEB: Clean up the palette brightness code 2012-03-04 01:11:50 +02:00
Torbjörn Andersson
261fc2f4be DREAMWEB: Simplify some uses of randomNumber()
Our random number generator isn't restricted to producing numbers
between 0 and 255. We can just ask it for the desired range.
2012-03-03 13:55:04 +01:00
Bertrand Augereau
1098e6b79a DREAMWEB: The rain processing has its own cpp file 2012-03-03 14:18:05 +01:00
D G Turner
4e68b06fed DREAMWEB: Remove uneeded Common::String construction. 2012-02-24 19:43:49 +00:00
D G Turner
966210b56d DREAMWEB: Migrate remaining minor functions to using datafile prefix variable.
Currently, the usages associated with savegames have been omitted.
These will probably need a different prefix constant as it is likely
foreign variants still use "DREAMWEB.*" for savegames, while using
a different prefix for the datafiles. We may even migrate away from
this naming convention as this causes savegame collisions when multiple
language variants are present, which could cause issues.

The usages in the Room members of the constant g_roomData structure have
also been omitted, as the members are copied into the savegame format,
thus replacing these and fixing other accesses is not trivial.
2012-02-24 15:04:16 +00:00
D G Turner
a397748ace DREAMWEB: Migrate loadTextFile() to using datafile prefix variable. 2012-02-24 15:04:15 +00:00
D G Turner
bca22d4bee DREAMWEB: Migrate loadGraphicsFile() to using datafile prefix variable. 2012-02-24 15:04:13 +00:00
D G Turner
e3c5f9180c DREAMWEB: Migrate loadSounds() to using datafile prefix variable. 2012-02-24 15:04:12 +00:00
D G Turner
31bf535a83 DREAMWEB: Migrate loadTempText() to using datafile prefix variable. 2012-02-24 15:04:10 +00:00
D G Turner
542014c309 DREAMWEB: Add datafile name prefix to engine and modify showPCX() to it.
This new variable removes the need for duplicates strings of the form
"DREAMWEB.*" spread throughout the dreamweb engine, replacing them with
a common const string on the engine holding the datafile name prefix.

This will reduce binary size and it should also simplify adding support
for foreign language variants, where the datafile name prefix is
changed.

To demostrate usage and prove this, showPCX() is migrated to using this.
2012-02-24 15:04:09 +00:00
Eugene Sandulenko
54c87f20e3 Merge pull request #189 from fingolfin/cleanup
ALL: Cleanup
2012-02-23 23:55:45 -08:00
Alyssa Milburn
6e70f77289 DREAMWEB: Dynamically allocate GraphicsFile::_frames.
This avoids extra memory usage due to the previous commit.
2012-02-23 22:37:21 +01:00
Alyssa Milburn
256d160679 DREAMWEB: Remove shared temp graphics variables.
Instead, have a different variable for each use.
2012-02-23 22:34:22 +01:00
Max Horn
37216ab381 DREAMWEB: Avoid including advancedDetector.h from dreamweb.h 2012-02-22 18:25:37 +01:00
Willem Jan Palenstijn
fd40d1b192 DREAMWEB: Revert "Fix the detection entries for the French and Spanish CD versions"
This reverts commit 0ff60284ce.

We do not want to encourage people to rename all files in their games.
Instead, we should properly support the foreign versions.
2012-02-18 14:25:35 +01:00
Filippos Karapetis
0ff60284ce DREAMWEB: Fix the detection entries for the French and Spanish CD versions 2012-02-18 01:47:10 +02:00
Max Horn
dcbf77cc92 DREAMWEB: Document some locations 2012-02-16 11:11:45 +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
Willem Jan Palenstijn
143363d5b6 DREAMWEB: Improve subtitle durations in madman scene 2012-02-12 23:57:25 +01:00
Willem Jan Palenstijn
3fc8b7227b DREAMWEB: Fix missing subtitle lines in speech+subtitle mode
This is done by adding a (very ugly) way to force the previous timed-temp
line off screen, so the next one can be shown.
2012-02-12 23:57:09 +01:00