Commit Graph

132920 Commits

Author SHA1 Message Date
Walter Agazzi
ca4e3195a7 MOHAWK: Add detection for chinese Riven versions 2022-09-27 00:18:29 +02:00
AndywinXp
8f744954c3 JANITORIAL: SCUMM: Improve readability of AKOS code
This is part of an on-going effort on my end to document the AKOS code, and fix strange stuff
such as integers being used as booleans, and variable_names instead of variableNames
2022-09-27 00:14:26 +02:00
AndywinXp
72463db407 SCUMM: COMI: Fix texts rarely not clearing up after overrides
This is a fix for a regression which unfortunately went unnoticed during the GUI implementation.
Since we moved stuff around in the main loop at that time, we also missed on something:
if Guybrush speaks at a certain camera position, and then ESC is pressed triggering an override,
if the override changes the camera position, the blastText rectangles will have to be updated, otherwise
we'd end up with an uncleared text on the screen. To reproduce the issue fixed here, start Part 2 and
press ESC as soon as Guybrush speaks.
2022-09-27 00:09:46 +02:00
Einar Johan Trøan Sømåen
fdfa627942
DIRECTOR: Check open() result in AIFF XObj.
Fixes COVERITY: 1490060
2022-09-26 23:47:50 +02:00
Eugene Sandulenko
9400519896
SAGA2: Fix compilation 2022-09-26 21:22:49 +02:00
athrxx
2474d96709 KYRA: more coding style cleanup 2022-09-26 19:59:35 +02:00
Eugene Sandulenko
ea0d27d496
SAGA2: Rename class variables in panel.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
307bd92ea8
SAGA2: Remove non-portable log-related code 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
9834c6e321
SAGA2: Rename class variables in objproto.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
4921ae88c2
SAGA2: Rename class variables in objects.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
1d5f9486b2
SAGA2: Rename class variables in msgbox.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
c2d795f63c
SAGA2: Rename class variables in motion.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
b8632b0a91
SAGA2: Rename class variables in modal.h 2022-09-26 19:52:27 +02:00
Eugene Sandulenko
9bb65c95fe
SAGA2: Fix class variable names in messager.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
f3a751e947
SAGA2: Rename class variables in mapfeatr.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
7b69970c82
SAGA2: Fix class variable names in intrface.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
56d0d75216
SAGA2: Rename class variables in interp.cpp 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
e39360e667
SAGA2: Rename class variables in imagcach.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
1a67f6146b
SAGA2: Rename class variables in gtextbox.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
89102aefa8
SAGA2: Rename class variables in grequest.cpp 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
c64a61dbd7
SAGA2: Rename class variables in grabinfo.h 2022-09-26 19:52:26 +02:00
Eugene Sandulenko
b590a8af74
SAGA2: Rename class variables in gpointer.h 2022-09-26 19:52:25 +02:00
Eugene Sandulenko
98ef900668
SAGA2: Rename class variables in gdraw.h 2022-09-26 19:52:25 +02:00
Stian Schultz
97fe41e498 I18N: Update translation (Norwegian Bokmål)
Currently translated at 100.0% (1766 of 1766 strings)
2022-09-26 17:37:48 +00:00
AndywinXp
7fb79ea697 SCUMM: AKOS: Document opcodes
It was getting painful to go through the AKOS system without proper opcodes documentation, so here it is.
This was checked against COMI and SCUMM HE code, for names consistency.
2022-09-26 19:07:07 +02:00
AndywinXp
c1502271b4 SCUMM: DiMUSE: Don't crash the app if we try to deallocate a non-existent soundfile
Previously we had asserts instructions in place for this; they work under the assumption that the user
always has the sound files available. Unfortunately this assumption breaks in at least two cases:
- The user plays the COMI demo (small version, without sound files);
- The user copies the whole COMI game from the CDs/Steam to the device of choice (e.g. tablet),
  and doesn't copy the BUN files over (e.g. for storage issues).

We simply remove the assertions and put a check in its place, and if that check fails we just exit
the function and resume normal execution. This fixes #13845.
2022-09-26 15:25:18 +02:00
Roland van Laar
f2f00d9774 DIRECTOR: Fix Unitialized scalar field
Give BitmapCastMember constructor a default tag of 0.

