Commit Graph

41720 Commits

Author SHA1 Message Date
Johannes Schickel
dac9493069 ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.
I also extended the comment for it to show two possible use cases.

svn-id: r53895
2010-10-27 22:52:02 +00:00
Florian Kagerer
ab1c54a9ee TOON: fix some evaluation order bugs in smacker decoder
These bugs would cause crashs in MSVC 2008/2010 release builds.

svn-id: r53893
2010-10-27 22:41:08 +00:00
Johannes Schickel
2ad28b8cd5 ENGINE: Generalize SCUMM play time counting and move it into Engine.
This implements Max's idea on -devel
("Re: [Scummvm-devel] ATTN Engine authors: Advanced engine features") from
27.10.2010 on 11:12PM CEST.

Unlike the SCUMM implementation it stores the play time as ms instead of s.

The SCUMM engine was adapted to use this instead to reduce code duplication.

svn-id: r53892
2010-10-27 22:37:51 +00:00
Filippos Karapetis
8a08ca1f39 SCI: Cleanup, invoking pauseEngine() on Console::preEnter() and Console::postEnter()
svn-id: r53890
2010-10-27 21:43:08 +00:00
Torbjörn Andersson
4089b9fe2c JANITORIAL: Remove unnecessary semicolons
svn-id: r53889
2010-10-27 19:48:54 +00:00
Torbjörn Andersson
8dbe052ca2 LASTEXPRESS: Rename variable to silence GCC warning
svn-id: r53888
2010-10-27 19:43:35 +00:00
Filippos Karapetis
e85f43877a SCI: Proper pausing/resuming of MIDI music in SciEngine::pauseEngineIntern(), Console::preEnter() and Console::postEnter() and added a sanity check in SciEngine::getDebugger()
svn-id: r53886
2010-10-27 19:22:37 +00:00
Julien Templier
5a336830a0 LASTEXPRESS: Use Common::Rational when adjusting menu clock
Also fix the wrong check that set the time directly to the target time

svn-id: r53885
2010-10-27 19:22:05 +00:00
Julien Templier
44ba44297d LASTEXPRESS: Hide menu elements after a game has been loaded
svn-id: r53884
2010-10-27 19:21:52 +00:00
Julien Templier
cdfcaa4d48 LASTEXPRESS: Implement game loading (last save entry only)
svn-id: r53883
2010-10-27 19:20:20 +00:00
Julien Templier
5688a393b4 LASTEXPRESS: Do not try to show intro when loading a game
svn-id: r53882
2010-10-27 19:19:57 +00:00
Julien Templier
d5e4ab6b20 LASTEXPRESS: Cleanup game saving
- Move loading of game stream to separate function
 - Add checks for NULL in functions using _savegame
 - Add expected saved size for sound & savepoints

svn-id: r53881
2010-10-27 19:19:38 +00:00
Julien Templier
dba75791d9 LASTEXPRESS: Add some missing casts and const qualifiers
svn-id: r53880
2010-10-27 19:19:22 +00:00
Max Horn
aaf7ffdd5c SWORD25: Fix keyboard state handling
Previously, you could get the game into a state where it would think a
key was constantly being pressed. E.g. by pressing 'p' several times
quickly in a row, the game would end in a state where it endlessly
toggled between pause mode and regular mode.

svn-id: r53878
2010-10-27 15:53:53 +00:00
Max Horn
95353b0e60 SWORD25: Use ScummVM keycodes
This should enable use of F-keys in BS25. Most of the KEY_*
constants are not used by the scripts anyway.

svn-id: r53877
2010-10-27 15:53:36 +00:00
Max Horn
b5e41b3a82 SWORD25: Fix out of bounds writes when pressing keys like ctrl or F-keys
This fixes a crash one got by quitting via the GMM.

svn-id: r53876
2010-10-27 15:15:59 +00:00
Jordi Vilalta Prat
9ab69ab6f4 GROOVIE: Fix bug #3095031 (regression in Russian T7G).
Additionally fixed some NEWS file punctuation.

svn-id: r53874
2010-10-27 14:31:20 +00:00
Yotam Barnoy
13b6e0d69a PSP: Fixed ImageViewer code to deallocate TimedMessageDialog
Not deallocating it before loading the next image causes fragmentation in memory which eventually prevents big things from being loaded into memory.

svn-id: r53873
2010-10-27 11:09:03 +00:00
Max Horn
415f9a1b0b AGI: Add note about AgiEngine::parseFeatures
svn-id: r53872
2010-10-27 09:47:18 +00:00
Max Horn
2c99caa795 AGI: Fix memory leak in AgiEngine::parseFeatures()
svn-id: r53869
2010-10-26 22:35:37 +00:00
Max Horn
7c2323bdc3 AGI: Replace report() macro by debug() / warning()
This makes AGI quite a bit less noisy by default.

svn-id: r53868
2010-10-26 22:33:49 +00:00
Max Horn
4e2d1b507a BASE: Remove oudated comment, and redundant warning
svn-id: r53867
2010-10-26 22:30:39 +00:00
Sylvain Dupont
fc1e70eb01 TOON: Fix SetMousePos wrong position
When the game was in a close up, cmd_Set_Mouse_Pos was setting
a out-of-window mouse position.

svn-id: r53866
2010-10-26 22:26:13 +00:00
Sylvain Dupont
66da19552e TOON: Implement cmd_Set_Anim_Scale_Size
Used to rescale the knight animation when the knight 
is moved around the room in Chapter 2

