Commit Graph

18119 Commits

Author SHA1 Message Date
Filippos Karapetis
928bcdbe09 SCI: Some changes to the fallback detector (sync with branch 1.2.0)
Added more graceful handling of the case where SCI32 isn't built in and the
user tries to detect or start a SCI32 game

svn-id: r52789
2010-09-18 09:47:18 +00:00
Arnaud Boutonné
1e9e8cd64a HUGO: Fix crash in the first screen of H1 Dos
- Fix crash in the first screen of H1 Dos
- Clean up

svn-id: r52787
2010-09-17 22:40:53 +00:00
Johannes Schickel
9f273b31aa SCI: Fix compilation on AmigaOS.
svn-id: r52784
2010-09-17 21:28:24 +00:00
Johannes Schickel
eb400c8787 SCI: Add CMS driver for SCI1-SCI1.1.
svn-id: r52781
2010-09-17 20:03:20 +00:00
Johannes Schickel
cc764cb8ec SOUND: Move CMS emulator to sound/softsynth.
svn-id: r52778
2010-09-17 20:02:03 +00:00
Johannes Schickel
b8e4f0b135 SCI: Proper initialization in MidiPlayer's constructor.
svn-id: r52768
2010-09-17 18:03:12 +00:00
Arnaud Boutonné
be569dad40 GOB: Add detection for polish gob2 and gob3
MD5s provided in bug #3067489

svn-id: r52767
2010-09-17 17:52:17 +00:00
Johannes Schickel
04810a89f2 SCI: Use spaces for indentation for consistency.
I think the code uses this in this particular instance to have the comments on
top of the various tables aligned with the actualy entries, so I decided not
to make this conform to our guidelines, but rather to the rest of the style
used in this file.

svn-id: r52766
2010-09-17 16:04:02 +00:00
Filippos Karapetis
8bf6777163 SCI2: some very early work on kSetShowStyle
svn-id: r52764
2010-09-17 15:19:18 +00:00
Johannes Schickel
c6b85c2a87 I18N: Use a String instead of a char buffer.
This should improve r52751, since String does automatic memory handling, thus
no more buffer overflows should by possible by having a too large translated
string.

svn-id: r52758
2010-09-17 12:54:00 +00:00
Filippos Karapetis
88e7bb4995 SCI: Removed some unnamed selector access in the workarounds. Fixes the regression
in the demo of EcoQuest, when opening a window

svn-id: r52757
2010-09-17 12:37:59 +00:00
Arnaud Boutonné
c7b38c4510 HUGO: Fix H1 DOS initialization
Fix a bug in hugo.dat loading and initialize properly Hugo1 DOS

svn-id: r52755
2010-09-16 23:03:03 +00:00
Thierry Crozat
44610eb037 I18N: fix a buffer size issue with translated save/load strings in AGOS
svn-id: r52751
2010-09-16 19:50:15 +00:00
Neeraj Kumar
5c4f7ba267 TESTBED: fixed detection
svn-id: r52747
2010-09-16 12:45:09 +00:00
Torbjörn Andersson
df91686a36 AGI: Initialise PCjr emulator channels on creation
Because chanGen() gets called very early, and sometimes it crashes
ScummVM as soon as the game starts. Actually, it's probably enough to
initialise a couple of fields in _tchannel[], but I figured it
couldn't hurt to clear all of _channel[] and _tchannel[].

svn-id: r52741
2010-09-16 04:43:49 +00:00
Thierry Crozat
057056b8d3 I18N: Add translation for load/save success or failure messages
Also improve and update the french translation.

svn-id: r52740
2010-09-15 23:25:46 +00:00
Johannes Schickel
b2c57117fd DRACI: Initialize MIDI channel volume properly.
This fixes bug #3067148 "DRACI: Volume range not respected". It seems Draci's
MIDI files do not setup the channel volume properly before using the channels,
but rely on having the maxed out. Since formerly the channel volume was
initialized to 255, it caused the channel volume to be zero in case the user
used 128 for his volume settings (128*255/255=128, and MIDI volume goes from
0-127).

