Commit Graph
137148 Commits
Author SHA1 Message Date
Orgad Shaneh 864b467046 SCUMM: Fix RTL display for verbs with indirection on MI2
For example: 07 FF 07 21 00

The first 07 is the skull, then ff 07 21 appends the verb referenced in
variable 33. If this verb contains control characters, the result is
something like "07 FF 0A 0F 29 ... Some text".

Now, the bidi algorithm *doesn't* skip all the initial control characters
(they are skipped later in the loop), and it only reverses the text, but
the 07 remains in the beginning. The result is 07 FF 0A 0F 29 ... txet emoS

Use a similar technique like was done for INDY4 - Skip the initial 07
character, then append it in the end, and replace the original one with a
space. This gives 32 FF 0A 0F 29 ... txet emoS 07.
2022-07-27 00:25:47 +03:00
Donovan Watteau be6252396e SCUMM: Fix some misattributed lines when speaking to Evelyn Morrison in Sam & Max
In some versions of Sam & Max, such as the French and German releases,
talking to Evelyn Morrison while wearing the bigfoot costume will
attach some lines to Max even though Sam's voice is used there.
2022-07-26 21:18:22 +03:00
Lothar Serra Mari 82e76f076c DISTS: Update Sparkle AppCast file for 2.6.0 2022-07-26 13:56:37 +02:00
BLooperZ 716ed40240 SCUMM: FREDDI4: change subtitles colors in final scene 2022-07-26 10:39:26 +03:00
Orgad Shaneh edb3fdfca5 SCUMM: Fix RTL indentation for charset 4 on Monkey Island 2 2022-07-25 22:24:39 +03:00
D G Turner 69182794c9 SAGA2: Fix Possible Uninitialized Variable in Automap Code
Should fix Coverity CID 1490802.
2022-07-25 15:04:42 +01:00
Eugene Sandulenko 965f4bb40d JANITORIAL: Remove trailing spaces and added comments 2022-07-24 23:39:42 +02:00
Scott Percival 5a95bb2ead DIRECTOR: Fix b_installMenu string decoding
installMenu loads a menu definition from a text cast member. In our
implementation, at load time we coerce the contents to Unicode based on
the platform encoding. Unfortunately for us, Macromedia decided to use
two non-ASCII codepoints for indicating checkmarks and code separators,
which are evaluated as the byte value instead of whatever physical
character they correspond to.

Amending this is slightly hacky, as the UTF-8 equivalent of these
codepoints is two bytes long. The text is first normalised to remove the
platform transformation. The checkmark UTF-8 sequence is replaced with
the single byte equivalent, to maintain compatibility with MacMenu.
Finally, the code separator UTF-8 sequence is used to split the line
between menu definition and script definition.

Fixes the menu system in Eastern Mind.
2022-07-24 23:38:10 +02:00
Martin Gerhardy 29319ce443 TWINE: added original function name 2022-07-24 19:45:24 +02:00
Martin Gerhardy 02c9f13f8a TWINE: renamed variable to match original sources 2022-07-24 19:27:43 +02:00
Martin Gerhardy c3993fe6e7 TWINE: removed unused members 2022-07-24 19:21:01 +02:00
Martin Gerhardy f4713ad9f5 TWINE: original source code Box function performs clipping here 2022-07-24 19:20:53 +02:00
Martin Gerhardy 8d3e9d6a75 TWINE: minor comment 2022-07-24 19:12:22 +02:00
Martin Gerhardy 99164665ba TWINE: fixed using the wrong penguin angle
Rotate(0, 800, ListObjet[NUM_PERSO].Beta) is the original source code line
2022-07-24 19:06:29 +02:00
Martin Gerhardy cd7e3ec6e4 TWINE: renamed method to match original sources 2022-07-24 19:05:36 +02:00
Martin Gerhardy 8207a8d570 TWINE: unified with original sources 2022-07-24 19:05:08 +02:00
Lothar Serra Mari 1c7e799f51 NEWS: (Properly) fix indentation in latest SCUMM news 2022-07-24 11:03:22 +02:00
Lothar Serra Mari 78ea1fafc7 NEWS: Fix indentation in latest SCUMM news 2022-07-24 11:01:45 +02:00
Lothar Serra Mari 2e34fbfcd1 NEWS: Mention latest SCUMM enhancements in German NEWS file 2022-07-24 11:01:45 +02:00
matthewdippel 4f213d7a98 SCI: add typing to scifx_to_cpp script
Adding type hints to the various helper methods in this script
to make it easier to read and understand how the scifx parsing is
done.
2022-07-24 12:01:27 +03:00
matthewdippel df404e3b8d SCI: whitespace changes in output of scifx_to_cpp
Several whitespace changes to the output in order to make the resulting
cpp file consistent with how cpp is formatted in the repo.

- Properly align the opening of the first comment block.
- Properly align the closing brace of the Sci namespace scope.
2022-07-24 12:01:27 +03:00
matthewdippel 5c8781a369 SCI: remove global variables in scifx_to_cpp
Methods in scifx_to_cpp.py refer to arrays outside of their scope.
Refactored them to take them as parameters instead to improve
readability.

Tested by calling on the .scifx files in the same directory as below.
Output is unchanged.

```
python .\scifx_to_cpp.py .\lsl2.scifx
```
2022-07-24 12:01:27 +03:00
matthewdippel 125258caf1 SCI: create main method for scifx_to_cpp script
The scifx_to_cpp.py script has methods intermingled with method calls
that execute when you call the script. Moving the method calls under
a "__main__" header to improve readability.