Fixes COVERITY: 1490381
2022-09-26 13:00:41 +02:00
alxpnv
7adad87fc4 ASYLUM: HiveControl puzzle: don't reset at quit 2022-09-26 14:01:00 +03:00
Roland van Laar
2c466952d9 DIRECTOR: Simplify opening stream Cast::loadConfig
Remove check if resource exists in the stream when loading a cast.
This check is already executed by `Archive::getMovieResourceIfPresent`.

Coverity found this as a Deference null return value due to not
checking if the stream was not a nullptr.

Fixes COVERITY: 1491676
2022-09-26 12:32:09 +02:00
Roland van Laar
3520f7a26f DIRECTOR: Init refCount in Datum rect constructor
Fixes memory leak on ~Datum. The Datum destructor only
destroys the objects when refcount exists.

Fixes COVERITY: 1470520
2022-09-26 11:58:40 +02:00
Roland van Laar
f7c88d7ef2 DIRECTOR: Fix dereference after null check
Add check on currentSprite because if statement before does a
check if currentSprite exists, meaning currentSprite can be a nullptr.

Fixes COVERITY: 1487084
2022-09-26 11:58:40 +02:00
ScummVM-Translations
0955a03217 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-09-26 09:26:33 +00:00
Roland van Laar
04fb186b1b DIRECTOR: Fix unchecked return value
Handle cast when PACo video file can't be opened.

COVERITY: 1476349
2022-09-26 11:25:51 +02:00
Roland van Laar
00e8feaaa7 DIRECTOR: fix unitialized scalar field
Initialize _nextFrame and _nextFrame counter in the debugger.

Fixes COVERITY: 1498346
2022-09-26 11:19:36 +02:00
ScummVM-Translations
4affcaa1c6 I18N: Update translations templates 2022-09-26 00:45:38 +00:00
elasota
51221b846e MTROPOLIS: Add more features required by MTI 2022-09-25 20:44:25 -04:00
Eugene Sandulenko
ccfe7fae69
SAGA2: Rename class variables in gamerate.h 2022-09-25 21:44:29 +02:00
Eugene Sandulenko
3a49501e20
SAGA2: Rename class variables in fta.h 2022-09-25 21:37:27 +02:00
Eugene Sandulenko
e424669f6d
SAGA2: Fix class member names in floating.h 2022-09-25 21:37:27 +02:00
Eugene Sandulenko
5447e8ce5e
SAGA2: Rename class variables in enchant.h 2022-09-25 21:37:27 +02:00
Eugene Sandulenko
fe4aca8cd2
SAGA2: Rename class variables in effect.h 2022-09-25 21:37:27 +02:00
Eugene Sandulenko
8527a03f0a
SAGA2: Rename class variables in document.h 2022-09-25 21:37:27 +02:00
Eugene Sandulenko
f0221d3b8a
SAGA2: Renamed class variables in dispnode.h 2022-09-25 21:37:26 +02:00
Eugene Sandulenko
bdb5066b35
SAGA2: Rename class variables in dice.h 2022-09-25 21:37:26 +02:00
Eugene Sandulenko
2aefa6c30f
SAGA2: Rename class members in contain.h 2022-09-25 21:37:26 +02:00
Eugene Sandulenko
40d9d2e9b9
SAGA2: Use class copy constuctor instead of memcpy() 2022-09-25 21:37:26 +02:00
Eugene Sandulenko
ef106cf716
SAGA2: Reanme GameObj class members 2022-09-25 21:37:26 +02:00
Eugene Sandulenko
e281cde4b6
SAGA2: Use portable struct copying 2022-09-25 21:37:26 +02:00
Einar Johan Trøan Sømåen
47b599de20
TINSEL: Fix wrong mapping of IO_-attributes
1839780513 made a mistake by
confusing the IO-attributes with the non-IO_-attributes,
as there is a difference in the order of the flags between
these two sets.

Fixes bug: https://bugs.scummvm.org/ticket/13810
2022-09-25 20:42:08 +02:00
D G Turner
9f2b694776 GROOVIE: Fix Format for 64-bit Integer GCC Compiler Warning in ROQ Code 2022-09-25 15:27:53 +01:00