Commit Graph

18844 Commits

Author SHA1 Message Date
Max Horn
6fa8772bae SWORD25: Replace art_warn/art_die by warning/error
svn-id: r54002
2010-11-01 16:00:35 +00:00
Max Horn
a1dd7a07a1 ENGINES: Remove some 'using' statements
svn-id: r54001
2010-11-01 16:00:17 +00:00
Sven Hesse
205fc94848 GOB: Fix spelling
svn-id: r54000
2010-11-01 15:36:31 +00:00
Arnaud Boutonné
4c6eb76d79 HUGO: Make some scheduler functions and variables protected
svn-id: r53999
2010-11-01 15:29:06 +00:00
Torbjörn Andersson
fc0adb846a SWORD2: Cleanup
Removed some of the debug code that has never ever been enabled for as
long as this engine has been in ScummVM.

svn-id: r53998
2010-11-01 11:29:57 +00:00
Torbjörn Andersson
68469f45ce SWORD2: Cleanup pause handling
Removed a bunch of pause-related code which I either can't remember why
it's there, or which doesn't seem to serve any useful purpose. Most
things I've tried seem to work as well or better than before.

svn-id: r53997
2010-11-01 11:25:11 +00:00
Arnaud Boutonné
e48cdb378c HUGO: Move _actListArr to scheduler
svn-id: r53995
2010-11-01 00:27:11 +00:00
Filippos Karapetis
e3dfadc6c1 SCI: Fix for bug #3100292 - "QFG2: signature mismatch at the WIT"
svn-id: r53993
2010-10-31 23:34:36 +00:00
Ori Avtalion
ed8bfb00b9 TINSEL: Reintroduce DUMMY variable removed in r53932
This placates compilers that complain about the semicolon in
"CORO_BEGIN_CONTEXT;"

svn-id: r53992
2010-10-31 22:33:13 +00:00
Max Horn
5c49ae8a9c TINSEL: cleanup
svn-id: r53991
2010-10-31 21:50:48 +00:00
Sven Hesse
ae082b2b28 GOB: Silence a compiler warning
svn-id: r53988
2010-10-31 21:47:20 +00:00
Arnaud Boutonné
f757d489a0 HUGO: Suppress Playback code
Also change 3 variable types in order to match types used 
in create_hugo 

svn-id: r53987
2010-10-31 21:20:22 +00:00
Filippos Karapetis
43221a3253 SCI: Removing obsolete function parameter
svn-id: r53986
2010-10-31 20:57:50 +00:00
Sven Hesse
1421312cf8 GOB: Add listArchives debug console command
svn-id: r53985
2010-10-31 20:51:35 +00:00
Sven Hesse
16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Max Horn
3df411df66 MOTOEZX: Fix warning about static not at beginning of declaration
svn-id: r53981
2010-10-31 17:23:53 +00:00
Filippos Karapetis
dca3c8d8bf SCI: Play time related changes
- Added support for savegame play time
- Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime)
- Renamed some variables to camelCase

svn-id: r53974
2010-10-31 01:45:24 +00:00
Florian Kagerer
ec680ef8aa LOL: fixed bug #3099321
(Crash in Yvel tavern basement)

svn-id: r53973
2010-10-31 00:20:30 +00:00
Max Horn
064bdebd55 LASTEXPRESS: Use const_iterator to iterate over a const array
svn-id: r53967
2010-10-30 22:44:57 +00:00
Max Horn
44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
Max Horn
334173d333 M4: Remove unused getter method MadsM4Engine::system()
svn-id: r53959
2010-10-30 21:26:13 +00:00
Max Horn
c07e58ba06 M4: Disable code using FILE, fopen, etc. and add explantory FIXME
svn-id: r53958
2010-10-30 21:25:52 +00:00
Max Horn
9995c7bd98 HUGO: Comment out all occurrences of FILE *fpb
These are not portable, and (at least in the current code)
do nothing useful either: a file is opened, and closed again,
in write mode. At most this may create / delete the file.
But since the method containing this code is never called...

svn-id: r53957
2010-10-30 21:25:30 +00:00
Arnaud Boutonné
6c702094a8 HUGO: Free some more memory before exiting
- suppress two useless variables
- initialize some variables

