Commit Graph

18032 Commits

Author SHA1 Message Date
Torbjörn Andersson
c63553c234 DRASCULA: Keep keyboard buffer flushed while waiting for conversation
Otherwise buffered-up key presses can cause dialog to be skipped once
the player finally picks a conversation option.

svn-id: r52850
2010-09-21 20:51:45 +00:00
Torbjörn Andersson
76f2d3d78b DRASCULA: Fix bug #3069977 ("Grafic Glitches in text")
If response() loads an image into backSurface, we need to restore the
conversation charset to it once we're done. This may very well fix a
few other similar bugs, but I haven't verified that.

svn-id: r52845
2010-09-21 17:57:02 +00:00
Torbjörn Andersson
88e25e6f25 DRASCULA: Fix invalid memory access on inventory screen
When clicking outside of all inventory objects, the whichObject()
function would return 43, which is an invalid inventoryObjects[]
index. I think that's what caused it to crash for me. There are a
few other inventoryObjects[]-related changes as well.

svn-id: r52843
2010-09-21 17:18:32 +00:00
Florian Kagerer
ca767d5913 KYRA2/LOL PC-98: fix sfx rate
svn-id: r52842
2010-09-21 16:05:33 +00:00
Torbjörn Andersson
f994deb4ee AGI: Deconfusify the AGI music driver
(After a brief discussion with sev.) AdLib is now the old Sarien sound,
PCjr is the new PCjr emulation. PCjr is still the default; we don't
need to ask getMusicType() how to get there.

svn-id: r52838
2010-09-21 06:05:27 +00:00
Eugene Sandulenko
d43ff54a08 AGI: Changed meaning of pcjr sound device. Now it is Sarien emu
Music drivers:
default: proper Tandy/PCJr
adlib: proper Tandy/PCJr
pcjr: old Sarien emu
amiga: old Sarien emu in Amiga mode
pcspk: Sarien emu in PCSpk mode (quite wrong)
midi: 4 channel MIDI

svn-id: r52836
2010-09-21 05:36:51 +00:00
Johannes Schickel
ec80b95580 KYRA: Fix RTL from LoL's main menu.
svn-id: r52835
2010-09-20 22:36:19 +00:00
Eugene Sandulenko
763c089d06 AGI: Fix bug #3061578: AGI: PCjr Mode Not Default for DOS Games
svn-id: r52831
2010-09-20 21:17:49 +00:00
Eugene Sandulenko
ba04f31ade SWORD1: Fix bug #3032772: SWORD1: Mute setting does not work
svn-id: r52827
2010-09-20 20:37:34 +00:00
Eugene Sandulenko
6106868188 SWORD2: More safeguards for mute setting
svn-id: r52825
2010-09-20 20:31:56 +00:00
Eugene Sandulenko
723a94099e SWORD25: Fix bug #3032763: "SWORD2: Mute setting does not work"
svn-id: r52823
2010-09-20 20:18:35 +00:00
Lars Skovlund
0e86f6aa61 Make r52818 general on trunk
svn-id: r52820
2010-09-20 18:45:52 +00:00
Lars Skovlund
bd9f9bb06e SCI: Handle bit 2 of scaleSignal by not updating nsRect values when
it's set. Currently game-specific for Hoyle4; fixes bug #3038424. But
other SCI1.1 games should be tested with a general version of this to
see whether it fixes relevant bugs.

svn-id: r52818
2010-09-20 18:31:59 +00:00
Torbjörn Andersson
971d5ca4b8 GOB: Don't crash if getCharData() returns NULL
This happened to me when playing the floppy version of Gobliins 2. I
don't know if it's a fix or a workaround, but the function can clearly
return NULL so let's guard against it.

svn-id: r52813
2010-09-20 00:02:12 +00:00
Filippos Karapetis
4edce6d860 SCI2/2.1: Changes to the plane code
Moved some plane related functions inside updatePlane() instead of frameOut(). Cleanup.

svn-id: r52804
2010-09-19 14:50:28 +00:00
Filippos Karapetis
433448ff62 SCI: Added documentation for the different music patches in SCI games
svn-id: r52802
2010-09-19 11:44:07 +00:00
Filippos Karapetis
1d9d55b177 SCI2: Some work on RBT files
svn-id: r52801
2010-09-19 10:56:08 +00:00
Filippos Karapetis
64f1fc2323 SAGA: Fixed bug #3068840 - "ITE: ScummVM crashes when talking on the ferry"
svn-id: r52799
2010-09-19 08:18:25 +00:00
Travis Howell
6537cb6463 SCUMM: Remove unused code, which was replaced by ScummEngine_v0::runObject in revision 42737.
svn-id: r52798
2010-09-18 14:31:21 +00:00
Travis Howell
ae3b6f0aa3 SCUMM: Fix bug #3070077 - MMC64: No music when Syd plays the piano.
svn-id: r52796
2010-09-18 14:18:48 +00:00
Eugene Sandulenko
5b18bb1aa1 SWORD2: Plug memory leaks.
svn-id: r52795
2010-09-18 12:42:23 +00:00
Paul Gilbert
53a5ba21ab M4: NULL terminate after a strncpy
svn-id: r52794
2010-09-18 12:08:59 +00:00
Paul Gilbert
9cab0a5cfe M4: Added missing breaks to switch statement
svn-id: r52793
2010-09-18 12:02:52 +00:00
Florian Kagerer
a48e19eaef SCUMM: minor cleanup
svn-id: r52792
2010-09-18 11:26:10 +00:00
Torbjörn Andersson
c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Filippos Karapetis
6fed6a75d5 TESTBED: Fix warnings
svn-id: r52790
2010-09-18 09:52:05 +00:00
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