Commit graph

770 commits

Author SHA1 Message Date
Orgad Shaneh
43a44e213b ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-12-06 00:08:32 +00:00
Eugene Sandulenko
07e05037a0
TRECISION: Dropping ADGF_TESTING flag 2021-10-01 14:10:34 +03:00
Filippos Karapetis
80650615d0 TRECISION: Fix hiding animation areas when cutscenes start - bug #12624
playDialog() refreshes the screen when it finishes, so any calls to
toggleAnimArea() should be done before playDialog() starts.
This fixes cases such as the storekeeper's wife not disappearing
properly after the cutscene with the rat-on-wheels is shown
2021-10-01 01:33:22 +03:00
Filippos Karapetis
c62106cff5 TRECISION: Fix restoring games from the ScummVM menu - bug #12902 2021-09-30 04:00:33 +03:00
Filippos Karapetis
df2bd5e516 TRECISION: Fix canceling item combination - bug #12920 2021-09-30 04:00:33 +03:00
Orgad Shaneh
7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +02:00
djsrv
7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
Max Horn
2f1f8f502e DEVTOOLS: move credits from devtools/credits.pl to engines
This employs a "lazy" approach: the "format" for the credits stays
exactly as it was, i.e., perl code. Of course one may want to change
this to another format (e.g. YAML, JSON, XML; or also shell script or
AWK, like `configure.engine` uses). But I deliberately kept it simple,
to get a minimal change that is easy to verify. Any further changes to
e.g. the format can be layered atop this.
2021-08-05 00:01:46 +02:00
SupSuper
ca1b5346cb TRECISION: Fix drawObj condition 2021-07-27 07:03:44 +01:00
Filippos Karapetis
1da70b9247 TRECISION: Move the code that toggles object states when changing rooms 2021-07-15 03:06:09 +03:00
Filippos Karapetis
b882ef646b TRECISION: Use animation defines in patchAnimTab() 2021-07-15 03:06:09 +03:00
Filippos Karapetis
6be03a7801 TRECISION: Patch invalid animation rectangles - bug #12628 2021-07-14 22:18:03 +03:00
Mathias Parnaudeau
35fbf3f913 TRECISION: Fix warning unused-variable 2021-07-08 21:57:48 +01:00
Filippos Karapetis
81b0aad541 TRECISION: Simplify shouldShowAnim() 2021-07-03 13:26:30 +03:00
Filippos Karapetis
dc97c350d2 TRECISION: Simplify the code handling animation subareas 2021-07-03 13:23:49 +03:00
Filippos Karapetis
febc95d486 TRECISION: Clean up drawSmkBackgroundFrame() 2021-07-03 10:44:49 +03:00
Filippos Karapetis
5f98c7c323 TRECISION: Renaming and cleanup 2021-07-03 10:44:49 +03:00
Filippos Karapetis
1266dcab77 TRECISION: Fix logic for walking into room 23A 2021-07-03 10:44:48 +03:00
SupSuper
ec4cce58cb TRECISION: Potential fix for BE color issues 2021-07-02 23:00:01 +01:00
D G Turner
ea17d9422a TRECISION: Fix Shadowing Warnings 2021-07-01 06:09:14 +01:00
Strangerke
4001ae8f40 TRECISION: Fix #12623 2021-06-30 13:31:00 +01:00
SupSuper
b84814cd34 TRECISION: Clean up warnings 2021-06-30 09:36:17 +01:00
Filippos Karapetis
a51af7292e TRECISION: Fix regression from da71b6e84e - bug #12645
I mistakenly removed pixel format conversion, so screen formats other
than RGB555 wouldn't work correctly. This commit should fix that
2021-06-30 10:49:57 +03:00
Strangerke
7c0baadc05 TRECISION: rewrite font loading 2021-06-29 22:17:28 +01:00
Strangerke
11ceeeebf7 TRECISION: Change the signature of characterTalk 2021-06-29 22:17:28 +01:00
Filippos Karapetis
78ef45ba0f TRECISION: Group object graphics and mask buffers 2021-06-22 10:37:36 +03:00
Filippos Karapetis
95cec50195 TRECISION: Don't refresh objs outside of the current room - bug #12625 2021-06-20 17:04:01 +03:00
Filippos Karapetis
7ebd9c9558 TRECISION: Janitorial - use unified naming for loop variables 2021-06-20 17:04:01 +03:00
Filippos Karapetis
76dfe88b9a TRECISION: Mark the video frame calculation fix as a workaround 2021-06-20 01:38:25 +03:00
D G Turner
3d6cdf3e7d TRECISION: Fix GCC Signed vs. Unsigned Comparison Warning 2021-06-19 16:03:53 +01:00
Filippos Karapetis
84d00f364a TRECISION: Fix playing videos without choices - bug #12622 2021-06-19 12:18:42 +03:00
Filippos Karapetis
5ddcff361c TRECISION: Improve handling of pixel formats - bug #12645 2021-06-19 11:14:52 +03:00
D G Turner
4d6344e736 TRECISION: Fix GCC Shadowing Warning 2021-06-17 13:03:59 +01:00
Filippos Karapetis
df607c7f8d TRECISION: Fix action animation rects - bugs #12629, #12639, #12640 2021-06-16 22:54:26 +03:00
Filippos Karapetis
e1868bfd70 TRECISION: Use Common::Rect for the actor rect 2021-06-16 22:41:33 +03:00
Filippos Karapetis
53cb5293ca TRECISION: Remove globals used for drawObj() / eraseObj() 2021-06-16 20:54:17 +03:00
Filippos Karapetis
18779bb156 TRECISION: Fix room snapshots in the positioner interface - bug #12638 2021-06-16 02:37:44 +03:00
Filippos Karapetis
2e78933b46 TRECISION: Use ABS() instead of fabs()
Let's be absolute, vol. 2
2021-06-16 01:18:52 +03:00
Filippos Karapetis
3297cb2669 TRECISION: Fix incorrect actor dirty rects - bug #12639
Get rid of _actorRect, and reference the last dirty rect to be drawn
directly. Fixes invalid actor dirty rects causing Joshua to be drawn
over his action animations causing them be partially drawn, such as
the animation where Joshua is looking down the well at the castle
2021-06-16 01:18:52 +03:00
SupSuper
8502cbd702 TRECISION: Let us be absolute 2021-06-15 13:21:33 +01:00
Filippos Karapetis
8143cb9efe TRECISION: Fix loading the last file of animation bundles - bug #12642
Fixes crash when sending the inflated gloves through the prison window
2021-06-15 14:47:05 +03:00
Filippos Karapetis
097a948423 TRECISION: Continue if a sound can't be found - bug #12633
Fixes crash when entering code in the security panel in the terrorists'
hideout
2021-06-14 04:12:46 +03:00
Filippos Karapetis
039cf08f4f TRECISION: Fix drawing frames from disabled animations - bugs #12624, #12626
Fixes the chain shown incorrectly when entering the platforms and the
shopkeeper's wife appearing frozen after she's left the storeroom
2021-06-14 03:56:13 +03:00
Filippos Karapetis
a40a796b9e TRECISION: Add toggle_object command 2021-06-14 03:56:13 +03:00
SupSuper
184a2ca56b TRECISION: Add Nightlong Hungarian fan-translation 2021-06-12 20:34:47 +01:00
Filippos Karapetis
364ce377b4 TRECISION: Clean up room entry code for the force field room (kRoom23A) 2021-06-12 20:58:29 +03:00
Filippos Karapetis
ea11955b4e TRECISION: Fix entering some rooms - bug #12627 2021-06-12 20:58:29 +03:00
Filippos Karapetis
03926135be TRECISION: Rename a variable 2021-06-12 20:58:29 +03:00
Filippos Karapetis
d0aee114cd TRECISION: Add a "position" command 2021-06-12 20:58:28 +03:00
Filippos Karapetis
9ec9b287a6 TRECISION: Fix alt room initialization
A regression from 9052efb497, which ended
up initializing the rooms all the time
2021-06-12 02:29:17 +03:00