svn-id: r53865
2010-10-26 22:18:14 +00:00
Arnaud Boutonné
83eb3b3654 TOOLS: Add short description for CREATE_TOON, standardize tabulation
svn-id: r53864
2010-10-26 22:00:44 +00:00
Max Horn
dfdf8f2e80 Update credits
svn-id: r53862
2010-10-26 21:55:29 +00:00
Max Horn
86d6f3c200 GMM: Add a basic help dialogs for engines not providing one (i.e. all but SCUMM)
svn-id: r53860
2010-10-26 21:54:57 +00:00
Arnaud Boutonné
786b5f6473 TOOL: Add credits for Hugo
svn-id: r53859
2010-10-26 21:49:51 +00:00
Arnaud Boutonné
c4d4277807 HUGO: Add specific schedulers for each DOS version.
This fixes intro (and game) in H3 DOS, general game 
behavior in H2 Dos. H1 Dos is still broken.

svn-id: r53858
2010-10-26 21:16:16 +00:00
Martin Kiewitz
bd7d9965e9 SCI: removing unneeded call
was a left-over from debugging

svn-id: r53857
2010-10-26 20:56:55 +00:00
Martin Kiewitz
d078a4d235 SCI: fix gfx issues when giving out cards hoyle4
bit 2 actually triggers special drawing of cels in sierra sci

svn-id: r53855
2010-10-26 20:19:17 +00:00
Willem Jan Palenstijn
d3523a6040 LASTEXPRESS: Read savegame in blocks instead of bytes
svn-id: r53854
2010-10-26 20:14:17 +00:00
Martin Kiewitz
9af803f575 SCI: kAnimate bit 2 is hoyle 4 exclusive
adjusted comments about that and also renamed the bit, also added additional TODO, because hoyle 4 has special code that gets into action, when bit 0 is not set, but bit 2 is

svn-id: r53853
2010-10-26 16:21:00 +00:00
Martin Kiewitz
a877ba0026 SCI: little cleanup kAnimate
svn-id: r53852
2010-10-26 15:29:04 +00:00
Martin Kiewitz
f9cb635b58 SCI: fixing bug #3091767 by reverting r52820
interpreters should get checked for that hoyle 4 code, comment added

svn-id: r53851
2010-10-26 14:42:24 +00:00
Julien Templier
5323be5f84 LASTEXPRESS: Fix GCC warnings
svn-id: r53850
2010-10-26 12:49:32 +00:00
Julien Templier
8622ee1ef1 LASTEXPRESS: Turn dummy action error into a warning
svn-id: r53849
2010-10-26 12:11:06 +00:00
Julien Templier
0b5cc5b9ff LASTEXPRESS: Fix forward/backward in the menu
svn-id: r53848
2010-10-26 12:10:49 +00:00
Julien Templier
6bc59c0bb0 LASTEXPRESS: Implement loading of savegame entry headers
svn-id: r53847
2010-10-26 12:10:38 +00:00
Julien Templier
bdbd0c1417 LASTEXPRESS: Do not delete Clock & TrainLine frames in clear() functions
svn-id: r53846
2010-10-26 12:09:38 +00:00
Julien Templier
dc4a22ed7d LASTEXPRESS: More savegame work
- Implement SaveLoad::writeEntry
 - Implement missing saveLoadWithSerializer functions for all serialized classes & structs
 - Add stub for SaveLoad::computePadding

svn-id: r53845
2010-10-26 06:55:34 +00:00
Julien Templier
fd8af7ba6e LASTEXPRESS: Make GameState::time of type TimeValue
svn-id: r53844
2010-10-26 06:55:17 +00:00
Torbjörn Andersson
f663a736dd LASTEXPRESS: Silence GCC warning
svn-id: r53843
2010-10-26 05:19:24 +00:00
Travis Howell
2f254a3531 SCUMM: Add alternative version of patch #3094717 - MMC64: save actor state.
svn-id: r53842
2010-10-26 04:20:20 +00:00
Julien Templier
ae2c4b7cd2 LASTEXPRESS: Savegame support update
- Implement Menu::startGame() properly
 - Add stubs functions for game restart
 - Made savegame headers serializable and moved validity checks inside struct definition
 - Implement create/init savegame functions
 - Add SavegameStream to be able to read/write to the same memory stream
 - Add stubs for setup, writeEntry & loadEntry functions

svn-id: r53841
2010-10-26 00:41:42 +00:00
Max Horn
8217efc74a SWORD25: Disable script triggered screenshots
svn-id: r53840
2010-10-25 23:34:36 +00:00
Max Horn
ed0de8462d SWORD25: Add FIXME about savegame names; cleanup
svn-id: r53839
2010-10-25 23:34:12 +00:00
Max Horn
a783285625 SWORD25: Simplify FS 'wrapper' code a bit, add FIXME comments
The save system of this engine currently partially bypasses the
SaveFileManager API, by (abusing) the fact that the Lua engine allows
creating files in arbitrary places (it exposes fopen, fread, fwrite
etc.). This is used to create a 'config.lua' configuration file. This makes it non-portable.

In addition, the filenames used for the savestates ("0.b25s") do not
comply with our naming conventions for engine savestates.

It should be possible to overcome all this, but it might require hacking
the Lua engine; or we could try to replace some of the BS2.5 script
functions with our own, dynamically.

svn-id: r53838
2010-10-25 23:19:39 +00:00
Max Horn
e0d5db0bb8 SWORD25: 'Implement' RTL support & add TODOs about missing feature support
svn-id: r53837
2010-10-25 22:41:48 +00:00
Sylvain Dupont
c509752da1 TOON: Fixed some Z-order issues for animations
Happened when the flag 0x20 was set in Init_Scene_Anim
It says to use the background layer system

svn-id: r53836
2010-10-25 22:41:34 +00:00