Commit Graph

19783 Commits

Author SHA1 Message Date
Filippos Karapetis
77a1915377 SCI: Some changes to the naming scheme of some games
- For remakes like KQ1, KQ4 and LSL1, the "SCI remake" bit has been moved to the game
description (as it's part of the description, not the extras)
- The "VGA" bit has been removed from the extras. Only the "EGA" bit remains for EGA
versions, to distinguish them from their VGA counterparts, when they exist

svn-id: r55115
2011-01-04 09:09:56 +00:00
Arnaud Boutonné
9ee74fee8a HUGO: Implement menu commands
Also did some cleanup, and had to comment out 
handleMouseUp() as it's currently not working really well

svn-id: r55114
2011-01-04 08:36:03 +00:00
Alyssa Milburn
e59eb31ba9 MOHAWK: Add stopMidi() function.
svn-id: r55113
2011-01-03 22:53:34 +00:00
Alyssa Milburn
4fe73d47fd MOHAWK: Add game type/detection for CSTime.
svn-id: r55112
2011-01-03 22:53:12 +00:00
Alyssa Milburn
2c8b4161ff MOHAWK: Add/update some resource FourCC entries.
svn-id: r55111
2011-01-03 22:52:50 +00:00
Matthew Hoops
9074a27211 MOHAWK: Use integer math where floating point isn't required
svn-id: r55110
2011-01-03 20:44:27 +00:00
Matthew Hoops
8a77f49a59 MOHAWK: Cleanup some spacing, formatting, and naming
svn-id: r55109
2011-01-03 20:40:07 +00:00
Filippos Karapetis
cdb5e55f75 HUGO: Renamed the "cmd" parameter to "command", as "cmd" is a struct in game.h
svn-id: r55108
2011-01-03 19:44:30 +00:00
Eugene Sandulenko
f517b6d344 HUGO: Added stub for menu commands and implemented menu closing
svn-id: r55107
2011-01-03 19:08:10 +00:00
Matthew Hoops
def3c562cb MOHAWK: Silence a gcc warning
svn-id: r55106
2011-01-03 18:45:04 +00:00
Eugene Sandulenko
3344d1b5aa HUGO: Implement top menu autoscaling
svn-id: r55105
2011-01-03 18:17:13 +00:00
Bastien Bouclet
2c95f1f8e1 MOHAWK: Implement Myst opcodes 133, Stellar observatory go button
svn-id: r55104
2011-01-03 17:37:52 +00:00
Arnaud Boutonné
42a41ebd85 HUGO: Load bitmaps from hugo.dat
- set menu bitmaps to 'on' buttons by default
- rename menu entries to match a bit better the original

svn-id: r55103
2011-01-03 16:19:00 +00:00
Eugene Sandulenko
3d2104460d HUGO: Show bitmap on first button in menu as a proof of concept
svn-id: r55101
2011-01-03 12:48:28 +00:00
Eugene Sandulenko
30b40c4745 HUGO: Stub for the top menu
svn-id: r55100
2011-01-03 12:38:13 +00:00
Paul Gilbert
e00c17712c M4: Removed redundant colour index recalculation in palette manager
svn-id: r55098
2011-01-03 11:36:39 +00:00
Arnaud Boutonné
eeaeab93e8 HUGO: Fix 2 bugs that were causing several crashes using the mouse
svn-id: r55097
2011-01-02 21:32:56 +00:00
Bastien Bouclet
83f0a28623 MOHAWK: Implement Myst opcodes 134 to 137, and 170 to 177, Stellar observatory sliders
svn-id: r55096
2011-01-02 17:06:43 +00:00
Alyssa Milburn
940e4f936e MOHAWK: Don't leak the MIDI data.
svn-id: r55094
2011-01-02 14:57:20 +00:00
Alyssa Milburn
1f579add9f MOHAWK: Don't delete the MIDI driver before the parser.
The parser was trying to call into the deleted driver.

svn-id: r55093
2011-01-02 14:23:18 +00:00
Bastien Bouclet
fd5754d6af MOHAWK: Fix checking Myst rocket sound puzzle before moving all the sliders.
Fix a off by one graphical glitch that happened when moving sliders.
Implement opcode 300.

svn-id: r55092
2011-01-02 14:15:15 +00:00
Arnaud Boutonné
d063b074cd JANITORIAL: Suppress some useless includes
svn-id: r55091
2011-01-02 14:06:42 +00:00
Arnaud Boutonné
fcf40ad626 HUGO: Some space/tab cleanups
svn-id: r55088
2011-01-01 23:57:50 +00:00
Filippos Karapetis
32d7e687ee SCI: debugC calls no longer require a debug level of 2 to show output
svn-id: r55086
2011-01-01 12:48:12 +00:00
Filippos Karapetis
d44a105e7f SCI: Disable continuous list checking by default
svn-id: r55085
2011-01-01 12:43:09 +00:00
Arnaud Boutonné
5d6771e3df HUGO: Midi are no longer looping. Add handling to default playlist
svn-id: r55084
2011-01-01 10:51:57 +00:00
Arnaud Boutonné
473ddccf50 HUGO: Reduce CPU usage by adding a delay in the main loop
svn-id: r55083
2011-01-01 10:13:42 +00:00
Arnaud Boutonné
3358001c39 HUGO: Add CTRL-l and CTRL-s keys used in Win versions.
CTRL-n has been added too, but is currently only a STUB

svn-id: r55081
2010-12-31 22:44:16 +00:00
Arnaud Boutonné
11d4742520 HUGO: Saving a game is no longer authorized when gameOverFl is set
svn-id: r55079
2010-12-31 16:25:28 +00:00
Torbjörn Andersson
aa9786604c JANITORIAL: Remove unnecessary semicolon.
svn-id: r55077
2010-12-31 15:19:42 +00:00
Arnaud Boutonné
1df582aecb HUGO: F6 now also closes inventory in Win versions
svn-id: r55076
2010-12-31 14:50:22 +00:00
Filippos Karapetis
e48b07e3bd SCI: Added workaround for script bug #3148418 - "QFG2: Script Error On last screen"
svn-id: r55075
2010-12-31 11:32:19 +00:00
David Turner
04043240b1 GOB: Minor Correction in Debug Console Header.
svn-id: r55074
2010-12-31 11:00:50 +00:00
David Turner
c71c3ab591 MOHAWK: Minor Correction to Graphics Debug Output.
svn-id: r55073
2010-12-31 10:58:59 +00:00
David Turner
f96c8f6e39 CINE: Fix CollisionPage Uninitialised Reads in Operation Stealth.
The collisionPage is only initialised with values when loadCtFw() / loadCtOS() is called.
However, currently during the display of the Delphine Software Logo in Operation Stealth,
checkCollision() is called, but the collisionPage has not been loaded.
To fix the invalid reads, have added code to set the page to zero after allocation.
Shouldn't cause any issues to FW as this will load over the top anyway.

Have also added debug output around this behaviour so that if this is not sufficient i.e. a collision page load is actually missing, then this will aid investigation.

svn-id: r55071
2010-12-31 09:14:49 +00:00
David Turner
c9330fb79e CINE: Close Memory Leak in PCSoundFxPlayer.
This leakage was reported by Valgrind while playing Operation Stealth.

svn-id: r55070
2010-12-31 09:07:44 +00:00
Arnaud Boutonné
542f946155 HUGO: Fix default values in object_t structure for viewx field and followings.
This fixes some other bugs reported by D. Gray

svn-id: r55068
2010-12-30 22:07:12 +00:00
Arnaud Boutonné
1dd3142330 HUGO: Fix several bugs reported by D. Gray
svn-id: r55067
2010-12-30 21:07:38 +00:00
Bastien Bouclet
14cd97cc77 MOHAWK: Implement Myst opcodes 129 to 132, and 192 to 197, Stellar observatory buttons
svn-id: r55065
2010-12-30 13:53:14 +00:00
Bastien Bouclet
6c9a4d36ec MOHAWK: Implement Myst opcode 214, Stellar observatory initialization
svn-id: r55063
2010-12-29 19:33:49 +00:00
David Turner
7bc8fe8ef5 CINE: Fix Memory Leak in PCSoundFxPlayer.
Found this using Valgrind when loading a Future Wars savegame from the launcher.
Occurs since the load() method called stop() but this did not unload() the allocated playing
resource data unless it was still playing. Fixed in stop() by calling unload() in all cases.

svn-id: r55059
2010-12-29 09:53:58 +00:00
David Turner
fef667cbe9 CINE: Fixed mismatched deallocation in ScriptVars reported by Valgrind.
svn-id: r55058
2010-12-29 09:50:48 +00:00
Arnaud Boutonné
4a94eba80a TOON: Add mapping for upper 'ç' and for plenking, both used in french version
svn-id: r55057
2010-12-28 21:19:31 +00:00
Filippos Karapetis
7bc1ff065b SCI: Fixed script bug #3038870 - "SCI Fanmade - Demo Quest: ScummVM hangs with typo" and
removed a related FIXME

svn-id: r55056
2010-12-28 21:05:30 +00:00
Sylvain Dupont
ab01c8e5fc TOON: Fixed memory corruption in several rooms
Some mask line drawings were writing outside the buffer.

svn-id: r55055
2010-12-28 13:13:55 +00:00
Sylvain Dupont
bccf4606c9 TOON: Removed useless confusing code in conversation process part
svn-id: r55054
2010-12-28 13:11:17 +00:00
Travis Howell
ccb8a01b17 SCUMM: Correct fix for bug #3145951 - DIG: Subtitles won't turn off (regression).
svn-id: r55053
2010-12-28 06:05:57 +00:00
Travis Howell
cfbac503ad SCUMM: Another fix for bug #3145951 - DIG: Subtitles won't turn off (regression).
svn-id: r55052
2010-12-28 05:43:03 +00:00
Sylvain Dupont
1b8678d5de TOON: Path finding bug fixes
Allows Flux to walk close to Drew if really needed to prevent total path block.
Prevents path finding if the character is out of the screen

svn-id: r55051
2010-12-27 21:56:52 +00:00
Travis Howell
fe12e08dd6 SCUMM: Fix bug #3145951 - DIG: Subtitles won't turn off (regression).
svn-id: r55050
2010-12-27 14:07:53 +00:00
Travis Howell
e7e92a7577 SCUMM: Fix bug #3143039 - ACTIVITY: Circus Stormin' crash.
svn-id: r55049
2010-12-27 14:02:17 +00:00
Sylvain Dupont
f9409fc7d5 TOON: Fixed Bug #3124527 with Dungeon freeze
Bug #3089974: "TOON: Game freezes in act 2 when thrown to the prison"

Wrong pointer increment in conversation process code.

svn-id: r55047
2010-12-26 20:14:04 +00:00
Filippos Karapetis
1528a3d904 SCI: A more efficient solution for bug #3037874 (SCI high CPU usage), which will hopefully
not clash with the speed throttler. This is a more proper fix for bug #3058865, and a
partial fix for bug #3127824

svn-id: r55046
2010-12-26 15:28:02 +00:00
Matthew Hoops
f2495a42f6 MOHAWK: Move myst_saveload.* to myst_state.*
svn-id: r55045
2010-12-26 15:10:33 +00:00
Matthew Hoops
918c4febb0 MOHAWK: Fix a typo
svn-id: r55044
2010-12-26 14:58:15 +00:00
Matthew Hoops
1bbe49dba9 SCI: Silence a gcc warning
svn-id: r55043
2010-12-26 14:56:51 +00:00
Sylvain Dupont
63e58baae1 TOON: Fix problem when exiting the king cave
svn-id: r55042
2010-12-26 14:32:38 +00:00
Bastien Bouclet
6cd890aaac MOHAWK: Merge classes MystVariables and MystSaveLoad to form MystGameState
svn-id: r55041
2010-12-26 14:31:03 +00:00
David Turner
98783a15e8 HUGO: Fix MIDI Player Memory Leak in H3 Win.
svn-id: r55040
2010-12-26 13:58:39 +00:00
Florian Kagerer
8347b44fb2 KYRA FM-TOWNS: improved cd audio music fading
svn-id: r55039
2010-12-25 22:10:51 +00:00
Alyssa Milburn
64a8652cd6 MOHAWK: Add subimage drawing/caching code
svn-id: r55038
2010-12-25 19:52:54 +00:00
Alyssa Milburn
1897e5e132 MOHAWK: detect the European versions of Zoombinis
svn-id: r55037
2010-12-25 19:52:24 +00:00
Alyssa Milburn
4c0b02fe21 MOHAWK: LB CD-ROM title prefixes aren't Windows-specific
svn-id: r55036
2010-12-25 18:45:48 +00:00
Alyssa Milburn
85da9de3bf MOHAWK: detect/load the Rugrats Adventure Game
svn-id: r55035
2010-12-25 18:45:29 +00:00
Filippos Karapetis
bc9442d6d8 SCI: Fixed bug #3059860 - "LB2CD: Glitch in Act 6 coroner answer buttons"
svn-id: r55034
2010-12-24 15:53:06 +00:00
Filippos Karapetis
5e5410f891 SCI: Only sync the synonyms vocabulary if the game actually has one (thanks wjp)
svn-id: r55033
2010-12-24 14:56:04 +00:00
Filippos Karapetis
9af30a2546 SCI: Now saving/loading the list of synonyms (set by kSetSynonyms), like SSCI did
This is a more correct way of fixing bug #3037618 than in rev #55017.
- Changed replaceant/replacement to be uint16's (they're very small positive
values, usually smaller than 4096)
- Changed SynonymList to an Array (so that it can be saved/loaded)
- Removed the PQ2 script patch to Game::replay()
- Added savegame history

