Commit Graph

82605 Commits

Author SHA1 Message Date
Paul Gilbert
9127f5245f TITANIC: DE: Adding sound translations 2017-09-20 22:33:18 -04:00
Paul Gilbert
32735d59e8 TITANIC: DE: Adding sound translations 2017-09-20 20:53:12 -04:00
Willem Jan Palenstijn
7a58db8b92 Merge pull request #1024 from wjp/detection_searchman
Clean up use of SearchMan in fallback detection
2017-09-20 20:55:40 +02:00
Willem Jan Palenstijn
3108957812 CGE2: Clean up SearchMan after fallbackDetect 2017-09-20 20:53:14 +02:00
Willem Jan Palenstijn
ca82bf61e3 CGE: Clean up SearchMan after fallbackDetect 2017-09-20 20:53:14 +02:00
Willem Jan Palenstijn
6bea267385 SLUDGE: Skip SearchMan detour in fallback detection 2017-09-20 20:53:14 +02:00
Willem Jan Palenstijn
6a7d43288f DIRECTOR: Skip SearchMan detour in fallback detection 2017-09-20 20:53:14 +02:00
Colin Snover
1515bb31a6 SCI: Fix detection of end of audio map & entry size in SCI32
Torin RU map 38140 has an unusual terminator entry; instead of a
normal terminating entry of 11 FFs, its terminating entry is
03 FF FF FF FF C4 36 01 FF FF FF. So, two changes are made:

1. The end-of-map check is now the same as in SSCI1.1+ and only
   checks that the final byte of the Audio36 tuple is 0xFF,
   instead of the entire tuple;
2. The unneeded entry size heuristic has been turned off for
   all SCI32 games.

A quick check of the English versions of LB2CD, EQ1CD, SQ4CD, and
KQ6CD, as well as all English SCI32 games, indicates that this
approach seems to be working correctly.

Fixes Trac#10188.
2017-09-20 13:07:08 -05:00
Paul Gilbert
a7479b4f5b TITANIC: DE: Add translations for playGlobalSound calls 2017-09-20 06:43:10 -04:00
Paul Gilbert
7a184f0e7f TITANIC: DE: Add translations for loadSound calls 2017-09-20 06:28:34 -04:00
Bastien Bouclet
661487c2b5 MOHAWK: Riven: Move the water effect to its own class
Fixes the per frame scripts being leaked.
Fixes #10215.
2017-09-20 07:16:20 +02:00
Bastien Bouclet
56b744f5f1 MOHAWK: Riven: Plug memory leak when saving
Fixes #10216.
2017-09-20 07:12:09 +02:00
Paul Gilbert
37d0b401cb TITANIC: DE: Adding German translations 2017-09-19 22:50:39 -04:00
Paul Gilbert
00db751e7d TITANIC: DE: Sound changes for Bomb 2017-09-19 22:23:15 -04:00
Colin Snover
9fc24ed0b0 SCI32: Support RAMA's single sound effects volume
The original installer copied RESOURCE.SFX to the hard drive so
there was only one RESOURCE.SFX on CD 1. Instead of requiring
users to create duplicates, just use the single RESOURCE.SFX if it
exists.
2017-09-19 20:00:28 -05:00
Colin Snover
52d9d04919 SCI32: Fix inconsistent patch instruction comments
I missed these lines when going through things earlier.
2017-09-19 20:00:28 -05:00
Colin Snover
2dc042d540 NEWS: Extend SCI game versions to reflect SCI3 being supported 2017-09-19 19:54:30 -05:00
Colin Snover
6af5133061 SCI32: Put superclass address in r_acc for SCI3 super calls
This fixes a problem in Lighthouse 2.0a where the mini-sub would
fail to start playing the animation of the shipwreck when clicking
on the throttle.

In SSCI, in SCI3 only, r_acc was (inadvertently?) set to the
superclass object ID whenever a super call was made. This happened
because OP_super would call to get the superclass object ID, the
calling conventions of the compiler put this return value into EAX,
and then the PMachine message processing code put whatever was in
EAX into r_acc before each message was processed.

In the game code, there are a sequence of steps that look like
this:

* First, throttle::doVerb is called when throttle is clicked on;
* Which calls getRobot::doit to tell the shipwreck robot to start
  playing;
* Which calls wreckBot::init to reset the Robot for the animation;
* Which calls Hiliter::hotVerbs(0) to remove cursor hotspots;
* Which calls Hiliter::dispose to clean up since it is not used;
* Which causes Hiliter::verbList to get set to 0.
* Later, verbList is loaded into r_acc, and it is still 0;
* Then, Hiliter::dispose makes a super call to Obj::dispose;
* Then, Obj::dispose does nothing except call kDisposeClone,
  which does not mutate r_acc, so r_acc is still 0 from verbList;
* Then we return back through 5 calls to throttle::doVerb;
* Then throttle::doVerb checks that r_acc is non-zero, and if so,
  adds wreckBot to theDoits global, allowing the animation to
  occur.

In ScummVM, without setting r_acc in the super call, the non-zero
check failed and the wreckBot didn't get put into theDoits, so the
entire sequence fell apart. In SSCI, the non-zero check happened
to succeed because the Obj::dispose super call put the Obj class
into the accumulator. So now we do that too, and now Lighthouse
2.0a works here.

