Commit Graph

207 Commits

Author SHA1 Message Date
Bertrand Augereau
cf12e04997 DREAMWEB: frameoutv becomes a native function 2011-06-22 23:11:44 +02:00
Willem Jan Palenstijn
2551389304 DREAMWEB: Fix bug in tasmrecover causing load/save mixup
This is a regression from c1b9adb691 and (my commit) 287c23f126.

It is not safe to remove opcodes from proc.stmts since labels
are sometimes referenced by their offset in the list. So, instead
they are now replaced by op._nop.

This fixes kLoadingorsave not being set in doload(), which was
visible when going to the load game menu from the startup menu.
2011-06-22 00:00:56 +02:00
eriktorbjorn
f8a4ccbc65 DREAMWEB: Use kMaingamepal provided by the tasm-recover
This should significantly decrease the risk of mysterious palette
bugs in the PCX title cards after regenerating dreamgen.cpp
2011-06-20 20:16:21 +02:00
eriktorbjorn
f78d5bc553 DREAMWEB: Remove readabyte() and readoneblock()
They were only used by the PCX decoder, which was rewritten some
time ago to no longer use them.
2011-06-20 20:09:26 +02:00
eriktorbjorn
7079912091 DREAMWEB: Remove convertkey()
This function was responsible for filtering invalid keys (e.g. in
savegame names), and was only used by keyboardread(). This filtering
is done by processEvents() instead.
2011-06-20 20:00:09 +02: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
Paul Gilbert
a15d233dc4 DREAMWEB: Fix compilation error on MSVC 2011-06-19 23:19:02 +10:00
Vladimir Menshakov
613a203c8a DREAMWEB: Added crash workaround 2011-06-19 16:57:10 +04:00
Vladimir Menshakov
5efe835f20 DREAMWEB: Added assertions on cx == 0xffff 2011-06-19 16:57:10 +04:00
Vladimir Menshakov
9f8850fd91 DREAMWEB: Added checksums for German CD release 2011-06-19 16:05:55 +04:00
Vladimir Menshakov
4ede98d748 DREAMWEB: Removed getback = 4 hack, added clean exit from every menus and credits 2011-06-19 15:50:22 +04:00
Vladimir Menshakov
41159c68ab DREAMWEB: removed hack from openfile 2011-06-19 15:50:22 +04:00
Ori Avtalion
9b703356e6 DREAMWEB: Fix saveGameState signature to match Engine's virtual method 2011-06-18 19:59:36 +03:00
Vladimir Menshakov
afc6b2e617 DREAMWEB: fixed size check in stosw(size) 2011-06-18 14:52:53 +04:00
Vladimir Menshakov
41a399231b DREAMWEB: added stubs for loading from lancher (disabled). 2011-06-18 14:29:10 +04:00
Vladimir Menshakov
cf671227fe DREAMWEB: do not call updatescreen before quitting, fixed crash on dosreturn, cleaned up dosreturn stub 2011-06-18 13:33:58 +04:00
Vladimir Menshakov
4cdc9c9f8e DREAMWEB: implemented clean exit 2011-06-18 13:33:58 +04:00
Eugene Sandulenko
94ad45b058 Merge pull request #30 from tsoliman/configure-enhancement-warning-clean
Configure enhancement warning clean
2011-06-17 10:19:57 -07:00
Vladimir Menshakov
27890ec3e2 DREAMWEB: clear cx after rep movs/stos commands 2011-06-17 21:15:06 +04:00
Vladimir Menshakov
6fe3e63ed1 DREAMWEB: replaced generated code with c++ style stubs 2011-06-17 00:31:36 +04:00
Tarek Soliman
901b6191c5 DREAMWEB: flag all WIP games with ADGF_UNSTABLE
all
2011-06-16 13:37:58 -05:00
Willem Jan Palenstijn
ae67a9a958 DREAMWEB: Re-optimize unbounded code blocks
This gets rid of some unused labels. We need to be careful
not be optimize too much, as that could remove the very label
the unbounded block was added for.
2011-06-16 16:43:48 +02:00
Willem Jan Palenstijn
2c76a4af40 DREAMWEB: Fix probably copy-paste error in asm
This removes an (empty) 'unbounded code' block in dreamgen.cpp
2011-06-16 16:29:48 +02:00
Willem Jan Palenstijn
287c23f126 DREAMWEB: Try to clean up jumps to returns 2011-06-16 15:40:52 +02:00
Vladimir Menshakov
d8d16e0231 DREAMWEB: removed while loops from rep+stos/movs instructions 2011-06-16 16:44:58 +04:00
Vladimir Menshakov
4fd3cdf984 DREAMWEB: Improved code formatting 2011-06-16 16:31:17 +04:00
Paul Gilbert
c48b90f7a3 DREAMWEB: Clarified 2nd CD version as the US release 2011-06-16 19:12:36 +10:00
Paul Gilbert
51905728c3 DREAMWEB: Added detection for second CD version 2011-06-16 18:38:19 +10:00
Vladimir Menshakov
3da9bf5cc9 DREAMWEB: Fixed size of the save file title 2011-06-16 10:41:47 +04:00
Vladimir Menshakov
dc1c1d48d9 DREAMWEB: added savefiles enumeration 2011-06-16 01:21:24 +04:00
Vladimir Menshakov
14121a6f57 DREAMWEB: moved stubs into stubs.cpp 2011-06-16 01:03:29 +04:00
Vladimir Menshakov
e0efde7cf6 DREAMWEB: optimized consequtive movsb/w and stosb/w 2011-06-16 00:20:30 +04:00
Vladimir Menshakov
c1b9adb691 DREAMWEB: added unused label elimination. Does not work for some labels, but the most ones are gone. 2011-06-15 23:38:44 +04:00
Vladimir Menshakov
3b85dede39 DREAMWEB: added banner to autogenerated files 2011-06-15 23:00:05 +04:00
Vladimir Menshakov
7a47b09379 DREAMWEB: uncommented simple ret stripping 2011-06-15 22:25:16 +04:00
Vladimir Menshakov
eb80d05b64 DREAMWEB: fixed code formatting 2011-06-15 22:09:31 +04:00
Vladimir Menshakov
d609d98075 DREAMWEB: removed width160 for now 2011-06-15 22:09:23 +04:00
Vladimir Menshakov
4b3f775efa DREAMWEB: removed asserts, added STACK_CHECK as suggested by Max 2011-06-15 22:02:18 +04:00
Vladimir Menshakov
ae8edebd65 DREAMWEB: fixed title skipping 2011-06-15 17:35:04 +02:00
Vladimir Menshakov
c760405a4e DREAMWEB: ported engine to the new metaengine api 2011-06-15 17:35:03 +02:00
eriktorbjorn
1cafd2de98 DREAMWEB: Reinstate some "hardware key" handling that got lost
It's still not quite as the original. In the original, Ctrl-<letter>
would be treated as <letter>. Is that worth fixing? Probably not.
2011-06-15 17:35:03 +02:00
Vladimir Menshakov
9c7c46bfde DREAMWEB: fixed final scene, better sound channel handling 2011-06-15 17:35:02 +02:00
eriktorbjorn
dfaa1e32b7 DREAMWEB: Filter out "illegal" characters
This is fairly restrictive (just like the original) so we may went
to let through a few more characters eventually. For now, let's be
conservative. It was possible to enter characters that would show
up in the save dialog as weird or underlined characters.
2011-06-15 17:35:02 +02:00
eriktorbjorn
cde28452f7 DREAMWEB: The readabyte() function is no longer needed. 2011-06-15 17:35:01 +02:00
Vladimir Menshakov
cd4b0a8b6a DREAMWEB: cleaned up keys handling 2011-06-15 17:35:01 +02:00
Vladimir Menshakov
f4936e6b42 DREAMWEB: implemented stc/clc, fixed preliminary exit from the dialogue 2011-06-15 17:35:00 +02:00
Vladimir Menshakov
7d93f81aba DREAMWEB: added detection of the cd version 2011-06-15 17:35:00 +02:00
Vladimir Menshakov
cf942d9308 DREAMWEB: cleanup keys handling, added turbo shortcut 2011-06-15 17:35:00 +02:00
Vladimir Menshakov
5826ae88ae DREAMWEB: cut upper volume limit 2011-06-15 17:34:59 +02:00
Vladimir Menshakov
8a87835638 DREAMWEB: added comment about volumes 2011-06-15 17:34:59 +02:00