Commit graph

119 commits

Author SHA1 Message Date
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
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
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
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
Willem Jan Palenstijn
4e207dbc7a DREAMWEB: Clean up Sprite::_updateCallback 2011-12-28 15:19:59 +01:00
Filippos Karapetis
279746fcf0 DREAMWEB: Completely remove all of the runtime, and move everything into DreamWebEngine
Also, remove dead code (allocateMem/deallocateMem)
2011-12-28 15:07:17 +02:00
Willem Jan Palenstijn
90cb52b7f6 DREAMWEB: Streamline graphics file access 2011-12-27 23:01:58 +01:00
Filippos Karapetis
08fec8fa34 DREAMWEB: Add meta information to saved games
This information includes savegame versioning and the saved game's
date/time, played time and game thumbnail. This information is stored
into an unused data block of the original save format, so the
generated ScummVM saves are (hopefully) fully compatible with the
original ones and can be loaded in the original interpreter
2011-12-18 02:55:22 +02:00
Max Horn
6b226d5943 DREAMWEB: Do savefile reading directly in loadPosition() / scanForNames() 2011-12-11 10:02:50 +01:00
Max Horn
3d753794e6 DREAMWEB: Move savefile creation into DreamGenContext::savePosition
Also, make sure the save file is properly finalized before being closed.
2011-12-11 10:01:28 +01:00
Max Horn
dfeb31e187 DREAMWEB: Add DreamWebEngine::getSavegameFilename 2011-12-11 10:01:28 +01:00
Max Horn
409e359fed DREAMWEB: Move g_lineData to DreamBase::_lineDaata 2011-12-07 16:50:36 +01:00
Max Horn
0737888e0f DREAMWEB: Avoid accessing DreamWebEngine::_context whenever possible 2011-12-07 11:50:06 +01:00
Max Horn
f37b748676 DREAMWEB: Merge DreamWeb::fadeDos into DreamGenContext::fadeDOS 2011-12-07 11:19:48 +01:00
Max Horn
ce8b1e06c7 DREAMWEB: Merge DreamWebEngine::setPalette into DreamGenContext::showGroup 2011-12-07 11:15:37 +01:00
Max Horn
7cff0111ca DREAMWEB: Declare namespace *after* all #includes 2011-12-06 21:50:42 +01:00
Bertrand Augereau
dfd1ff2db3 DREAMWEB: kTempCharset and kCurrentSet are managed out of the VM 2011-12-04 18:54:08 +01:00
Bertrand Augereau
87ac82db27 DREAMWEB: kIcons1 and kIcons2 ownership transferred from the VM to the engine 2011-12-04 18:23:30 +01:00
Willem Jan Palenstijn
d9e31be349 DREAMWEB: Convert 'readKey' and the keyboard buffer 2011-12-04 10:11:28 +01:00
Willem Jan Palenstijn
0336c67bfd DREAMWEB: Move Bresenham output out of data segment 2011-12-03 20:39:06 +01:00
Willem Jan Palenstijn
15856843a4 DREAMWEB: Create and use FileHeader struct 2011-12-03 15:47:33 +01:00
D G Turner
92e6815ca3 DREAMWEB: Removed mostly unused addr_* constants in dreamgen.h
The two used constants have been moved to dreamweb.h, though it is
unclear if the values can be replaced by an enum or pointer to function.
2011-12-02 00:25:26 +00:00
Bertrand Augereau
0baa0afb38 DREAMWEB: Better 'mouseCall' api, DreamWebEngine should not use _context, ideally 2011-08-25 07:46:23 +02:00
Willem Jan Palenstijn
8a5c8f3320 DREAMWEB: Add/fix loading from launcher
This is very error-prone, and needs testing.
2011-08-18 00:29:17 +02:00
eriktorbjorn
e25e85fbb0 DREAMWEB: Blacklist and reimplement cancelch0() and cancelch1()
Now any sound playing on the channels is stopped immediately. This
fixes missing voice-overs in the intro, makes it possible to skip
lines of conversation, and fixes a problem where the sound effect
from the Altar Room would keep playing after leaving the room.
Possibly other glitches as well.
2011-07-20 13:15:30 +02:00
Eugene Sandulenko
540d0260e6 DREAMWEB: Add ScummVM headers, remove SVN keywords. 2011-07-19 11:26:40 +01:00
Vladimir Menshakov
545e482b5a DREAMWEB: Reimplemented modifychar and language switching 2011-06-25 18:21:37 +04:00
Vladimir Menshakov
375298f69a DREAMWEB: Replaced foreign-guarded code with "foreignrelease" variable, added modifychar stub 2011-06-25 18:21:37 +04:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Ori Avtalion
9b703356e6 DREAMWEB: Fix saveGameState signature to match Engine's virtual method 2011-06-18 19:59:36 +03:00
Vladimir Menshakov
41a399231b DREAMWEB: added stubs for loading from lancher (disabled). 2011-06-18 14:29:10 +04:00
Vladimir Menshakov
6fe3e63ed1 DREAMWEB: replaced generated code with c++ style stubs 2011-06-17 00:31:36 +04:00
Vladimir Menshakov
4fd3cdf984 DREAMWEB: Improved code formatting 2011-06-16 16:31:17 +04:00
Vladimir Menshakov
14121a6f57 DREAMWEB: moved stubs into stubs.cpp 2011-06-16 01:03:29 +04:00
Vladimir Menshakov
cf942d9308 DREAMWEB: cleanup keys handling, added turbo shortcut 2011-06-15 17:35:00 +02:00
Vladimir Menshakov
074436985f DREAMWEB: renamed playSpeech to loadSpeech 2011-06-15 17:34:57 +02:00
Vladimir Menshakov
932abf8c3b DREAMWEB: regenerated sources with CD option on 2011-06-15 17:34:56 +02:00
Vladimir Menshakov
1955df129f DREAMWEB: added sound support 2011-06-15 17:34:46 +02:00
Vladimir Menshakov
74dfc34937 DREAMWEB: added sounds loading 2011-06-15 17:34:46 +02:00
Vladimir Menshakov
5a8b1dbfff DREAMWEB: catch the sample changing, more stubs 2011-06-15 17:34:45 +02:00
Vladimir Menshakov
09346f01d7 DREAMWEB: added sound handling stub 2011-06-15 17:34:45 +02:00
Vladimir Menshakov
93cf9993ea DREAMWEB: report click only once, this fixes phantom clicks after loading or between screens. 2011-06-15 17:34:42 +02:00
Vladimir Menshakov
308fcf0953 DREAMWEB: added setSpeed, CTRL-F shortcut and removed erik's comment because it's good idea :) 2011-06-15 17:34:40 +02:00
Vladimir Menshakov
edf7d9b42b DREAMWEB: unstubbed printundermon 2011-06-15 17:34:38 +02:00
eriktorbjorn
de65cf35c1 DREAMWEB: Simplify the tracking of the mouse position and buttons
The event manager keeps track of the mouse position and button
state, so using that should be both simpler and more reliable
than tracking it ourselves.

This loses the support for middle-clicking, but it's not clear
that this is needed anyway. (If necessary, it could be added to
the event manager.)
2011-06-15 17:34:36 +02:00
Vladimir Menshakov
4ba74f73e1 DREAMWEB: moved quit() into engine's method 2011-06-15 17:34:22 +02:00
Vladimir Menshakov
04ee3aefae DREAMWEB: implemented doshake 2011-06-15 17:34:22 +02:00