132898 Commits

Author SHA1 Message Date
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
1839780513c05ad7b3e7cbc98a36e546021f8222 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
Lothar Serra Mari
7b5bb8c470 NEWS: Mention PINK support in German NEWS file 2022-09-25 16:03:40 +02:00
Eugene Sandulenko
f0af4d997d
NEWS: Pink engine games are supported 2022-09-25 16:01:59 +02:00
Eugene Sandulenko
ab88fafd34
PINK: Clarify credits 2022-09-25 16:01:59 +02:00
Eugene Sandulenko
71ed655cdc
PINK: Enable engine by default 2022-09-25 16:01:59 +02:00
Eugene Sandulenko
94f5548b56
PINK: Mark all entries for testing 2022-09-25 16:01:55 +02:00
Donovan Watteau
e16c30d023 SCUMM: Fix the navigator head text color in MI1 CD (WORKAROUND)
When the navigator head speaks, the v5 release forgot to adjust the
`Color(6)` parameter for the v5 palette changes, meaning that the text
wasn't displayed with the intended brown color, as in all other versions
(this was fixed in the v5 SegaCD release, though).
2022-09-25 11:49:34 +03:00
Scott Percival
46fe41a77c DIRECTOR: Plug memory leak in AVI loader 2022-09-25 10:35:03 +02:00
Scott Percival
15a9cbe002 DIRECTOR: LINGO: Fix Datum leak in c_starts 2022-09-25 10:35:03 +02:00
Scott Percival
095ae06405 COMMON: Refactor MacResManager::load* methods to accept a pointer
Previously the methods would pass by reference, then convert to a
pointer on success and take ownership. This isn't ideal, as a
reference suggests no transferral of ownership, and doesn't suggest
it needs to be a heap resource allocated by new.
2022-09-25 10:35:03 +02:00
Scott Percival
00a7d69fd1 DIRECTOR: Plug stream leak for Mac archives 2022-09-25 10:35:03 +02:00
Scott Percival
4e22e09685 DIRECTOR: Prevent CastData leak if multiple with the same ID 2022-09-25 10:35:03 +02:00
Scott Percival
f502638290 DIRECTOR: Plug file handle memory leaks 2022-09-25 10:35:03 +02:00
Lothar Serra Mari
2c721608be NEWS: Fix wording of latest SCUMM Sam&Max credits change
Thanks, @athrxx!
2022-09-25 09:25:53 +02:00
Die4Ever
bf0da3ad90
GROOVIE: tweak Easier AI difficulty for modern art puzzle 2022-09-24 21:07:27 -05:00
lolovo
835f415e2b
GROOVIE: Fix #2 possible crash with incorrect seeks to endpos in roq.cpp (#4257)
* GROOVIE: Fix #2 possible crash with incorrect seeks to endpos in roq.cpp
Fix bug - https://bugs.scummvm.org/ticket/13809

* Optimization

* Next optimization & maintan appropriate debug log

* GROOVIE: Check end of stream before seek to avoid crash in roq.cpp

* GROOVIE: resolve %ld conflict

Co-authored-by: Die4Ever <30947252+Die4Ever@users.noreply.github.com>
2022-09-24 19:59:01 -05:00
elasota
9aff6a5094 MTROPOLIS: Add sound fade modifier stub 2022-09-24 20:50:13 -04:00
D G Turner
ad1b2190c2 MTROPOLIS: Remove Unused Variable Causing GCC Compiler Shadowing Warning 2022-09-25 00:53:18 +01:00
D G Turner
37e702a1ba GOB: Add v1.0 USA Floppy Version of Inca 2 to Detection
This was reported in the forums by Uka on 2022-08-22.
2022-09-25 00:26:24 +01:00
Roland van Laar
6c4e6321f3 DIRECTOR: LINGO: Improve frozen context handling
When an error happens during go, for example with a nonexisting movie
the lingo callstack isn't cleaned up properly.

Now the callstack is cleaned up via `popContext(aborting=true)`.

This improves on commit:
DIRECTOR: fix memleak when lingo context is frozen
27b314cb25a786c9ecffcef6bc0589c500257b4d
2022-09-24 23:49:10 +02:00
Roland van Laar
15ee7ba98a DIRECTOR: LINGO: fix memory leaks for lingo tests
The Lingo tests were failing because of memory leaks.
- `move` overwrote an existing cast without deleting it
- `puppetTransition` was set but not removed on class destruction
- the *.lingo test files were opened but never removed
2022-09-24 23:21:38 +02:00
elasota
9703a49791 MTROPOLIS: Add path motion modifier V1 2022-09-24 17:07:21 -04:00
elasota
a5371bd365 MTROPOLIS: Add MTI print modifier stub 2022-09-24 17:07:20 -04:00