svn-id: r55032
2010-12-24 14:47:47 +00:00
Bastien Bouclet
938b633238 MOHAWK: Fix playing sound from aliases in Myst ME.
svn-id: r55031
2010-12-24 11:04:25 +00:00
Bastien Bouclet
04b5163228 MOHAWK: Fix Myst's combination book pages drawing at the bottom of the screen.
svn-id: r55030
2010-12-24 10:52:02 +00:00
Lars Skovlund
a03a3fd411 Fix code formatting
svn-id: r55026
2010-12-23 14:05:16 +00:00
Lars Skovlund
5b2071487f SCI: Unbreak script loading on big-endian machines. Thanks to [md5] and wjp.
svn-id: r55025
2010-12-23 14:03:58 +00:00
Yotam Barnoy
ee2b1092ab PLUGINS: switched plugin manager to inheritance rather than #defines
The reason for this was that I found issues where the wrong functions were called in EngineManager for single plugin operation. Rather than inserting more messy #defines, I preferred to change the PluginManager to use virtual functions, which also makes EngineManager simpler.

svn-id: r55024
2010-12-23 13:38:37 +00:00
Filippos Karapetis
401a8c355d SCI: Some initial work on the sound of robot videos (doesn't work yet, seems to be a problem with the encoding of the customized SOL audio files in robot videos)
svn-id: r55023
2010-12-23 13:11:10 +00:00
Filippos Karapetis
f891323f1f SCI: Fixed typo
svn-id: r55022
2010-12-23 12:54:47 +00:00
Arnaud Boutonné
8cc28b218c HUGO: Suppress two obsolete defines
svn-id: r55020
2010-12-22 23:11:41 +00:00
Arnaud Boutonné
18d3e58825 HUGO: Suppress some obsolete volume related variables
svn-id: r55019
2010-12-22 22:56:42 +00:00
Arnaud Boutonné
6d30449d5a HUGO: Implement syncSoundSettings()
svn-id: r55018
2010-12-22 22:25:52 +00:00
Filippos Karapetis
8e26ae0f92 SCI: Fixed bug #3037618 - "PQ2 : Restoring in Scuba Van causes Parser Issues"
svn-id: r55017
2010-12-22 22:18:21 +00:00
David Turner
cc30fa378e MOHAWK: Add Framework getVar() code to Myst Credits Stack Script Parser.
svn-id: r55016
2010-12-22 21:08:26 +00:00
David Turner
5e92b6049b MOHAWK: Add Framework getVar() code to Myst D'ni Age Script Parser.
svn-id: r55015
2010-12-22 21:08:02 +00:00
Arnaud Boutonné
d9cc9d5800 HUGO: Replace function comments by doxygen comments
svn-id: r55014
2010-12-22 18:25:48 +00:00
Arnaud Boutonné
51e9cdb12c HUGO: Fix little bug in sound player
Mute/unmute sound and music at the same time

svn-id: r55013
2010-12-22 17:51:07 +00:00
Johannes Schickel
c309bbde28 HUGO: Slight formatting fix.
svn-id: r55008
2010-12-22 14:23:22 +00:00
Filippos Karapetis
1d98bf484e SCI: Also reset flags when resetting the video state
svn-id: r55007
2010-12-22 14:19:38 +00:00
Filippos Karapetis
f922c29002 SCI: Limit the speech/subtitle settings sync to SCI1.1 CD games only. Earlier
versions (like SCI1, e.g. KQ5CD and Jones CD) didn't have such settings

svn-id: r55006
2010-12-22 14:04:39 +00:00
Filippos Karapetis
a5db890260 SCI: Sync in-game speech/subtitle options with the ones from the ScummVM GUI.
- Obtain speech/subtitle options from the ScummVM GUI and set them in CD games.
- Also, set simultaneous speech and subtitles in games that support them
(currently SQ4 CD and Freddy Pharkas CD). There is no GUI option for setting
simultaneous speech and subtitles in Freddy Pharkas CD, so this is the only
current way of achieving this (unless the text speed slider inside the Freddy
Pharkas options window is repurposed - but that will require extensive changes)

svn-id: r55005
2010-12-22 13:58:28 +00:00
Filippos Karapetis
166f3f2dfd SCI2+: Set pictureCels to 0 after deleting them
svn-id: r55004
2010-12-22 13:52:25 +00:00
Filippos Karapetis
430dc10c49 SCI: VMD video related changes
- VMD videos are now properly started from the associated play subop of the 
kPlayVMD kernel call, and are now properly positioned on screen, and doubled
only if the games require them to be
- Added an enum for VMD video flags

svn-id: r55003
2010-12-22 13:51:35 +00:00
Filippos Karapetis
5a3ed29a4b SCI: Changed the check for NULL values inside kArray(Cpy) to only ignore such values in SCI3
svn-id: r55002
2010-12-22 13:17:19 +00:00
Henry Bush
ada3c01cc1 HUGO: Set some volume levels to get the MAME adlib emul working
svn-id: r55000
2010-12-22 09:22:14 +00:00
Henry Bush
e20c902812 HUGO: Add music debug level, some cleanup when opening driver
svn-id: r54999
2010-12-22 09:09:38 +00:00
David Turner
1dde0156c2 MOHAWK: Add further getVar() code to Myst Channelwood Age Script Parser.
svn-id: r54998
2010-12-22 05:52:58 +00:00
David Turner
67cf6a0601 MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Channelwood Age Script Parser.
svn-id: r54997
2010-12-22 02:46:30 +00:00
David Turner
a87c52bdb0 MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Mechanical Age Script Parser.
svn-id: r54995
2010-12-21 23:18:38 +00:00
David Turner
43800ebf0c MOHAWK: Remove unused variables warnings introduced in r54982.
svn-id: r54994
2010-12-21 22:16:37 +00:00
Filippos Karapetis
42dc70bb83 - SCI: Added code to free the _baseVars value in SCI3 as well. Both free() operations
have been commented out for now, as MSVC complains about heap corruption in SCI3 games
- Code formatting fixes

svn-id: r54991
2010-12-21 21:18:25 +00:00
Filippos Karapetis
7680ed0be7 Added back the null check in kArray(cpy): it happens in SCI3
svn-id: r54990
2010-12-21 20:54:33 +00:00
Alyssa Milburn
372ede7904 MOHAWK: Support compound images (subimages)
These are images embedded in the bitmap data of another image; they
are used in CSTime and Zoombinis, at least. Thanks to clone2727 for
helping me puzzle this out.

svn-id: r54989
2010-12-21 18:16:37 +00:00
Alyssa Milburn
7e5ffb2bcf MOHAWK: Remove sound.h include from resource.h
svn-id: r54988
2010-12-21 18:16:20 +00:00
Alyssa Milburn
e97b2d25d1 MOHAWK: Allow DefaultCursorManager to use alternative tags
svn-id: r54987
2010-12-21 18:15:56 +00:00
Lars Skovlund
7b0760f1bc Make Object::_baseMethod a Common::Array. This is intended to clean up
the Object class, and it also plugs a leak.

svn-id: r54986
2010-12-21 15:36:27 +00:00
Lars Skovlund
f1cd95e462 Simplify SCI3 relocation code, also making it correct.
svn-id: r54985
2010-12-21 15:34:02 +00:00
Filippos Karapetis
3a14a7760e SCI: Fixed bug #3092115 - "ECOQUEST2: Initial text not cleared during ecorder intro"
svn-id: r54984
2010-12-21 15:31:59 +00:00
Filippos Karapetis
75649f8903 SCI: Reset the portrait bitmap to the "closed mouth" state, when skipping dialogs
in the Windows version of KQ6

svn-id: r54983
2010-12-21 07:53:34 +00:00
David Turner
3d3f7b09b2 MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Stoneship Script Parser.
svn-id: r54982
2010-12-21 01:09:14 +00:00
David Turner
b87bc18d22 MOHAWK: Add var getters for Myst Stellar Observatory Date-Time Display.
svn-id: r54980
2010-12-20 18:44:25 +00:00
Arnaud Boutonné
39fec99f26 HUGO: Fix several warnings reported by CppCheck
svn-id: r54979
2010-12-20 17:40:19 +00:00
Arnaud Boutonné
184d56df0a HUGO: Improve keyboard handling
- Handle keypad
- Fix 'QWERTY' only issue
- Suppress useless variable and parameter

svn-id: r54977
2010-12-20 17:25:58 +00:00
Filippos Karapetis
26dfb6affa SCI: Fixed bug #3041153 - "SCI Fanmade Games: Message window glitch"
The left window dimension adjustment (rev #48772) has been moved from
GfxPorts::setOrigin() into GfxPorts::addWindow(), as the updated dimension is
later used when filling the contents of the window (apparent in some fan made
games)

svn-id: r54976
2010-12-20 15:30:31 +00:00
Filippos Karapetis
4b836d611f SCI: Fixed bug #3037945 - "PQ3 : Graphical Glitch with White Mercedes on Freeway"
svn-id: r54975
2010-12-20 12:21:18 +00:00
Filippos Karapetis
d3340b0d0c SCI: Commented out unused signal flags
svn-id: r54974
2010-12-20 12:19:28 +00:00
Bastien Bouclet
9c23440ae4 MOHAWK: Fix 2 crashers with the Myst imager (selecting 00 and playing the moutain video).
svn-id: r54973
2010-12-20 07:58:45 +00:00
David Turner
3cc456bf2a MOHAWK: Fixed Valgrind Error in Myst When Selecting 0 in Imager Code (Myst Card 4709)
Reworked MystGraphics::copyImageSectionToScreen() :
Added clipping of width and height within src surface dimensions.
Improved function readability.

svn-id: r54972
2010-12-20 04:29:53 +00:00
Arnaud Boutonné
9fd43ba6cc HUGO: Add god mode to H1 Dos and H2 Dos
svn-id: r54970
2010-12-20 00:18:03 +00:00
Arnaud Boutonné
8a1f628d37 HUGO: Fix case bug in God Mode
svn-id: r54969
2010-12-19 23:44:53 +00:00
Bastien Bouclet
da53b85498 MOHAWK: Implement Myst opcodes 109, 117, 118 and 208 : dock forechamber imager
svn-id: r54965
2010-12-19 17:36:36 +00:00
Arnaud Boutonné
5e9002a4aa HUGO: Implement setBackgroundColor()
svn-id: r54963
2010-12-19 16:07:03 +00:00
Filippos Karapetis
91bee3e7b0 SCI: Added another English version of QFG3 (bug #3125559)
svn-id: r54962
2010-12-19 15:48:51 +00:00
Henry Bush
49d529cb7a GROOVIE: Add two new t7g detection entries, one from bug tracker, one from me
svn-id: r54961
2010-12-19 08:56:42 +00:00
Bastien Bouclet
c2bae4b35b MOHAWK: Add 2 Myst var getter / setters
svn-id: r54960
2010-12-19 07:26:34 +00:00
Bastien Bouclet
c3fdcef751 MOHAWK: Fix Myst courtyard boxes. Hover areas entering / leaving is now handled separatly from other resources since the former have to get events even when they are disabled.
svn-id: r54959
2010-12-19 07:02:02 +00:00
David Turner
e9e09d297c MOHAWK: Added further var getter and setter code for Myst Island.
This fixes Stellar Observatory Lights.

svn-id: r54958
2010-12-19 02:27:09 +00:00
David Turner
fd5b8b7fa0 MOHAWK: Add some missing var getters for Myst Island.
svn-id: r54957
2010-12-18 22:12:36 +00:00
Bastien Bouclet
3e31ed6d98 MOHAWK: Myst sound rework, part 2
svn-id: r54954
2010-12-18 13:13:49 +00:00
Bastien Bouclet
c870bf22d1 MOHAWK: Separate background sound handling from other sounds for Myst. Allow the scripts to change the background sound volume.
svn-id: r54953
2010-12-18 13:12:56 +00:00
Bastien Bouclet
03da126ec7 MOHAWK: Implement Myst opcodes 157, 161 and 162: Rocket piano
svn-id: r54949
2010-12-18 08:07:16 +00:00
Arnaud Boutonné
222d2809e9 HUGO: little code cleanup
svn-id: r54948
2010-12-17 23:12:36 +00:00
Bastien Bouclet
7daea87e61 MOHAWK: Yet more Myst vertical alignment / clipping fixes.
Fixes the boiler wheels drawing incorrectly. Fixes the rocket piano's leftmost key drawing too high. Fixes the timeclock controls beeing misaligned.

svn-id: r54947
2010-12-17 18:18:52 +00:00
Matthew Hoops
8ec9f96d54 MOHAWK: Remove global construction of _viewport
svn-id: r54945
2010-12-17 14:36:32 +00:00
Bastien Bouclet
c441539bb0 MOHAWK: Change resolution to 544x332 to match the original.
This fixes the vertical alignment issues, and graphic corruption on some cards.

svn-id: r54943
2010-12-17 11:31:08 +00:00
Bastien Bouclet
151d180e55 MOHAWK: Implement Myst opcodes 128, 168, 216, 217, 304, 305, and 153 to 156 : Giant tree. Channelwood is now accessible from Myst.
svn-id: r54941
2010-12-17 07:44:59 +00:00
David Turner
e3eddf32e9 MYST: Add Var Getter For Myst Courtyard Box Variables.
svn-id: r54937
2010-12-16 20:52:18 +00:00
Alyssa Milburn
3d81fc1522 MOHAWK: Move readString into the LB engine class
svn-id: r54935
2010-12-16 16:53:26 +00:00
Bastien Bouclet
68e32de097 MOHAWK: Implement Myst opcodes 146, 149, 150, 150 : Minimal boiler
svn-id: r54934
2010-12-16 16:13:50 +00:00
Bastien Bouclet
24808d49eb MOHAWK: Added the "resources" command to Myst's debug console, which lists the resources in the current card.
Allow the "drawRect" debug command to take a resource id as a parameter, to draw the resource's bounding rect.

svn-id: r54933
2010-12-16 16:12:38 +00:00
Bastien Bouclet
1b267f5281 MOHAWK: Implement Myst opcodes 147, 169, 182 : Cabin match
svn-id: r54931
2010-12-16 08:03:19 +00:00
Matthew Hoops
98a2bc8a9a VIDEO: Remove the need to call updateAudioBuffer() externally for QuickTime
svn-id: r54929
2010-12-16 01:49:29 +00:00
Matthew Hoops
1ead0d8436 VIDEO: Make VideoDecoder::getPalette() return a const byte pointer
svn-id: r54928
2010-12-16 01:41:11 +00:00
Matthew Hoops
375f32fbe9 VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
svn-id: r54927
2010-12-16 01:35:13 +00:00
Arnaud Boutonné
a2bb676c19 HUGO: Fix pathfinding bug in 'bridge' screen (H3 Dos)
svn-id: r54926
2010-12-15 23:52:24 +00:00
Filippos Karapetis
aa15235858 SCI: Slight cleanup
svn-id: r54925
2010-12-15 23:35:21 +00:00
David Turner
58b7295193 SCI: Fixed View Cel RLE Decoding when RLE Code 0x40 is used (Corrects Bug #3135872 "LSL1VGA: "Pause Game" problem")
In the copy case, the runLength can be up to 127, not 64 i.e. the LSB of the RLE code forms part of the runLength.

svn-id: r54924
2010-12-15 22:36:55 +00:00
Arnaud Boutonné
76eb9d7f64 HUGO: Clean-up, move MidiPlayer class definition to .h file
svn-id: r54923
2010-12-15 20:37:09 +00:00
Arnaud Boutonné
ca547118e3 HUGO: Ensure F6 (inventory) is only active when appropriate
svn-id: r54922
2010-12-15 20:11:59 +00:00
Arnaud Boutonné
f05f5348b7 HUGO: No longer shift down inventory by 8 pixels
svn-id: r54920
2010-12-15 07:35:20 +00:00
David Turner
f2205a5a01 SCI: Close Memory Leaks in SCI Resource Loading, reported by Valgrind.
svn-id: r54916
2010-12-14 23:30:22 +00:00
Matthew Hoops
e88fcee057 MOHAWK: Add support for DOS bitmaps (thanks to fuzzie for the EGA planar code)
svn-id: r54913
2010-12-14 22:59:39 +00:00
Matthew Hoops
0c677aacde MOHAWK: Add support for DOS v2 archives (CSWorld Deluxe)
svn-id: r54912
2010-12-14 22:58:51 +00:00
Bastien Bouclet
d4ce603361 MOHAWK: Rework Myst GFX updates
- Initial card state is drawn to the back buffer
- Script driven updates are drawn to the front buffer
Allows opcode 28 (copy back buffer to screen) and opcodes 29/33 (copy image to screen / back buffer) to work properly.
Fixes among others the generator room lights, and the matchbox.

svn-id: r54907
2010-12-14 19:11:16 +00:00
Bastien Bouclet
c2e48f5c08 MOHAWK: Implement Myst opcodes 122 to 124 : Cabin safe handle
svn-id: r54905
2010-12-14 06:42:00 +00:00
Arnaud Boutonné
a90fdce46d HUGO: Add splash screen in H2 and H3 Win
svn-id: r54902
2010-12-13 21:08:52 +00:00
Alyssa Milburn
0082f8ec8b MOHAWK: parse LB subentries correctly
svn-id: r54901
2010-12-13 20:19:34 +00:00
Arnaud Boutonné
51685f26dc TOOL: Fix palette bug in H3 Dos (when leaving the cave)
svn-id: r54898
2010-12-13 00:20:45 +00:00
Alyssa Milburn
03777f1867 MOHAWK: Use named constants for LB control modes
svn-id: r54897
2010-12-13 00:03:15 +00:00
Alyssa Milburn
679f67b2e7 MOHAWK: Use named constants for LB timing modes
svn-id: r54896
2010-12-12 23:59:46 +00:00
Alyssa Milburn
0650934337 MOHAWK: Handle chained LB commands
svn-id: r54895
2010-12-12 23:11:23 +00:00
Alyssa Milburn
1d61c9a508 MOHAWK: Handle kLBGlobalDisable
svn-id: r54893
2010-12-12 23:00:46 +00:00
Alyssa Milburn
c089fb22cd MOHAWK: More work on LB script parsing
svn-id: r54892
2010-12-12 23:00:15 +00:00
Bastien Bouclet
896316a96a MOHAWK: Fix freeze after tower rotation. Fix opcode 121 : cabin safe digit change.
svn-id: r54889
2010-12-12 19:28:43 +00:00
Alyssa Milburn
467b30f1a2 MOHAWK: Refactor/improve LB script entry parsing
svn-id: r54888
2010-12-12 19:01:46 +00:00
Alyssa Milburn
a97c90c903 MOHAWK: Always run kLBEventMouseUpIn, for now
svn-id: r54887
2010-12-12 19:01:27 +00:00
Alyssa Milburn
4d5ab0cff2 MOHAWK: Handle LB load phase
svn-id: r54886
2010-12-12 19:01:10 +00:00
Alyssa Milburn
9e483b79ce MOHAWK: Skip CD-ROM titles in LB paths
svn-id: r54885
2010-12-12 19:00:53 +00:00
Matthew Hoops
26c3705152 MOHAWK: Silence warnings
svn-id: r54884
2010-12-12 18:55:27 +00:00
Bastien Bouclet
c6887d0404 MOHAWK: Implement Myst opcodes 106, 108 and 202 : tower rotation
svn-id: r54883
2010-12-12 18:41:15 +00:00
Nicola Mettifogo
d19d9991b2 PARALLACTION: do not skip commands on Examine zones if there is no text to show. This fixes bug #3135782.
svn-id: r54882
2010-12-12 11:43:23 +00:00
Arnaud Boutonné
2bbe59ad8d HUGO: Replace PROMPT box by YESNO box in H3 Dos
This only applies to the old man dialog. 
This makes H3 Dos completable.

svn-id: r54881
2010-12-12 08:37:19 +00:00
Arnaud Boutonné
c428cfbb85 HUGO: Fix "mouse" bug in H3 Dos, TPS tuning
- Fix "mouse" bug in H3 DOS. Game is still not completable
- Use variable normal TPS, as it was slightly different in
some DOS versions

svn-id: r54880
2010-12-12 07:40:00 +00:00
Nicola Mettifogo
c4e4f7dc86 PARALLACTION: parse command lists for kNoneType zones, even if defined after TYPE markers. This fixes bug #3131769.
svn-id: r54879
2010-12-12 07:17:13 +00:00
Alyssa Milburn
d88476e677 MOHAWK: parse LB script named targeting modes
svn-id: r54874
2010-12-12 00:18:49 +00:00
Florian Kagerer
56f98a8574 SCUMM/FM-TOWNS: hopefully fix bug #1463434
o5_verbOps() case 9 (SO_VERB_NEW) works slightly different in SCUMM 3 FM-TOWNS (I don't know about DOS).
This should fix the issue with the broken key shortcuts.
Old savegames won't be fixed, though (since the broken verb states will be restored from the save file).

svn-id: r54872
2010-12-11 23:51:50 +00:00
Alyssa Milburn
85c8960d8b MOHAWK: Improve LB script parsing
svn-id: r54871
2010-12-11 23:48:29 +00:00
Alyssa Milburn
7c97a86a9a MOHAWK: Add size check when reading LB messages
svn-id: r54870
2010-12-11 19:53:44 +00:00
Alyssa Milburn
60c844efd3 MOHAWK: Add yet more fallbacks for LB page loading
svn-id: r54869
2010-12-11 19:53:28 +00:00
Matthew Hoops
b1e3b48418 MOHAWK: Fix some Myst ME cards that store PICT images in WDIB resources (see myst 4013)
svn-id: r54867
2010-12-11 18:38:27 +00:00
Bastien Bouclet
36851d4eb4 MOHAWK: Implement Myst opcodes 113, 114, 198 : Vault open / close
In progress tower rotation

svn-id: r54866
2010-12-11 17:00:22 +00:00
Matthew Hoops
43aa47dd31 MOHAWK: Fix loading with non-Selenitic red/blue pages in hand
svn-id: r54865
2010-12-11 16:55:25 +00:00
Bastien Bouclet
adc7dc0785 MOHAWK: Fix using wrong coordinates in Myst opcode 28, restoreDefaultRect
svn-id: r54864
2010-12-11 12:59:56 +00:00
Bastien Bouclet
7419d8c087 MOHAWK: Implement Myst opcodes 116, 186, 188, 189, clock tower time controls
svn-id: r54863
2010-12-11 11:40:12 +00:00
Bastien Bouclet
2a8c1ab13a MOHAWK: Change Myst fireplace and green book to use correct vars
svn-id: r54859
2010-12-11 08:33:39 +00:00
Matthew Hoops
eefb3ee787 MOHAWK: Fix another typo (heigth -> height)
svn-id: r54858
2010-12-10 20:09:05 +00:00
Matthew Hoops
9aa7f2e7f0 MOHAWK: Fix a typo
svn-id: r54857
2010-12-10 20:05:38 +00:00
Bastien Bouclet
107a2a25aa MOHAWK: Implement Myst opcode 115, give page to book
svn-id: r54856
2010-12-10 19:51:00 +00:00
Arnaud Boutonné
f8fa960cfd HUGO: Enable the use of the icon based inventory
In Win versions, F6 now opens the directory. Not perfect yet... 

svn-id: r54853
2010-12-10 07:08:54 +00:00
Arnaud Boutonné
e6366d4972 HUGO: Fix bug in HUGO.DAT loading
svn-id: r54852
2010-12-10 07:03:24 +00:00
Matthew Hoops
6bc638a54b MOHAWK: Fix the Myst drawImage debug command
svn-id: r54850
2010-12-10 02:10:18 +00:00
Alyssa Milburn
4393ef1bd5 MOHAWK: Fix LBPaletteItem to handle variable-size palettes
svn-id: r54846
2010-12-09 21:25:21 +00:00
Alyssa Milburn
0257f2a217 MOHAWK: Implement LBMovieItem
svn-id: r54845
2010-12-09 21:25:05 +00:00
Alyssa Milburn
eecc2bcb12 MOHAWK: Don't redraw the screen every frame in LB
svn-id: r54844
2010-12-09 21:24:46 +00:00
Alyssa Milburn
32ed3b3582 MOHAWK: Allow background videos to be played/manipulated with resource handles
svn-id: r54843
2010-12-09 21:24:31 +00:00
Alyssa Milburn
8be4da02f6 MOHAWK: Add BCOD resource type
svn-id: r54842
2010-12-09 21:24:12 +00:00
Arnaud Boutonné
9a117e3eca HUGO: Hopefully fix overlapping memory regions
Thanks Digitall for debugging that

svn-id: r54835
2010-12-08 21:18:48 +00:00
Arnaud Boutonné
efc5ab5398 HUGO: Fix an episode name and several picture directories
svn-id: r54834
2010-12-08 20:51:44 +00:00
Alyssa Milburn
5db43d641e MOHAWK: Use named constants for LB opcodes, add warnings when unimplemented
svn-id: r54833
2010-12-08 15:45:40 +00:00
Alyssa Milburn
8241b1b321 MOHAWK: Implement/stub more LB 3 notifications
svn-id: r54832
2010-12-08 15:45:22 +00:00
Arnaud Boutonné
e0a6ecaca9 TOOLS: Fix the "Mouse text" crash in Hugo
svn-id: r54831
2010-12-08 07:18:38 +00:00
Sven Hesse
08262d90fb GOB: Fix byte *getFile() for loose files
A very, very stupid error on my part :P

svn-id: r54826
2010-12-07 23:55:27 +00:00
Alyssa Milburn
d571279d99 MOHAWK: Handle LB event-run opcodes
svn-id: r54825
2010-12-07 22:59:16 +00:00
Alyssa Milburn
1c21ba1fc0 MOHAWK: Run kLBEventMouseTrackIn in handleMouseDown
svn-id: r54824
2010-12-07 22:59:01 +00:00
Alyssa Milburn
fecaa5655e MOHAWK: Rename LBAction to LBEvent, fix event targeting
svn-id: r54823
2010-12-07 22:58:45 +00:00
Matthew Hoops
0d59c33b35 MOHAWK: Default to the main cursor if no cursor hints are present; fixes a couple cards
svn-id: r54816
2010-12-07 19:41:49 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Matthew Hoops
ce0f0bd056 MOHAWK: Allow loading both original and ME saves in any version of Myst
svn-id: r54814
2010-12-07 18:33:58 +00:00
Matthew Hoops
2f86db50ef MOHAWK: Fix loading from the launcher in Myst
svn-id: r54813
2010-12-07 18:21:05 +00:00
Matthew Hoops
d06a355341 MOHAWK: Further limit where Myst can be saved
svn-id: r54812
2010-12-07 18:15:07 +00:00
Max Horn
9a0c20a45f TINSEL: Improve support for DW mac demo (see bug #3110936)
svn-id: r54811
2010-12-07 18:00:18 +00:00
Matthew Hoops
20de55129f MOHAWK: Start Myst back on the dock again
svn-id: r54810
2010-12-07 17:56:08 +00:00
Filippos Karapetis
fdd2d980c6 SCI: Bumped up the save game version for rev #54805
Initially, I thought that older ScummVM versions will work with these saved games.
However, they will probably crash when trying to load saved games after rev #54805,
as the heap is reset when loading, and the system strings segment is no longer
initialized (thanks wjp).

svn-id: r54809
2010-12-07 16:49:53 +00:00
Matthew Hoops
a8c8172315 MOHAWK: Set the default cursor upon loading a game in Myst
svn-id: r54808
2010-12-07 01:58:18 +00:00
Matthew Hoops
a789ee11c2 MOHAWK: Implement loading to different ages in Myst
svn-id: r54807
2010-12-07 01:37:43 +00:00
Matthew Hoops
65f218dce0 SCI: Silence warnings
svn-id: r54806
2010-12-07 01:12:48 +00:00
Filippos Karapetis
de2ef2edc0 SCI: Removed the system strings code and replaced it with a much more simplified version, thus greatly simplifying handling of system strings
svn-id: r54805
2010-12-07 00:47:05 +00:00
David Turner
8ca0b867e0 HUGO: Fixed Valgrind Errors and Segfault when hugo.dat is missing.
svn-id: r54804
2010-12-06 23:15:25 +00:00
Matthew Hoops
edf4b1926b MOHAWK: Rewrite the Myst save/load code to use Common::Serializer and name all the variables
svn-id: r54803
2010-12-06 21:10:12 +00:00
Bastien Bouclet
fb854b1483 MOHAWK: Fix Myst library books, fireplace combination book, and bookcase transform animation.
svn-id: r54802
2010-12-06 20:29:45 +00:00
Arnaud Boutonné
077102f8db HUGO: Fix crash in H3 (Swinger display name)
svn-id: r54801
2010-12-06 20:22:53 +00:00
Filippos Karapetis
813d96ec20 MOHAWK: Silenced warning
svn-id: r54800
2010-12-06 19:58:22 +00:00
Matthew Hoops
c2ec6020e3 SCI: Fix uninitialized reads (and therefore, GK1)
svn-id: r54799
2010-12-06 19:37:19 +00:00
Alyssa Milburn
99bc2c7a28 MOHAWK: fix LBLiveTextItem::handleMouseDown
svn-id: r54798
2010-12-06 13:50:11 +00:00
Alyssa Milburn
402831b8ca MOHAWK: finish kLBSetPlayInfo reading
svn-id: r54797
2010-12-06 13:49:56 +00:00
David Turner
dda67d651b HUGO: Fixed ReadPCX Memory Leak
freeObjects now works correctly.

svn-id: r54796
2010-12-06 01:56:42 +00:00
Alyssa Milburn
5ee7a44cf6 MOHAWK: fix kLBNotifyChangeMode where there's no mode change
svn-id: r54795
2010-12-05 23:02:12 +00:00
Alyssa Milburn
8dc80912f3 MOHAWK: implement kLBNotifyChangeMode
svn-id: r54794
2010-12-05 22:58:13 +00:00
Alyssa Milburn
237925e5fd MOHAWK: improve LBPaletteItem support
svn-id: r54793
2010-12-05 22:11:07 +00:00
Alyssa Milburn
7c9dc9f117 MOHAWK: handle LB 2/3 kLBNotifyChangeMode, kLBActionNotified matching
svn-id: r54792
2010-12-05 22:10:50 +00:00
Alyssa Milburn
433a10e773 MOHAWK: handle -1 phase for LB 2/3 items
svn-id: r54791
2010-12-05 22:10:20 +00:00
Alyssa Milburn
899f6a9e88 MOHAWK: remove 'internal error' errors
svn-id: r54790
2010-12-05 22:10:00 +00:00
David Turner
d3719a8192 HUGO: Partial Fix For Leaks from ReadPCX()
The shutdown() call has been reinstated, and freeObjects() now works without a double free and thus segfault, but this still misses some allocated resources...

svn-id: r54789
2010-12-05 22:02:04 +00:00
David Turner
7adecddbfc HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns.
svn-id: r54787
2010-12-05 21:52:42 +00:00
Matthew Hoops
669ad3d217 MOHAWK: Silence a warning
svn-id: r54779
2010-12-05 17:23:57 +00:00
Alyssa Milburn
f84b027e50 MOHAWK: read and use LB 2/3 conditions/commands
svn-id: r54778
2010-12-05 16:19:52 +00:00
Alyssa Milburn
9e6fe3bd88 MOHAWK: add runCommand/checkCondition routines for LB 2/3
svn-id: r54777
2010-12-05 16:19:35 +00:00
Bastien Bouclet
24a0b50ac3 MOHAWK: Implement Myst opcodes 158 to 166: Rocket sliders + check lever + link book
svn-id: r54776
2010-12-05 08:36:41 +00:00
Matthew Hoops
9a8539e1d8 MOHAWK: Fix tMOV resources at the end of the file list (thanks, fuzzie)
svn-id: r54774
2010-12-05 00:45:21 +00:00
Alyssa Milburn
4a8d68f3d3 MOHAWK: implement setGlobalEnable and setGlobalVisible for LB
svn-id: r54771
2010-12-04 23:48:31 +00:00
Alyssa Milburn
e37257fe39 MOHAWK: fix LB menu mode with subpages
svn-id: r54770
2010-12-04 23:48:14 +00:00
Alyssa Milburn
5928532f0b MOHAWK: fix LiveText items without phrases
svn-id: r54769
2010-12-04 23:47:59 +00:00
Alyssa Milburn
8ed8adeeba MOHAWK: tidy up LB hardcoded UI click functions, add poetry mode support
svn-id: r54768
2010-12-04 23:47:43 +00:00
Bastien Bouclet
52217fa434 MOHAWK: Implement Myst opcodes 120 and 210, rocket power generator
svn-id: r54759
2010-12-04 11:54:08 +00:00
Bastien Bouclet
4a8fc942b7 MOHAWK: Give meaningful names to the game global vars and selenitic vars
svn-id: r54758
2010-12-04 09:26:44 +00:00
Lars Persson
9163b9e032 LURE : Fix for ID: 3030143 Unexpected game cursor behavior. Always refresh menu and screen when mouse is moved.
svn-id: r54747
2010-12-03 09:23:56 +00:00
Sven Hesse
4b7af0244f GOB: Make drawYUV() more clear
(It's still wrong though :P)

svn-id: r54744
2010-12-02 21:40:17 +00:00
Alyssa Milburn
27799e354e MOHAWK: move shared setPalette/copyImage routines into GraphicsManager
svn-id: r54743
2010-12-02 21:25:15 +00:00
Alyssa Milburn
eb729b5f2e MOHAWK: implement kLBAnimOpDelay
svn-id: r54742
2010-12-02 21:24:55 +00:00
Bastien Bouclet
bf82f16982 MOHAWK: Implement Myst opcodes 141 to 143, circuit breakers
svn-id: r54741
2010-12-02 21:16:39 +00:00
Bastien Bouclet
a9388af996 MOHAWK: Fix resource type 12
svn-id: r54740
2010-12-02 21:15:47 +00:00
Johannes Schickel
c14399c229 SCI: Slight formatting fix.
svn-id: r54737
2010-12-02 17:03:21 +00:00
Filippos Karapetis
4fe03f1b66 SCI: Enabled the GUI option to play speech and show subtitles simultaneously in SQ4CD
svn-id: r54736
2010-12-02 13:37:39 +00:00
Lars Skovlund
0ac28d1fbf Disable error message regarding RESOURCE.AUD/.SFX for now.
svn-id: r54735
2010-12-02 13:29:49 +00:00
Matthew Hoops
41ad4a431d MOHAWK: Stub off various Myst opcodes
svn-id: r54731
2010-12-02 04:01:07 +00:00