svn-id: r52738
2010-09-15 22:30:00 +00:00
Johannes Schickel
b9a74a7915 KYRA: Send GM reset on startup.
svn-id: r52737
2010-09-15 22:00:43 +00:00
Johannes Schickel
6588398ce6 MIDI: Send a reset MIDI device signal on startup.
This is currently done in the engine code. I adapted AGI, AGOS, DRACI,
GROOVIE, LURE, MADE, QUEEN, SAGA, SKY, TINSEL and TOUCHE to send a reset
device on startup. The sound output still works fine (started up a game
from every engine), so this should hopefully not introduce any regressions.

As far as I can tell it seems that SCUMM does send a proper device reset, so
I did not touch it. KYRA only sends a proper reset for MT-32 currently. I am
not sure about SCI though.

This fixes bug #3066826 "SIMON: MIDI notes off when using RTL after SCI".

svn-id: r52736
2010-09-15 22:00:20 +00:00
Matthew Hoops
bb5db4aa3b MOHAWK: Finish implementation of the Riven Marble Puzzle
You can now place the marbles and pressing the button will now only set the power to on if the marbles are in the correct positions.

svn-id: r52735
2010-09-15 20:28:42 +00:00
Arnaud Boutonné
47c46cdfde GOB: Add detection for Gob1 CD Polish
svn-id: r52734
2010-09-15 19:00:28 +00:00
Filippos Karapetis
6cf1a4d537 SCI: Some very early work on kRemapColors (just comments/observations for now)
svn-id: r52733
2010-09-15 15:21:59 +00:00
Filippos Karapetis
c74c206f05 SCI2: adding a stub for the kPurge memory function
kPurge is specific to the SSCI memory manager. We have our own memory manager and
garbage collector, thus we ignore these calls

svn-id: r52732
2010-09-15 12:14:34 +00:00
Willem Jan Palenstijn
c81f009e8f SAGA: Fix audio flags for VOC sounds
This is a regression from r43470 and fixes the speech in the intro.
Bug #3065113.

svn-id: r52727
2010-09-14 22:16:31 +00:00
Johannes Schickel
f742d2ecc5 SCI: Some constification.
svn-id: r52726
2010-09-14 21:53:22 +00:00
Arnaud Boutonné
2315907de5 HUGO: Rename some classes for better readibility
svn-id: r52720
2010-09-14 05:32:20 +00:00
Travis Howell
f7fa335a1b AGI: Fix compilation.
svn-id: r52719
2010-09-14 00:47:26 +00:00
Johannes Schickel
efc13c42b2 AGI: Improve support for MT-32 in the MIDI output.
Formerly the AGI MIDI code did not setup the channel mask properly, in case
"native_mt32" was set. This resulted in one missing channel (i.e. channel 0),
since the MT-32 only responds to data for channels 1-9.

svn-id: r52718
2010-09-14 00:44:41 +00:00
Johannes Schickel
70245181f1 SCUMM: Fix for bug #3064655 "Restart with F8 key not working properly".
svn-id: r52715
2010-09-13 23:35:55 +00:00
Filippos Karapetis
ce657cc0dc SCI: Changed the script protection code to be a hack for Hoyle 3 only
This shouldn't be happening normally, but apparently it does, which would indicate
a potential issue with the object locking code

svn-id: r52703
2010-09-13 13:47:56 +00:00
Filippos Karapetis
e242814990 SCI: Proper fix for bug #3038837 - "HOYLE3: EGA/VGA Crashes" and some cleanup
System scripts (i.e. 0 and 900-999) are now protected and never destroyed during a
game

svn-id: r52702
2010-09-13 13:17:55 +00:00
Johannes Schickel
c6afdbdca3 KYRA3: Add some sound debug output.
svn-id: r52699
2010-09-13 12:19:19 +00:00
Arnaud Boutonné
4ac61cc290 HUGO: Fix GCC warning (Thanks MSVC for not showing those)
svn-id: r52698
2010-09-12 23:10:31 +00:00
Arnaud Boutonné
597eed0266 HUGO: Use fonts in HUGO.DAT for the DOS version
This is only a temporary solution, to be replaced by a proper .FON 
handling. Hugo 2 and 3 (dos) now start.

svn-id: r52697
2010-09-12 22:59:32 +00:00
Martin Kiewitz
c447b99d4e SCI: patching cleanup (+orgbyte/adjust command)
the new commands were meant for castle/brain hangman puzzle patch, but the patch didn't work well, so I removed it. Still the commands could/should come in handy