Earlier versions of SSCI used EAX for other things in between the
OP_super call and the message processing, so would set r_acc from
different data, so this change does not apply to those versions.
2017-09-19 19:54:30 -05:00
Colin Snover
682b8790fd SCI: Allow multi-step tracing with step-over in debugger 2017-09-19 19:54:30 -05:00
Colin Snover
d363234129 SCI32: Fix GfxFrameout::addPlane from causing possible leaks 2017-09-19 19:54:30 -05:00
Colin Snover
eba9526fdd SCI32: Remove never-read default values 2017-09-19 19:54:30 -05:00
Colin Snover
836f1bdf44 SCI32: Add audio dump debugger command 2017-09-19 19:54:29 -05:00
Colin Snover
301d0403cb SCI32: Don't warp the mouse twice when its position has been restricted 2017-09-19 19:54:29 -05:00
Colin Snover
22d157cee7 SCI32: Flush all events before warping mouse
This improves the behaviour at the end of PQ4 when navigating the
warehouse with the flashlight by getting rid of mouse events that
may have been queued before the mouse warp to the other side of
the screen is performed. Without this, frequently, those extra
events would then be processed and cause the mouse to jump back to
the opposite side of the screen, triggering another navigation in
the opposite direction.

This patch really only helps when mouse capture is enabled in
ScummVM as well, but it does allow the sequence to be played
pretty much normally in that situation. Additional (pending)
patches to ScummVM itself are needed to move the mouse to the
correct place when mouse capture is off and the system mouse moves
outside of the game window.

Refs Trac#9689.
2017-09-19 19:54:29 -05:00
Colin Snover
d36d01b82c SCI32: Add Lighthouse Glider demo to detection table 2017-09-19 19:54:29 -05:00
Colin Snover
d9ad1a3ce5 SCI32: Promote Lighthouse demos to ADGF_TESTING 2017-09-19 19:54:29 -05:00
Colin Snover
b0b1e89abe SCI32: Hide warning about CD-ROM speed setting in kGetSierraProfileInt
In the DOS interpreters, this function is a no-op. Lighthouse calls
it regardless of platform, so dummy it out for non-Windows
platforms. This is not known to address any particular issue, and
is really just to eliminate the warning about an unknown
configuration setting when starting Lighthouse in a manner that is
compatible with the original interpreter.
2017-09-19 19:54:29 -05:00
Colin Snover
2f9967524f SCI: Stop EngineState::wait mutating r_acc
This wait function is used by kernel calls other than kWait, and
those other functions do not mutate r_acc in SSCI.
2017-09-19 19:54:29 -05:00
Paul Gilbert
0a44b54ee2 TITANIC: Fix memory leaks on shutdown 2017-09-19 20:00:32 -04:00
Paul Gilbert
ba45fb2d60 TITANIC: Remove redundant surface ccreation from DirectDrawManager 2017-09-19 19:27:23 -04:00
Paul Gilbert
af99606db8 TITANIC: Fix identified redundant tests & assignments 2017-09-18 22:25:54 -04:00
Paul Gilbert
3d4bc3c59b TITANIC: Add missing return check in BellbotScript::process 2017-09-18 22:22:16 -04:00
Paul Gilbert
fce250372f TITANIC: Fix floor calculation in CChevCode::getChevFloorNum 2017-09-18 22:14:40 -04:00
Paul Gilbert
99678faf16 TITANIC: Add engine to lists within README 2017-09-18 22:04:13 -04:00
Paul Gilbert
4cfbe02919 TTITANIC: Guard against TTstring items being self-assigned 2017-09-18 21:29:29 -04:00
Paul Gilbert
0c6b15d8d0 TITANIC: Fix regenerating CGameObject _movieRangeInfoList during saving 2017-09-18 21:26:04 -04:00
Paul Gilbert
1f1a4427f5 TITANIC: Change AVISurface _framePixels from ManagedSurface to bool 2017-09-18 21:19:06 -04:00
Paul Gilbert
0362b70225 TITANIC: Fix memory leak loading star control stars 2017-09-18 21:06:34 -04:00
Paul Gilbert
f6ef3cbc9e TITANIC: Fix memory leak on thumbnails when loading savegames 2017-09-18 21:00:39 -04:00
Paul Gilbert
31c9cca0fd TITANIC: DE: Fix ship announcements 2017-09-18 20:53:49 -04:00
Paul Gilbert
f9a86a6995 TITANIC: DE: Fixes for checking in 2017-09-18 20:17:36 -04:00
Paul Gilbert
5af8ed228d TITANIC: Add VocabMode enum, fix German vocab loading 2017-09-18 18:16:03 -04:00
Thierry Crozat
1d4e2c67fa I18N: Regenerate translations data file 2017-09-18 05:05:09 +02:00
Paul Gilbert
e6a1c5a9a0 TITANIC: Added German DeskbotScript process additions 2017-09-17 22:15:01 -04:00
Paul Gilbert
d48caed204 TITANIC: Add Deskbot German specific logic 2017-09-17 20:36:07 -04:00
Paul Gilbert
b033d1bbd9 TITANIC: Added German specific TTnpcScript doSentenceEntry code
I'm not entirely happy I had to put this in the base TTnpcScript
rather than somewhere in the new german/ subfolder, but I couldn't
think of any clean way to do it except nasty designs like diamond
multiple inheritance
2017-09-17 18:42:00 -04:00
Paul Gilbert
4bdaa8d1d9 Merge pull request #1021 from Schallaven/patch-1
XEEN: Corrected spelling in xeen/map.cpp
2017-09-17 17:30:24 -04:00
Paul Gilbert
0a8167be75 TITANIC: Fix case sensitivity in header includes 2017-09-17 16:57:18 -04:00
Paul Gilbert
42b24e328a TITANIC: Add skeleton derived bot script classes for German version 2017-09-17 16:39:51 -04:00
Paul Gilbert
0b258ae16f TITANIC: Add translation.h missing from prior commit 2017-09-17 16:32:09 -04:00