Commit Graph
1396 Commits
Author SHA1 Message Date
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
Willem Jan Palenstijn 3abb3ad757 DREAMWEB: Fix duplicate line in monk end sequence 2012-02-12 23:56:37 +01:00
D G Turner 0d6b4df014 DREAMWEB: Remove uneeded duplicate function "printUnderMon". 2012-02-08 17:18:35 +00:00
Torbjörn Andersson c456d6d29a DREAMWEB: Rewrite a comment, since the old one could be misread
I read it as "this is how the original code expects save slots to
be initialized", but I guess it could be read as "the original
engine had 21 save slots". Which it didn't.
2012-01-12 00:00:26 +01:00
Torbjörn Andersson 0998c64c20 DREAMWEB: Change selectSaveLoadPage()'s command type to be unique
At Filippos's and wjp's suggestion. I don't really understand what
it does (other than printing the mouse over text), so I had simply
copied and pasted from another function.
2012-01-11 23:38:37 +01:00
Torbjörn Andersson 0a5df02134 DREAMWEB: Extend the number of saveslots from 7 to 21 in the original
save/load dialogs.
2012-01-08 19:36:59 +01:00
Willem Jan Palenstijn d09be37c69 DREAMWEB: Minor clean up 2011-12-29 14:39:53 +01:00
Willem Jan Palenstijn 73ebccc30a DREAMWEB: Allow quit during ending 2011-12-29 14:39:43 +01:00
D G Turner f592849653 DREAMWEB: Correct monitor header message alignment in floppy versions. 2011-12-29 08:09:29 +00:00
D G Turner 59458c9b15 DREAMWEB: Simplify finalization call in dreamweb main function.
Thanks to Fingolfin for the suggestion.
2011-12-29 02:58:19 +00:00
D G Turner 311e1c495c DREAMWEB: Minor clean up and removal of goto usage in dreamweb(). 2011-12-28 23:37:16 +00:00
Max Horn 93ee179641 DREAMWEB: Minor cleanup 2011-12-29 00:00:44 +01:00
Max Horn 36778c8221 DREAMWEB: Remove unnecessary DreamWebEngine:: uses 2011-12-28 23:56:30 +01:00
Max Horn 9f99fb5f8a DREAMWEB: Use ObjectType enums in more places 2011-12-28 23:53:54 +01:00
Max Horn dc4af2afc2 DREAMWEB: Added commandOnlyCond() method 2011-12-28 23:06:49 +01:00
Max Horn bfd891d571 DREAMWEB: Mark some member vars as only being used in keypad.cpp; cleanup 2011-12-28 23:06:49 +01:00
Willem Jan Palenstijn 32e5778d1f DREAMWEB: Fix crash when loading a room without reels 2011-12-28 20:11:36 +01:00
Max Horn e2c006f793 DREAMWEB: Remove global file handle 2011-12-28 19:59:53 +01:00
Willem Jan Palenstijn ea6546ae25 DREAMWEB: Clean up checkCoords 2011-12-28 19:55:06 +01:00
Max Horn c6dfac9b0a DREAMWEB: Move more methods to keypad.cpp, reorder them to match ASM 2011-12-28 19:36:17 +01:00
Filippos Karapetis e2aaba4a69 Merge pull request #154 from fingolfin/dreamweb-cleanup
Dreamweb: Mark structs packed, minor tweaks
2011-12-28 10:29:53 -08:00
Filippos Karapetis 6a5c75a439 DREAMWEB: Changed hasSpeech() to also take account of the audio settings
This fixes an assert in the madman sequence
2011-12-28 20:26:15 +02:00
Filippos Karapetis 972ebc0c75 DREAMWEB: Allow skipping the mad man sequence with the ESC key 2011-12-28 20:15:08 +02:00
Filippos Karapetis eaed1b725a DREAMWEB: Replaced most isCD calls with calls checking for speech
This is quite useful for devices with limited storage, where the user
can use the CD version without its speech files
2011-12-28 18:54:17 +02:00
Willem Jan Palenstijn 63da2ac271 DREAMWEB: Clean up some constants 2011-12-28 16:48:10 +01:00
Max Horn 13e252ebd0 DREAMWEB: Add 'packed' attribute to structs that need it
... and probably also to some that don't need it; since it seems better to
err on the wrong side here for now, I did not check every struct as to whether
it really needs this. On the long run, it would be better if the code did not
rely on any kind of packing anyway.
2011-12-28 16:36:18 +01:00
Max Horn 8f2b8e821f DREAMWEB: Cleanup 2011-12-28 16:36:17 +01:00
Max Horn ca7da4cffc DREAMWEB: Rename a member of SetObject & DynObject to objId
SetObject::name and DynObject::id are stored at the exact same offset,
and have the exact same meaning (see also objectMatches()). Now they
also have the same name, objId.
2011-12-28 16:36:16 +01:00
Max Horn c10ea611e8 DREAMWEB: Rename getEitherAdCPP to getEitherAd, use obj type enums 2011-12-28 16:36:16 +01:00
Willem Jan Palenstijn 77b8491b8b DREAMWEB: Remove unused Sprite fields 2011-12-28 15:19:59 +01:00