Commit Graph

130773 Commits

Author SHA1 Message Date
Paweł Kołodziejski
e9dc4afe89
BACKENDS: SDL3D: Put debug messages to specified level 2022-06-19 08:08:32 +02:00
Paweł Kołodziejski
763cf46fc1
GRIM: Put imuse warnings into debug channels 2022-06-19 07:39:47 +02:00
Thierry Crozat
63cef724f8 COMMON: Fix mapped events being dispatched twice 2022-06-19 02:12:34 +01:00
Thierry Crozat
ca70e9c618 AGS: Updated build version (3.6.0.27)
From upstream 9d5e422251075b270c0a8a59b63916f81b3a9ea2
2022-06-19 00:46:56 +01:00
Thierry Crozat
a7017efb7b AGS: Added event eEventEnterRoomAfterFadein
From upstream 98312a3929df381604d3879aae61a0c3c15d9ca6
2022-06-19 00:46:56 +01:00
Thierry Crozat
b948d94ce2 AGS: Implemented dialog_options_close callback
From upstream 88cb130d1063bf5268bbcae29ffaae37324f5a30
2022-06-19 00:46:56 +01:00
Thierry Crozat
9619169132 AGS: Use 100 as a default animation volume, as it's relative anyway
From upstream 90a60fffd5f010e957a53721f860997835216308
Also includes upstream 951f60c4dc25aa1d4320f595e01b048b53f6bf5f
2022-06-19 00:46:56 +01:00
Cameron Cawley
be82c63d77 RISCOS: Improve flags when building with plugins 2022-06-19 00:36:25 +01:00
Cameron Cawley
05a5e44729 RISCOS: Add log10f and strcoll to functions to link 2022-06-19 00:34:58 +01:00
elasota
801b3c0c06 MTROPOLIS: Only load Obsidian word game data on English version 2022-06-18 18:50:18 -04:00
Orgad Shaneh
9e5ef28456 CONFIGURE: Deduplicate simple compiler flag support tests 2022-06-19 01:33:12 +03:00
Cameron Cawley
a3f83e07ab RISCOS: Implement OSystem::messageBox() 2022-06-18 23:21:38 +01:00
Eugene Sandulenko
1ac3cb27ac
DIRECTOR: Register Shared Cast in _openResFiles. That fixes cursors stored in there 2022-06-19 00:19:14 +02:00
Cameron Cawley
8c283f0049 DOCS: Update the RISC OS documentation 2022-06-18 23:06:26 +01:00
Lothar Serra Mari
c70239687a MTROPOLIS: Add RESOURCE folder as additional game data directory
At least the German Obsidian release stores the resource files directly
in a folder called 'RESOURCE' in the root directory of the game installation.