svn-id: r52695
2010-09-12 22:09:01 +00:00
Thierry Crozat
c073369f0a i18n: Translate Save and Restore buttons in SCI engine
svn-id: r52694
2010-09-12 21:56:37 +00:00
Filippos Karapetis
b6488818a5 SCI: Bugfix for rev #52688.
We can't just set the lockers of script 0 to 1, as at that point
the objects associated with the script are marked to be deleted,
thus we need to reload the script

svn-id: r52693
2010-09-12 21:50:52 +00:00
Thierry Crozat
fc11604e73 i18n: Translate the Save and Load buttons in myst and riven
svn-id: r52692
2010-09-12 21:35:49 +00:00
Thierry Crozat
61a111d82a i18n: Translate the Save and Load buttons in cruise
This fix Fix bug #3064918 GUI: Save and Load button not translated in
cruise

svn-id: r52691
2010-09-12 21:21:21 +00:00
Lars Skovlund
de6555663d Workaround for bug #038837: HOYLE3: EGA/VGA Crashes. Needs further
investigation and a proper fix post-release

svn-id: r52688
2010-09-12 18:13:14 +00:00
Matthew Hoops
161b2e6c79 TESTBED: Title capitalization and consistency
svn-id: r52686
2010-09-12 16:41:13 +00:00
Eugene Sandulenko
09ae34f4a4 TESTBED: Fix warnings
svn-id: r52685
2010-09-12 14:20:52 +00:00
Eugene Sandulenko
f7f5a561eb TINSEL: Remove unused variable
svn-id: r52684
2010-09-12 14:18:40 +00:00
Eugene Sandulenko
74118a7087 TESTBED: Merge gsoc2010-testbed branch
svn-id: r52681
2010-09-12 08:08:37 +00:00
Johannes Schickel
8bc65ccdc7 SCI: Add 1.2M version of KQ5 EGA (0.000.055).
svn-id: r52679
2010-09-11 21:23:22 +00:00
Lars Skovlund
b2be003722 SCI: In kFormat, handle arguments pointing to text resource 0 correctly.
Fixes Colonel's Bequest inventory formatting.

svn-id: r52676
2010-09-11 13:30:42 +00:00
Paul Gilbert
70fed746df TINSEL: Fix for #3032780 - Mute not respected in DW1
svn-id: r52674
2010-09-11 05:28:54 +00:00
Paul Gilbert
77c43f4d0d TINSEL: Fix for #3032778 - Mute not respected in DW2
svn-id: r52673
2010-09-11 04:32:53 +00:00
Arnaud Boutonné
a002c6f2fd GOB: Fix 2nd Hebrew protection screen in Fascination
Add a workaround to avoid a crash when failing the protection check
This only applies for the 2nd protection screen in the Hebrew version
which is used when the intro is not skipped

svn-id: r52672
2010-09-10 23:40:08 +00:00
Martin Kiewitz
446aa6be8a SCI: adding patch for castle brain cipher puzzle
reinitializes puzzle each time its shown. Fixes save/restore bug in that room, bug #3063510

svn-id: r52668
2010-09-10 20:14:37 +00:00
Filippos Karapetis
4e27844fef SCI: Some changes regarding resources
- Renamed the debug command "resource_size" to "resource_info", as it now provides
the location of where a specified resource is found (i.e. the resource.xxx file, or
the file name itself, if the resource is a patch)
- "duskdump" shows the original location of dumped resources
- loadResource() now shows the location of files that couldn't be loaded

svn-id: r52667
2010-09-10 14:07:32 +00:00
Walter van Niftrik
8bbbcfe5b8 SCI: Fix digital track regression from r52662.
svn-id: r52666
2010-09-09 23:01:51 +00:00
Filippos Karapetis
f446dbc8d5 SCI: Implemented the kPrintDebug SCI2.1 kernel function, used in Shivers (demo)
svn-id: r52665
2010-09-09 20:09:32 +00:00
Martin Kiewitz
a8afefd64b SCI: kIsOnMe is kOnMe, merge both into kIsOnMe
and map kOnMe for SCI2 to kIsOnMe, remove commented out hacks. fix signatures for those 2 functions, added TODO - someone should fix the SCI32 signatures

svn-id: r52664
2010-09-09 20:07:53 +00:00
Matthew Hoops
61adb401b2 SCI: Cleanup kWinHelp's dialog handling
Don't display the message twice and now we use the filename in the message.