Tested by calling the script like shown below on the .scifx files in
the same directory. The output is the name.

```
python .\scifx_to_cpp.py .\lsl2.scifx
```
2022-07-24 12:01:27 +03:00
D G Turner 933c965179 SAGA2: Remove Undefined DEBUG Macro Symbol Usage from Spell Code
This generates a warning if GCC is passed -Wundef.

This will now allow debugging of the Spell behaviour at runtime via
the debug console when code to allow this is added.
2022-07-24 01:25:17 +01:00
athrxx 6d542fe3dd NEWS: mention SCUMM CGA/Hercules improvements 2022-07-24 00:19:07 +02:00
athrxx 2e9d0884b6 SCUMM (V2/CGA) - fix regression from 660512ac
(I broke the v2 CGA while working on v3/v4)
2022-07-24 00:12:51 +02:00
D G Turner 32dbd828dc SAGA2: Add Automap Cheat to Console Command 2022-07-23 22:56:45 +01:00
Pragyansh Chaturvedi e4f1471aa9 DIRECTOR: Implement VWCF resource checksum validation for pre-D7 movies 2022-07-23 23:51:14 +02:00
Scott Percival 0709bac3ab DIRECTOR: Incorporate frame delay for transitions
Subtract the time already taken to blit the frame from the delay value.
Improves playback timing on most transitions.
2022-07-23 23:49:35 +02:00
Scott Percival 7c9badd57c DIRECTOR: Add debug level for sound events 2022-07-23 23:49:35 +02:00
Scott Percival d9cf093c95 DIRECTOR: Fix film loops with more than 8 cast members 2022-07-23 23:49:35 +02:00
eientei e37067603b DIRECTOR: Fix warlock demo detection entries 2022-07-23 23:34:05 +02:00
ScummVM-Translations 8b074502d3 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2022-07-23 21:32:11 +00:00
Cameron Cawley f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
ScummVM-Translations 38425bcef9 I18N: Update translations templates 2022-07-23 21:18:17 +00:00
athrxx e993bbc389 SCUMM: (V4 - Hercules) - fix typo 2022-07-23 23:17:46 +02:00
athrxx 4230a882b0 SCUMM: (V4/EGA/CGA) - improve post-load fixes
Also include room palette fixes for games that were saved with a different video mode. Unfortunately the scripts make changes to the room palette based on VAR_VIDEOMODE. The original interpreter does not fix that.
2022-07-23 23:17:46 +02:00
athrxx af2ce28786 SCUMM: (V4 - Hercules) - fix Hercules mode for MI1EGA 2022-07-23 23:17:45 +02:00
athrxx 660512ac4d SCUMM: (V3/4 - CGA) - fix CGA mode for MI1EGA + cleanup
In the end, once fully understood, the CGA rendering is very similar for all versions. So I did manage to clean out some code. Hercules mode for MI1EGA is broken here, I will have another commit for that, once I understand how it works.
2022-07-23 23:17:45 +02:00
Cameron Cawley 353bb8387f PLAYGROUND3D: Fix typos 2022-07-23 22:09:25 +01:00
Cameron Cawley 89c634be2d GUI: Display the full engine name in the About dialog 2022-07-23 22:08:53 +01:00
D G Turner f3b3d20f45 ICB: Fix Left Shift of Negative Value GCC Compiler Warning in NanoJPEG
This is emitted by GCC when -Wshift-negative-value is passed.

ICB has been tested and the jpeg backgrounds still decode as expected
with this change.
2022-07-23 19:00:18 +01:00
D G Turner cb949044db HDB: Refactor AI Functions to Avoid Incompatible Function Pointer Casts
These warnings were emitted by GCC when -Wcast-function-type was passed.

This fixes these by refactoring so the engine only uses a single function
pointer type with the "extra" parameters always present.
2022-07-23 17:00:23 +01:00
D G Turner 27fd68cf20 MTROPOLIS: Remove Stray Semicolon Causing Compiler Warning
This generates a warning when -Wpedantic is passed to GCC.
2022-07-23 13:32:00 +01:00
elasota 148b918b62 MTROPOLIS: Uninit field cleanup 2022-07-23 02:25:53 -04:00
elasota dbe54975cb MTROPOLIS: Fix bad for loop 2022-07-23 02:25:53 -04:00
elasota f14ca5b871 MTROPOLIS: Uninit field cleanup 2022-07-23 02:25:53 -04:00
elasota 47b6b66fc8 MTROPOLIS: Uninit fields cleanup 2022-07-23 02:25:53 -04:00
Thierry Crozat ad47d02f4e AGS: Fix crash in debug builds when detecting ,exe files with non-standard characters
Commit 02bd4e46a3 changed AdvancedMetaEngineDetection::composeFileHashMap
to use the punycode-encoded file names, but the AGS engine fallback
detection was still looking for entries in the map using the non-encoded
file names.

This commit both adds punycode-encoding (in case we do have AGS games with
executable that contain non-standard character) and also adds a sanity
checks to avoid crashing if we do have a filename not in the map (which
should not happen, but better safe than sorry).
2022-07-23 00:48:33 +01:00
elasota e3e9ba9d1f MTROPOLIS: Uninit fields cleanup 2022-07-22 19:41:27 -04:00