Without this patch, one needs to manually copy the files located in the
RESOURCE folder to the game's root directory.
2022-06-18 17:40:08 -04:00
Lothar Serra Mari
d3acc1a8e0 MTROPOLIS: Add detection entry for German Obsidian release 2022-06-18 17:40:08 -04:00
Thierry Crozat
4e3c2ec299 AGS: Invalidate iterators to MRU list in SpriteCache when the item is erased
The implementation of std::list::erase invalidates iterators to the
erased item. However our implementation in Common::List does not.
And the SpriteCache code relied on this behaviour. So instead we
have to invalidate the iterators manually.
2022-06-18 22:20:40 +01:00
Thierry Crozat
9144ec7131 AGS: Add sanity check on iterators in implementation of std::list::splice
In particular the SpriteCache class can call this function with both
iterators pointing to the same item (when trying to move an item to
the start of thr MRU list, and it is already the first item).
2022-06-18 22:20:40 +01:00
Thierry Crozat
65124a3745 AGS: Fix implementation of std::list::insert
Instead of returning an iterator to the inserted item, it was
returning an iterator to the next item. This was for example causing
bugs in the SpriteCache.
2022-06-18 22:20:40 +01:00
Cameron Cawley
cb3a024589 COMMON: Allow registering multiple event mappers 2022-06-18 23:13:17 +02:00
Pragyansh Chaturvedi (r41k0u)
c72a109ce0 DIRECTOR: LINGO: Implement scriptNum of sprite STUB in lingo-the.cpp 2022-06-18 23:11:39 +02:00
Torbjörn Andersson
9c44c8517f NEWS: Add note about Maniac Mansion sentence line
I've only tried it in DOS v1 and v2, but neither of them worked like the
manual said they would.
2022-06-18 21:19:52 +02:00
Paweł Kołodziejski
822d2e5319
GRIM: Added safety check. Make easier to debug 2022-06-18 21:09:43 +02:00
Torbjörn Andersson
4c06e04a87
SCUMM: [RFC] Make clicking the Maniac Mansion sentence line work like the manual says
According to the manual, you can execute commands by clicking on the
sentence line. But this doesn't work with the v1 or v2 DOS versions,
even though it works with the C64 demo. This is because the verb script
doesn't for this, so we have to do that ourselves. This is loosely based
on how Zak McKracken does it.
2022-06-18 21:58:30 +03:00
Donovan Watteau
59cbd9003c SCUMM: Fix missing voice when selling back the hub cap and pirate hat
The Ultimate Talkie edition of Monkey Island 2 has a small script error
when you try to sell back your hub cap or your pirate hat to the antique
dealer.  It wasn't doing a comparison with the proper object number, and
so it would play a fallback line with no voice.
2022-06-18 21:52:59 +03:00
Cameron Cawley
60c7372198 OPENGL3D: Make use of the active rect provided by WindowedGraphicsManager 2022-06-18 19:33:27 +01:00
Coen Rampen
e667376511 CHEWY: Fix intro music
playIntroSequence would not set the playVideo stopMusic parameter to false,
so the music would be immediately stopped. Also, the CfoVideoTrack destructor
would stop all mixer channels, including the music. This would cause the music
to stop at the end of each video. This is replaced by a call to stopAllSounds,
and stopMusic is only called when the music is in the video data.
This commit also fixes an issue where playing a sound on a channel where a
sound was already active would not stop the old sound, but replace the sound
handle with a new one. The old sound could then no longer be accessed by the
sound class.
2022-06-18 20:28:12 +02:00
Thierry Crozat
4d2d8b45d4 AGS: Fixed trying to erase background speech overlays twice
From upstream 5f137874738c86852b5ef7da2933fab7e78ae89b
2022-06-18 18:32:09 +01:00
Thierry Crozat
a477deb74c AGS: Fixed rendering scaled up WFN fonts
From upstream adc9121f30c028a071783ffb6645bb72aee482ea
2022-06-18 18:23:38 +01:00
Thierry Crozat
15563b5a7c AGS: Changed SpriteCache::FreeMem to comply with sound cache
From upstream 94a462d52d5533f4ebb4cef1bbddd280b4f876a2
2022-06-18 18:21:35 +01:00
Thierry Crozat
fa3c524d13 AGS: GetWaitSkipResult: clear SKIP_AUTOTIMER flag (return 0)
From upstream f5159c707a0c8616b0cca39f138c2d7e53058bf5
2022-06-18 18:15:51 +01:00
Thierry Crozat
84910e9a10 AGS: Updated build version (3.6.0.26)
From upstream 2632528dd5805e4b0585c414fecfb8bed6e4f584
2022-06-18 18:14:01 +01:00
Thierry Crozat
ed8526f30a AGS: Updated Script API version for recent changes in wait skip values
This is to allow to distinguish implementations in case there were games
using older variants (although it's not clear if any had yet).

From upstream 11315b3487d22ce4830d60fad36ae7124aa45e55
2022-06-18 18:11:57 +01:00
Paweł Kołodziejski
d8d42bf2fe
GRIM: Ported debug shadow plane draw from opengl to tinygl 2022-06-18 18:56:30 +02:00
Paweł Kołodziejski
ce0427e130
GRIM: Moved debug color shadow draw 2022-06-18 18:55:35 +02:00
neuromancer
3fff0fd187 HYPNO: implemented original exit menu in boyz 2022-06-18 18:47:35 +02:00
neuromancer
c5710b585a HYPNO: highlight all territories during flashback mode in boyz 2022-06-18 18:47:35 +02:00
Le Philousophe
84baac903a RISCOS: Add LDFLAGS to plugins too 2022-06-18 17:42:38 +02:00
Le Philousophe
bab7027bab PLUGINS: Fix PLUGIN_LDFLAGS value inherited from environment
It was not always taken into account because lines in _mak_plugins were
overwriting it
2022-06-18 17:38:12 +02:00
Le Philousophe
a591c8b6bf RISCOS: Add expf to functions to link 2022-06-18 16:10:22 +02:00
Le Philousophe
b065158898 RISCOS: Don't build SDLPluginProvider: it doesn't work for us
And it fails to build with VFP because libdl is not compiled with VFP
2022-06-18 16:10:22 +02:00
D G Turner
f567b0f96a AGS: Fix GCC Compiler Warnings 2022-06-18 14:10:00 +01:00
Coen Rampen
4375d7edc5 AUDIO: Fix VOC infinite loop
This fixes a possible infinite loop in VocStream. It depends on the stream size
matching the size specified in the VOC block headers, but if the size in the
headers is incorrect and larger than the stream size, it will keep trying to
read the stream. This is fixed by adding an end-of-stream check to the error
check.
2022-06-18 14:13:32 +02:00
Coen Rampen
d81d6e593e CHEWY: Fix pops at start of SFX and speech
SFX and speech data are actually VOC format without the header. This was not
correctly processed and non-audio data was played as audio, causing popping.
This commit adds a VocStream subclass to handle this variant of the VOC format.
2022-06-18 14:13:32 +02:00
Coen Rampen
79c778c6c9 AUDIO: Enable subclassing of VocStream 2022-06-18 14:13:32 +02:00
Torbjörn Andersson
7160d46a3f Revert "AGS: Fix compile error due to wrong 64-bit type"
This reverts commit ab15d010da.

It's not needed, since AGS now has uint64_t.
2022-06-18 11:59:15 +02:00
Eugene Sandulenko
11aa622e6f
DIRECTOR: Do not hog CPU 2022-06-18 11:26:49 +02:00
Le Philousophe
c7546f99df AGS: Add missing uint64_t typedef 2022-06-18 10:24:39 +02:00
Torbjörn Andersson
ab15d010da AGS: Fix compile error due to wrong 64-bit type 2022-06-18 10:18:02 +02:00
neuromancer
8186f29f77 HYPNO: fix timer usage during bus puzzle (hard) in spider 2022-06-18 10:00:10 +02:00