svn-id: r53956
2010-10-30 20:48:54 +00:00
Andrew Kurushin
f1ed9c9a6f SCI: add Russian SQ4 & SQ5
svn-id: r53955
2010-10-30 19:51:17 +00:00
Florian Kagerer
a04b4e6517 LOL: workaround for bug #3098935
(Vaelan's Cube can be duplicated at Scotia's Barrier)
This is a bug in the game data of early unpatched floppy versions.
This can also be fixed by applying the official patch (ftp://ftp.westwood.com/pub/lands1/updates/lolus123.exe).

svn-id: r53954
2010-10-30 18:37:15 +00:00
Sven Hesse
14d8d589e2 GOB: Make Map::getItem()/setItem() nonvirtual
svn-id: r53953
2010-10-30 17:28:54 +00:00
Sven Hesse
0f3ed50cfc GOB: Make some more map properties protected
svn-id: r53952
2010-10-30 17:28:27 +00:00
Sven Hesse
8a7d0cc249 GOB: Remove the "ugly" reading of Map::_itemPoses
Removing the need to pack that struct

svn-id: r53951
2010-10-30 17:27:53 +00:00
Sven Hesse
0f536e28f9 GOB: Rename Map::_widthByte to _mapVersion
svn-id: r53950
2010-10-30 17:27:23 +00:00
Sven Hesse
bfa88a05a1 GOB: Make Map::_wayPoints protected
Only allow const access through Map::getWayPoint()

svn-id: r53949
2010-10-30 17:26:49 +00:00
Sven Hesse
4c23f3e163 GOB: Make Map::_passMap protected and group some vars
svn-id: r53948
2010-10-30 17:26:06 +00:00
Sven Hesse
1612a96285 GOB: Unify Map_v1::/Map_v2::getPass()/setPass()
svn-id: r53947
2010-10-30 17:25:29 +00:00
Sven Hesse
31dd8026dc GOB: Minor map cleanup
- Move enum Direction out of class Map
- Convert kLeft et al into a proper enum RelativeDirection

svn-id: r53946
2010-10-30 17:24:52 +00:00
Arnaud Boutonné
724a702fdf HUGO: Free memory on exit
svn-id: r53945
2010-10-30 16:04:43 +00:00
Filippos Karapetis
bf44b0e545 SCI: Fixed script bug #3098353 - "ECOQUEST1 German: Crash at the blackboard in the dolphin room"
svn-id: r53941
2010-10-30 11:21:28 +00:00
Filippos Karapetis
ef7cc2d506 SCI: Fixed detection of fan made script patches for LSL1
svn-id: r53940
2010-10-30 11:07:44 +00:00
Torbjörn Andersson
71e08336c0 SWORD25: Play the cutscene audio
Once the audio buffer has been queued in the audio stream, the Theora
decoder is no longer responsible for it. It has to allocate a new
audio buffer for the next set of audio data.

Of course, at the moment the audio is pretty useless because the
playback speed is all wrong.

svn-id: r53939
2010-10-30 09:17:21 +00:00
Torbjörn Andersson
09c678e363 SWORD25: Fix hanging cutscene video
Even though our video player does not (yet) support audio, we need to
adjust the values of _audiobufFill and _audiobufReady as if it did, or
it will never realize it has reached the end of the cutscene.

Also fixes what looks like a typo in audio data clipping.

svn-id: r53938
2010-10-30 08:21:10 +00:00
Paul Gilbert
919d79f091 SWORD25: Added a hack to allow the new English voice pack to be detected
svn-id: r53937
2010-10-30 04:30:42 +00:00
Max Horn
a487da3c19 TINSEL: Remove redundant if()
svn-id: r53936
2010-10-30 00:34:41 +00:00
Max Horn
36d17c74d1 TINSEL: Remove unnecessary CORO_PARAM from ObjectTextOut
As a nice side effect, this gets rid of 25 out of 64 occurrences
of nullContext in the TINSEL code.

svn-id: r53935
2010-10-30 00:34:21 +00:00
Max Horn
ac94cf2742 TINSEL: Fix subtle leak in coroutine code, some minor tweaks
* Fix a bug which caused coroutines invoked with nullContext to
  leak their state.
  Sadly, nullContext is underdocumented, yet very delicate and
  full of subtleties... ./
* Move nullContext decl from sched.cpp to coroutine.cpp
* Enhance a few doxygen comments

svn-id: r53934
2010-10-30 00:33:54 +00:00
Max Horn
afb5986c9e TINSEL: Dispose state of active coroutines in Scheduler destructor
This fixes some leaks that occurred when exiting the game resp.
returning to launcher. Note that we still leak some coroutines when
exiting after loading a savegame.

svn-id: r53933
2010-10-30 00:33:31 +00:00
Max Horn
55a8bd9e35 TINSEL: Add COROUTINE_DEBUG macro to ease debugging coroutine code
svn-id: r53932
2010-10-30 00:33:11 +00:00
Sylvain Dupont
ecd3e29fe0 TOON: Stops all Sfx/voice when exiting a room
Caused crashs when exiting when a sfx or voice was still playing
Bug found by Thomas

svn-id: r53928
2010-10-29 22:00:31 +00:00
Florian Kagerer
c9442e26ad KYRA: match music settings with latest launcher code changes.
(Last commit got trunkated somehow)

svn-id: r53927
2010-10-29 19:00:37 +00:00
Florian Kagerer
67566890bd KYRA: match music settings with latest launcher code changes.
(Users will get AdLib music at default unless they have specified a MIDI device in the launcher (MT-32 for KYRA, GM for HOF and LOL.)

svn-id: r53926
2010-10-29 18:57:19 +00:00
Johannes Schickel
1ed0051fce DRACI: Switch to the new play time counting of the Engine class.
svn-id: r53925
2010-10-29 16:54:10 +00:00
Johannes Schickel
a5c28de26b SWORD1: Switch to the new play time counting of the Engine class.
svn-id: r53924
2010-10-29 16:53:46 +00:00