svn-id: r52663
2010-09-09 18:34:27 +00:00
Walter van Niftrik
5eb0314e4c SCI: Fix last MIDI channel number for adlib driver
svn-id: r52662
2010-09-09 18:26:16 +00:00
Matthew Hoops
30080c7e07 MOHAWK: Add initial work on the Riven marble puzzle
The marbles are currently drawn, and you can pick them up, but you can not place them on the grid yet.

svn-id: r52661
2010-09-09 17:27:02 +00:00
Filippos Karapetis
746a1c5614 SCI: Kernel table changes
- Added the kernel names for all unimplemented kernel debug functions, and mapped
them all to kDummy, so that the kernel tables are correct and all kernel
functions are mapped (useful for debugging)
- Added a stub for kWinHelp (normally opens an external Windows help file), with
an appropriate dialog
- Added a stub for kWinDLL, which currently errors out on purpose (this needs to
be investigated, as it loads and uses external Windows DLLs)
- Readded kListIndexOf in kList (the signature was wrong when the previous commit
was made)

svn-id: r52660
2010-09-09 15:09:26 +00:00
Lars Skovlund
e51b0f6b56 SCI/Debugger: Show class names in addition to addresses in class_table output.
svn-id: r52657
2010-09-09 13:38:00 +00:00
Walter van Niftrik
8264bb704f SCI: Add getLastChannel() function to MidiPlayer class
svn-id: r52655
2010-09-09 12:46:46 +00:00
Lars Skovlund
065e19092a SCI: Support push and pop subfunctions in kMessage()
Glossary seems to work now.

svn-id: r52654
2010-09-09 12:44:34 +00:00
Filippos Karapetis
16a7046519 SCI: Changed the error message when execute_method() references an invalid export
svn-id: r52653
2010-09-09 12:01:04 +00:00
Filippos Karapetis
c3c36cc59b SCI: SCI2/2.1 kernel table changes
- Mark several SCI2/2.1 kernel functions used for debugging as dummy
- Added an empty function for kSetWindowsOption, used for settings specific to
Windows versions (e.g. showing/hiding the title bar)
- Added a stub for kGetWindowsOption (currently returning 0 to a Windows related
option for Phantasmagoria)

svn-id: r52652
2010-09-09 11:40:46 +00:00
Martin Kiewitz
9c67db6b0d SCI: adding text code reference support
fixes glossary in pepper, bug #3040039

svn-id: r52651
2010-09-09 10:52:17 +00:00
Lars Skovlund
792c5b2303 SCI: Support a few optional parameters in SCI32 List calls
the actual support was already there due to extensive code sharing
w/SCI0, so only modifying signatures here

svn-id: r52650
2010-09-09 10:46:43 +00:00
Filippos Karapetis
9313e169fd SCI: Enabled the static selector remap code for SCI2+. The Torin demo works again
svn-id: r52647
2010-09-09 07:42:25 +00:00
Matthew Hoops
0cba4f0306 MOHAWK: Implement blocking sound in Riven
Sounds that set the third argument of the playSound opcode to 1 (wherever they may be) will now block. The volume parameter of playSound is also now honored. Merge the Myst sound blocking code with this too.

svn-id: r52643
2010-09-08 20:50:56 +00:00
Martin Kiewitz
47ad577a78 SCI: ability to change r_acc within DrawControl
preparation for returning rect array on |r| textcodes

svn-id: r52642
2010-09-08 20:11:11 +00:00
Martin Kiewitz
10a460443b SCI: adding save description, if none was entered
fixes bug #3061964

svn-id: r52637
2010-09-08 16:15:42 +00:00
Martin Kiewitz
54865f4837 SCI: dont replace save/restore in hoyle2 too
svn-id: r52636
2010-09-08 12:45:42 +00:00
Martin Kiewitz
3e4e741387 SCI: don't replace save/restore in hoyle1
fixes hoyle1 not starting anymore

svn-id: r52635
2010-09-08 12:42:00 +00:00
Martin Kiewitz
06afbd7fbb SCI: dont remap to channel 9 (fix real mt32)
svn-id: r52634
2010-09-08 10:49:12 +00:00
Jordi Vilalta Prat
806ee79a7b GROOVIE: Improve sound handling.
- Obey the mute setting.
- Report the supported music types.

