Commit graph

759 commits

Author SHA1 Message Date
rinevard
361ebbcd9e SWORD25: Fix display order of deathscreen
Fix death screen appearing behind save/load menu by adjusting its
z-value. The issue occurs due to differences in render order between
original engine and ScummVM implementation.

The original engine renders based on parent-child relationships, it
renders the subtree of a node completely before moving to other nodes.
while ScummVM sorts by absolute z-values (parent absolute z + child z).

View `BS_RenderObject::Render` in `renderobject.cpp` in the source code
of the original engine and `RenderObject::render` in `renderobject.cpp`
in the source code of ScummVM version for more details.

Fixes: https://bugs.scummvm.org/ticket/15426
2025-03-10 18:56:36 +02:00
Rinevard
03005233f1
SWORD25: Add internal debugger launch flag
Run ScummVM with `./scummvm --debugflags=internaldebugger sword25` to enable the internal debugger.
2025-03-06 14:03:54 +02:00
Eugene Sandulenko
a0ceebbce3
SWORD25: Fix debug flags 2025-03-05 16:39:23 +01:00
Filippos Karapetis
8173ea0d79 SWORD25: Fix overriden instances of preFunctionInvocation() 2025-03-04 10:39:19 +02:00
rinevard
cdffac6bf9 SWORD25: Fix keyboard input
Add proper reporting of character events to make the debug cheat codes work.
2025-03-04 10:25:07 +02:00
Eugene Sandulenko
949027a01e
ENGINES: [l-w]: Turn debug enums from bitfield into plain enums 2025-02-22 21:55:59 +01:00
Eugene Sandulenko
ebd5333634 SWORD25: Mark lua as hard dependency and theoradec as a soft one 2024-12-25 00:34:39 +01:00
Eugene Sandulenko
aa43f4f5e7 CONFIGRE: Added theoradec component and marked all the relevant engines 2024-12-25 00:34:39 +01:00
Eugene Sandulenko
f1f826f0e2 CONFIGURE: Added possibility to define engine components. Turn lua into a component
Components are parts of the ScummVM common code that could be optionally
built only when the engines that use them are enabled
2024-12-25 00:34:39 +01:00
Eugene Sandulenko
12f97f724a
Revert "SWORD25: Removed a lot of debug/unimplemented/unused functions"
This reverts imost of commit 42670975ac.
2024-11-28 00:12:29 +01:00
Eugene Sandulenko
2cf8050710
SWORD25: Fix color picking from lightmaps. Fixes bug #13504 2024-11-25 00:24:39 +01:00
Eugene Sandulenko
a34c32fb4d
SWORD25: Properly implement background sound looping. Fixes bug #15424 2024-11-24 23:09:01 +01:00
Eugene Sandulenko
2704fcee98
SWORD25: Avoid double free on macOS and maybe other platforms on exit 2024-11-24 23:09:01 +01:00
Eugene Sandulenko
9266715f46
SWORD25: Improved debug output 2024-11-24 23:09:01 +01:00
Eugene Sandulenko
6185d95f6d
SWORD25: Fix heap overflow on savegameame load 2024-11-24 23:09:01 +01:00
Hubert Maier
3c852e32e0 JANITORIAL: SWORD25: Fix typos 2024-09-16 20:27:17 +03:00
Cameron Cawley
89c57d29ef COMMON: Move more maths functions into the Math namespace 2024-07-27 14:00:48 +03:00
Cameron Cawley
441b02d057 DETECTION: Use uint32 for ADGameFileDescription file size 2024-06-30 19:13:41 +02:00
Le Philousophe
b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
Cameron Cawley
3da558fc96 GRAPHICS: Add a common function for detecting transparent surfaces 2024-06-19 02:36:17 +02:00
Cameron Cawley
30b977c272 DETECTION: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe
3f9512c7cb SWORD25: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
1d7b1fa30e
SWORD25: Remove unneeded include 2023-10-29 01:06:44 +02:00
elasota
e0b8e6685e SWORD25: Fix extracted files support and update ZipArchive handling to process directories 2023-09-17 19:17:33 +02:00
Le Philousophe
5bdd9e6f50 ALL: Unify zlib and gzio API
zlib is used when available and falls back on gzio.
This allows performance improvements as our CRC32 and gzio
implementations are slower than base zlib.
As zlib is available when libpng is present, this is sensible to
benefit from it.
2023-08-28 21:49:03 +02:00
Cameron Cawley
d71d4c2d36 SWORD25: Add support for opaque blending modes 2023-08-26 01:26:55 +02:00
Wyatt Radkiewicz
4fbde03866 ALL: blendBlitFrom exaclty matched TS::blit 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
0961399727 ALL: blendBlitFrom prototype now matches TS::blit 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
41a942c5ce ALL: Renamed TS_ARGB to MS_ARGB 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
056a0029c6 SWORD25: Tweaked RenderedImage to use pPartRect 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
b34f6f48fd SWORD25: Moved to ManagedSurface 2023-08-13 00:22:10 +02:00
elasota
b8acbe6bee COMMON: Archive path refactoring, add getFileName and getPathInArchive that unambiguously return the filename or the full path 2023-07-19 18:51:37 +02:00
Donovan Watteau
18ab6803d6 JANITORIAL: Fix various "an" typos in comments 2023-03-16 14:47:28 +01:00
Walter Agazzi
5630000921 SWORD25: Complete Broken Sword 2.5 detection title 2023-01-02 13:46:39 +02:00
Cameron Cawley
28d7b361ea COMMON: Move more file format code into common/formats 2022-12-11 22:33:23 +01:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Cameron Cawley
fbea7888a0 SWORD25: Move the engine options into the MetaEngine subclass 2022-11-16 23:58:54 +01:00
ShaharAriel
9ab3af5ea1 SWORD25: set new md5 and size of heb patch 2022-10-27 09:09:11 +02:00
Le Philousophe
b7ef4078dc SWORD25: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
ShaharAriel
278b467f60 SWORD25: Apply code review suggestion 2022-10-18 17:37:55 +02:00
Shahar Ariel
c7b17f36be SWORD25: Apply code review suggestion 2022-10-18 17:37:55 +02:00
Shahar Ariel
20821f96ed SWORD25: Add hebrew support
changes:

* use unicode-bidi for hebrew text
* add detection of hebrew patch to detection table
2022-10-18 17:37:55 +02:00
Donovan Watteau
27f9a460b5 JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Cameron Cawley
9cb51350bb SWORD25: Use ADExtraGuiOptionsMap for the options 2022-07-07 23:46:04 +03:00
Paweł Kołodziejski
3081c362c6
SWORD25: Fixed warning - restored to previous code 2022-05-29 20:53:32 +02:00
Donovan Watteau
5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Torbjörn Andersson
e06f3c9a5a GUI: Allow game option checkboxes to be disabled
Depending on other game option checkboxes. This is used to
enable/disable the semi-smooth scrolling checkboxes for FM Towns Loom,
since it's only used when smooth scrolling is enabled.
2022-04-21 11:07:17 +02:00
D G Turner
b3f98810a2 SWORD25: Fix Redundant Declarations
These cause GCC Warnings when -Wredundant-decls is enabled.
2022-03-07 13:27:14 +00:00