svn-id: r52633
2010-09-08 09:37:33 +00:00
Matthew Hoops
58139baf37 MOHAWK: Sound cleanup
Merge the Riven sound file code with the main Riven resource code and remove the mainSoundFile parameter from Sound::playSound(). Reasoning: The sound id's do not collide with the sound id's in the main data files. The sound archives only exist because the original CD version had the ability to choose between low and high quality audio.

svn-id: r52631
2010-09-07 20:18:30 +00:00
Matthew Hoops
87a6b631bf MOHAWK: Add stopping sounds to the telescope functions
svn-id: r52628
2010-09-07 19:00:55 +00:00
Florian Kagerer
8448c50c71 LOL FLOPPY: silence pointless warnings in character selection
svn-id: r52627
2010-09-07 18:50:48 +00:00
Matthew Hoops
009889dd13 MOHAWK: Implement xgplateau3160_dopools
The pools of water will now always show the video of returning to the "off" state.

svn-id: r52626
2010-09-07 17:58:10 +00:00
Matthew Hoops
f27a0b2c43 MOHAWK: Fix the boiler puzzle videos
svn-id: r52621
2010-09-07 15:27:06 +00:00
Filippos Karapetis
cb0e54034d SCI: Now distinguishing between native MT-32 MIDI from GM devices when checking
for the existence of after market GM patches

svn-id: r52620
2010-09-07 15:09:59 +00:00
Willem Jan Palenstijn
8f1143bfdc COMMON: Remove Rational::operator int/double
This prevents accidental implicit rounding
and might also fix compilation on AmigaOS4 (bug #3060981).

svn-id: r52616
2010-09-07 09:02:46 +00:00
Filippos Karapetis
dd0095f1a2 SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code more
readable

svn-id: r52615
2010-09-07 08:12:59 +00:00
Filippos Karapetis
b2464a9bd1 SCI: Slight change in GfxPicture::vectorFloodFill()
Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier
to understand

svn-id: r52614
2010-09-07 07:41:28 +00:00
Johannes Schickel
c42e2f3a55 PARALLACTION: Use a char array for static data instead of String.
svn-id: r52610
2010-09-06 21:17:26 +00:00
Johannes Schickel
f56f093770 CINE: Get rid of needless static variable.
svn-id: r52608
2010-09-06 21:04:12 +00:00
Martin Kiewitz
624d06b684 SCI: extending comment for prev. commit
svn-id: r52606
2010-09-06 19:03:55 +00:00
Martin Kiewitz
d618678982 SCI: dont play audio on kDoSound in hoyle4
hoyle4 has garbled audio data

svn-id: r52605
2010-09-06 19:00:43 +00:00
Martin Kiewitz
2bf82a8354 SCI: fix regression of r52569
fade in/out of samples

svn-id: r52604
2010-09-06 18:23:03 +00:00
Florian Kagerer
c87b7aafd8 LOL: Add md5 for another English floppy version
svn-id: r52597
2010-09-06 16:50:20 +00:00
Arnaud Boutonné
be53141091 HUGO: Clean up creation tool
Fix typos and suppress all identical noun arrays. 

svn-id: r52596
2010-09-06 16:09:56 +00:00
Walter van Niftrik
ba6bc8f17b SCI: AdLib: process patch change commands when playswitch is off.
svn-id: r52595
2010-09-06 16:09:19 +00:00
Martin Kiewitz
6eecc485d2 SCI: fix warning (and actual error)
svn-id: r52591
2010-09-06 12:16:21 +00:00
Arnaud Boutonné
2bea43357f HUGO: Add hints in DOS versions
In DOS versions, display hints when mouse is over a
hotspot. This behavior is based on the one of Hugo Win
versions.

svn-id: r52590
2010-09-06 12:09:11 +00:00
Martin Kiewitz
da45fcfeb2 SCI: add patch for cannister lockup pharkas/cd
scripts disable icon 7+8 when entering the room. When taking the cannister they will disable all remaining icons, resulting in the disable-code running endlessly, also happend in sierra sci - fixes bug #3046367

svn-id: r52587
2010-09-06 11:58:28 +00:00
Filippos Karapetis
397f883698 SCI: Fixed an off-by one access error in the static selectors of some games
svn-id: r52586
2010-09-06 11:30:26 +00:00
Martin Kiewitz
bab5050531 SCI: fixing code
thx to tortoisegit and broken conflict managment

svn-id: r52585
2010-09-06 10:41:14 +00:00
Martin Kiewitz
c342c0e3d8 SCI: fix regression of r52565
remove class bit when marking as clone

svn-id: r52584
2010-09-06 10:39:42 +00:00
Lars Skovlund
e3e9bac6f6 SCI: Clear class bit when cloning objects.
This fixes a regression affecting many SCI32 games and possibly other games,
looping or recursing endlessly.

svn-id: r52583
2010-09-06 10:11:07 +00:00
Filippos Karapetis
fddb0f6c15 Partial fix for bug #3059871 - "SCI Fanmade - Ocean Battle: Crash while playing"
The fix is partial, as the game will crash when losing and attempting to
restart (for a different reason - there's an issue when uninstantiating a script)

svn-id: r52581
2010-09-05 23:14:42 +00:00
Johannes Schickel
f69bfaf355 KYRA: Get rid of local static non-POD object.
This fixes crashes with the plugins branch for dhewg.

svn-id: r52579
2010-09-05 22:56:25 +00:00
Johannes Schickel
b6663bb942 KYRA: Constify some tables.
svn-id: r52578
2010-09-05 22:56:03 +00:00
Arnaud Boutonné
8bd741d41b HUGO: Add support for multiple scenery files
This is used by H3Dos only.

svn-id: r52571
2010-09-05 20:37:38 +00:00
Martin Kiewitz
9b59496533 SCI: adding patch for script bug in pharkas/cd
patches out bad code that would dispose score sound immediately, "score" sound plays now for pharkas/cd - finally fixes bug #3037161

svn-id: r52570
2010-09-05 20:04:46 +00:00
Martin Kiewitz
1856723a9e SCI: ignore kDoSound volume changes on samples
svn-id: r52569
2010-09-05 19:34:26 +00:00
Martin Kiewitz
6ffbe90130 SCI: sierra sci ignores vol for kDoSound samples
now "score" is halfway playing, but it's cut so only "s" is played. Needs to get further investigated

svn-id: r52568
2010-09-05 19:25:08 +00:00
Martin Kiewitz
49c8d1a549 SCI: kClone cleanup
and fixing possible crash & typo

svn-id: r52565
2010-09-05 15:34:25 +00:00
Martin Kiewitz
13e24af0ca SCI: adjusting comment on kClone change
svn-id: r52563
2010-09-05 15:11:22 +00:00
Martin Kiewitz
d817bec4fd SCI: merging -info- stuff in Clone/DisposeClone
svn-id: r52562
2010-09-05 15:09:50 +00:00
Johannes Schickel
2a08124f0f SCI: Fix bugs #3035650 and #3039566, crash in PEPPER demo and LAURABOW2.
The actual names for the bug reports are:
 #3035650 "PEPPER non-interactive demo: Crash"
 #3039566 "LAURABOW2: Crash during introduction"

Those crashes were caused by an invalid memory dereference in kClone. This
in turn was happening, because the parent object pointer might have been
invalidated in cases where the parent object is also a clone.

svn-id: r52561
2010-09-05 14:59:09 +00:00
Martin Kiewitz
4766cc5bb5 SCI: reuse kGetAngle from kDoAvoider
svn-id: r52560
2010-09-05 13:51:47 +00:00
Martin Kiewitz
d5d5dde56b SCI: dont do global scaling on non-scaleable views
lb2floppy: scripts get confused in the rat scene, when scaleX/Y are set with applied global scaling. This results in kInitBresen to get called almost endlessly, which results in ego slowing down to a crawl and not being able to reach the upper right exit - fixes bug #3050606

svn-id: r52559
2010-09-05 12:55:15 +00:00
Filippos Karapetis
fe2924d50d SCI: initialize members of the Object class when it's constructed
svn-id: r52544
2010-09-05 12:33:27 +00:00
Filippos Karapetis
f17a9f9fb0 SCI: Changed consecutive ifs to a switch
A table would be better, but the switch will do for now

svn-id: r52543
2010-09-05 11:30:40 +00:00
Filippos Karapetis
047979b409 SCI: Fix for alignment exception issue, reported by Bluddy
svn-id: r52542
2010-09-05 11:10:49 +00:00
Filippos Karapetis
913f39da19 SCI: Some cleanup of the static selector code
- Added more static selectors, for debugging
- Added some needed selectors for the non-interactive demo of Pepper

svn-id: r52541
2010-09-05 10:59:44 +00:00
Filippos Karapetis
7dcb19e41b SCI: Added a workaround for the non-interactive demo of Pepper
svn-id: r52540
2010-09-05 10:55:25 +00:00
Filippos Karapetis
16bed50469 SCI: Fixed script bug #3059544 - "KQ6CD: Error when looking at rotten tomato"
svn-id: r52539
2010-09-05 09:27:41 +00:00
Matthew Hoops
34f570419a MOHAWK: Cleanup
- Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually
- Some minor function signature changes (const!)
- Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable
- Use solely Common::String in getVar()

svn-id: r52538
2010-09-05 00:48:38 +00:00
Matthew Hoops
aa5cd3e682 MOHAWK: Ignore invalid Riven hotspots again
There is at least one example of a bad hotspot in Riven (tspit 
371 (377 in the DVD version), hotspot 4). This particular hotspot is a zip hotspot which looks like it has its left and right coordinates reversed. However, the zip hotspot would only take the player to the same card as the non zip hotspot so it seems they removed this hotspot with a hack. This fixes a regression from r52487.

svn-id: r52532
2010-09-04 21:43:16 +00:00
Martin Kiewitz
e55c928075 SCI: kDoBresen changes for sci1early+
including change to compare dest and current position directly, otherwise we would trigger ::moveDone one cycle too late in case the current move completed - fixes lsl5 patti upside down bug #3059336 and lb2cd (cd only!) laura bow getting transformed into a boiler-flame (bug #3050602) - lsl5 was not a real regression, the timing of previous kDoBresen way just off, so it didn't happen in that scene, but happened in lb2cd

svn-id: r52531
2010-09-04 18:23:37 +00:00
Eugene Sandulenko
3972091734 SCUMM: Patch #3059327
Patch #3059327: "Remove untrue "not yet implemented" from inventory controls"

svn-id: r52530
2010-09-04 18:03:35 +00:00
Johannes Schickel
8733cdb900 HUGO: Formatting.
svn-id: r52529
2010-09-04 17:30:39 +00:00
Torbjörn Andersson
871064b3c7 HUGO: Add destructor to Scheduler class
GCC complained, and I think this is what it wanted.

svn-id: r52528
2010-09-04 17:22:27 +00:00
Filippos Karapetis
3daf588e08 SCI: Janitorial - fixed spaces and typos
svn-id: r52527
2010-09-04 17:16:41 +00:00
Filippos Karapetis
98f36800e3 SCI: Added another version of Hoyle 3 (bug report #3038837)
svn-id: r52526
2010-09-04 17:10:27 +00:00
Arnaud Boutonné
a29ae44296 HUGO: Fix decryption in H2 DOS, plus some cleanup
svn-id: r52525
2010-09-04 16:02:16 +00:00
Filippos Karapetis
34195238bb SCI: Don't try to initialize non-existent scripts, error out instead
(Invalid scripts may be requested to be loaded when warping to an incorrect room)

svn-id: r52524
2010-09-04 15:38:24 +00:00
Filippos Karapetis
8a93da0516 SCI: Updated comment concerning kCantBeHere and removed a wrong check for Hoyle 3
svn-id: r52523
2010-09-04 14:46:29 +00:00
Martin Kiewitz
7836bb87fd SCI: fixing typo in kDoAvoider
svn-id: r52520
2010-09-04 11:27:03 +00:00
Martin Kiewitz
e7f834e103 SCI: delete on textedit control now checks string
svn-id: r52518
2010-09-04 10:39:22 +00:00
Martin Kiewitz
afada2b60d SCI: fixing comment
svn-id: r52517
2010-09-04 09:58:37 +00:00
Filippos Karapetis
c34cec4e15 SCI: Fixed bug #3037595 - "KQ4: Crash reading message in the bottle (whale mouth)"
svn-id: r52516
2010-09-04 09:41:39 +00:00
Martin Kiewitz
f95a2ac499 SCI: removing non-sierra sci code in kDirLoop
svn-id: r52515
2010-09-04 09:20:38 +00:00
Martin Kiewitz
89d4e44281 SCI: doing detectDoSoundType() properly sci0early
checking, if sound resources are sci0early or late for sci0early games instead of hardcoding lsl2

svn-id: r52514
2010-09-04 08:51:10 +00:00
Martin Kiewitz
92c3a4b5aa SCI: lsl2 early uses sci0late sound
fixes bug #3037012 and lsl2 now has music everywhere

svn-id: r52513
2010-09-04 08:28:53 +00:00
Martin Kiewitz
acc294c7a8 SCI: properly reversed kDoAvoider
getAngle()-code is missing though. Still fixes lsl2early hang on airport (bug #3037036), fixes kq4early unicorn doing moonwalk (kq4late still works as well)

svn-id: r52512
2010-09-04 07:29:27 +00:00
Filippos Karapetis
976458058d SCI: Fixed bug #3058865 - "Jones in the Fast Lane CD: Graphics Missing"
svn-id: r52511
2010-09-03 22:51:27 +00:00
Martin Kiewitz
e4c07925ec SCI: kDirLoop freshly reversed
svn-id: r52510
2010-09-03 22:15:08 +00:00
Matthew Hoops
8a168f028b MOHAWK: Improve support for the Riven Demo
- The exit button now appears and is functional
- The intro movies now play on start up
- Add shortcuts for returning to the menu/playing the intro videos again
- Make the text when hitting a boundary match the original
- Change the wording of the browser button message
- Note: The demo's extras.mhk (not the full game's!) is required now

svn-id: r52509
2010-09-03 19:13:58 +00:00
Martin Kiewitz
87b78b1673 SCI: kClone/kDisposeClone behaviour more accurate
now also checking -info- selector, if object is supposed to get freed. Fixes kq4 early hanging (in intro, when opening door, etc.)

svn-id: r52508
2010-09-03 18:14:59 +00:00
Martin Kiewitz
b7a2fd899e SCI: adding mother goose title
svn-id: r52507
2010-09-03 17:49:22 +00:00
Filippos Karapetis
f78b4b9f85 SCI: Added a warning when using GM with SCI1 games
The MT-32 <-> GM mapping has only been worked on for
SCI0/SCI01 games. Throw a warning when the user
chooses GM in a SCI1 game, and there is no after
market GM support from Sierra for this game

svn-id: r52505
2010-09-03 12:42:35 +00:00
Filippos Karapetis
ace4477041 SCI: Rewrote the game name IDs of the Mt32MemoryTimbreMaps array to be like the game IDs we use
svn-id: r52504
2010-09-03 08:46:07 +00:00
Filippos Karapetis
d87fa1c890 SCI: Show a warning window regarding GM in some games.
Sierra has released a patch adding after market General MIDI support for 8 SCI1
games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If
the user has selected the General MIDI music driver in one of these games and
no associated MIDI patch is found, show an informational dialog on game startup
in order to inform the user to download Sierra's MIDI patch, together with some
short instructions.

svn-id: r52500
2010-09-02 21:50:00 +00:00
Filippos Karapetis
2f88eec713 SCI: Fixed compilation when VM_DEBUG_SEND is enabled
svn-id: r52498
2010-09-02 18:58:25 +00:00
Filippos Karapetis
a816a27928 SCI: Added a FIXME for bug #3038870, related to kParse()
svn-id: r52497
2010-09-02 13:50:49 +00:00
Arnaud Boutonné
21a09427de HUGO: Cleanup and fix mouse pointer issue
- Suppress commented code
- Suppress readConfig() and writeConfig()
- Fix the disappearing mouse issue

svn-id: r52495
2010-09-02 12:50:10 +00:00
Arnaud Boutonné
e284852b64 HUGO: Fix warnings
svn-id: r52494
2010-09-02 11:43:00 +00:00
Arnaud Boutonné
d74e82fe7f HUGO: Fix loading of config file during game init
Add a check on CONFIG.DAT size in order to avoid loading crap into 
the _config structure during the initialization of the engine.
The game no longer starts in turbo & mute mode

svn-id: r52493
2010-09-02 10:52:29 +00:00
Martin Kiewitz
82f138b728 SCI: fixing debug output for bpx
svn-id: r52491
2010-09-02 10:21:20 +00:00
Martin Kiewitz
cf3289ee3f SCI: adding "bpr" and "bpw" debug commands
"bpr" breakpoint on reading of selectors
"bpw" breakpoint of writing of selectors
"bpx" is now breakpoint on executing of selectors only

svn-id: r52490
2010-09-02 09:05:08 +00:00