Commit graph

1397 commits

Author SHA1 Message Date
Filippos Karapetis
155bba57d3 ASYLUM: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Cameron Cawley
953ccc3d6c VIDEO: Add a version of setOutputPixelFormat that accepts a list of formats 2025-03-02 02:34:07 +02:00
Eugene Sandulenko
b34411bc23
ENGINES: [a-k]*: Switched Debug Channels from bitfield to sequential enum 2025-02-22 15:51:24 +01:00
tunnelsociety
a8380de90e JANITORIAL: fix typo
in i18n note, and elsewhere while we're at it
2025-02-17 17:07:20 -08:00
Eugene Sandulenko
e2bb36ac3b
ASYLUM: Added I18N comments to keymappings 2025-02-12 15:51:19 +01:00
antoniou79
f17eb9980b ASYLUM: Use decimal values for angle tables
The angle unit is in degrees
2025-01-08 18:45:06 +02:00
antoniou79
a8e97ffc1b ASYLUM: Fix crash for game menu
And also clean up code and fix eyes movement to match original

This fix was proposed by eriktorbjorn in a previous PR https://github.com/scummvm/scummvm/pull/6383 (now closed in favor of this one).

This prevents an overflow for int32 in Actor::getAngle() for the calculation of the "index" variable value, which would happen (before) when diffY would be >= 0x800000 (ie. 2^23) and was multiplied by 256 (ie. 2^8). This, in the context of the game's main menu would happen when moving the cursor to the top part of the screen.

The code in getAngle() is also cleaned up to be more readable.

An additional fix for the values of angleTable03[] is included, since previously it was populated by wrong hex values. What seems to have happened here was that the decimal values were wrongly entered as hex values by putting the "0x" prefix on the literal.

This is a potential fix for bug ticket: https://bugs.scummvm.org/ticket/15658
2025-01-08 18:45:06 +02:00
Torbjörn Andersson
caedf27253 ASYLUM: Initialize variables to silence Valgrind warnings 2025-01-03 21:42:12 +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
fdecb6afca ENGINES: Add components to configure.engine's explanatory comment 2024-12-25 00:34:39 +01:00
Vladimir Serbinenko
036798d614 ASYLUM: Add more colors for Chinese version
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
2024-09-15 21:48:17 +03:00
Cameron Cawley
421cb1f087 COMMON: Rename common/math.h to common/intrinsics.h 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
a98eb7b307 ASYLUM: Allow skipping cutscenes with any key or joystick button 2024-06-26 10:28:09 +03:00
Cameron Cawley
c08d7e3193 ASYLUM: Unify cancel event handling for puzzles and encounters 2024-06-26 10:28:09 +03:00
Cameron Cawley
3922c71287 ASYLUM: Use keymapper actions for the resource viewer 2024-06-26 10:28:09 +03:00
Cameron Cawley
bdc07c126d ASYLUM: Implement moving with the arrow keys 2024-06-26 10:28:09 +03:00
Cameron Cawley
7e9ed82d68 ASYLUM: Use the keymapper for binding the middle mouse button 2024-06-26 10:28:09 +03:00
Cameron Cawley
fe9dabec20 ASYLUM: Simplify the console code 2024-06-26 10:28:09 +03:00
Cameron Cawley
3e4640a7ed ASYLUM: Use the actor constants in more places 2024-06-26 10:28:09 +03:00
Cameron Cawley
1357bfe672 COMMON: Avoid including engine headers in common code for DebugChannelDef 2024-06-20 20:15:57 +01:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Josu Igoa
fec22f022a ASYLUM: Add basque language fan translation 2024-01-30 11:49:53 +03:00
Cameron Cawley
f3fbd2477c GRAPHICS: Allow specifying separate xdpi and ydpi values in loadTTFFont 2024-01-08 23:41:50 +01:00
Cameron Cawley
30b977c272 DETECTION: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe
979b7f3669 ASYLUM: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
ea82cce813 ASYLUM: Explain that demo does not support save/load 2023-12-08 12:21:16 +01:00
Eugene Sandulenko
ec2dd2726b ENGINES: Added optional parameter to canSave/LoadGameStateCurrently() for indicating the reason 2023-12-08 12:21:16 +01:00
Cameron Cawley
d8cca29783 BACKENDS: Allow filling part of the screen with OSystem::fillScreen 2023-08-06 23:03:46 +02:00
BLooperZ
150984d11f ASYLUM: Add Hebrew board puzzle 2023-07-16 23:53:26 +03:00
elasota
b6b0b35045 ASYLUM: Quiet switch with no cases warning 2023-07-08 22:02:00 +03:00
Vladimir Serbinenko
0b2c54ad07 ASYLUM: Fix use-after-free
String goes out of scope but its c_str is still used. Keep a reference while
we still need it.
2023-05-11 00:23:45 +03:00
Miro Kropacek
8363aeacef ASYLUM: Use standard surface handling
This reverts commit 39c53260 because it is no longer needed - cursor
surfaces are now safely handled. This also opens door to optimized
functions from the Graphics library.
2023-04-09 13:12:06 +02:00
Miro Kropacek
8e1aa562a3 ASYLUM: Use new CursorMan with cursor surface 2023-04-09 13:12:06 +02:00
Cameron Cawley
75e8dd71b7 ASYLUM: Select the best pixel format for video playback 2023-04-05 12:45:13 +02:00
Miro Kropacek
39c53260a2 ASYLUM: Fix rendering if width != pitch in 8bpp
The reason why the engine needs linearly allocated surface is
Cursor::update() which passes cursor surfaces directly to
CursorMan::replaceCursor().
2023-04-03 21:19:49 +02:00
Vladimir Serbinenko
5932acf808 ASYLUM: Decrease Chinese font size to 16 closer to original 2023-03-17 00:40:22 +01:00
Donovan Watteau
fef8c97303 ASYLUM: Fix "an" typo 2023-03-16 14:47:28 +01:00
Vladimir Serbinenko
6baaf9c54a ASYLUM: Support rendering Chinese text 2023-02-28 02:29:51 +01:00
Vladimir Serbinenko
c424bc3ea6 ASYLUM: Replace drawChar with drawASCII
This makes more sense for pseudographics
2023-02-28 02:29:51 +01:00
Vladimir Serbinenko
43b42b2912 ASYLUM: Change getSurface to return a mutable surface
This is to allow rendering TTF on the screen
2023-02-28 02:29:51 +01:00
Vladimir Serbinenko
f7480f2cca SANITARIUM: Add detection entries for Chinese version 2023-02-28 02:29:51 +01:00
BLooperZ
dd0d6acdb6 ASYLUM: Support hebrew fan-translation 2023-02-20 10:50:57 +03:00
alxpnv
9bcd0cfd97 ASYLUM: fix holding Esc only dismisses one line of dialog
Bug no. 14059
2023-01-23 13:43:16 +03:00
alxpnv
8cd02a3fa3 ASYLUM: add a setting to control animations speed 2023-01-19 16:15:34 +03:00
Eugene Sandulenko
8f8d522913
COMMON: Move achievements.* to engines/ 2022-12-02 00:12:22 +01:00
alxpnv
3a17edceaa ASYLUM: rename Actor::clearFields() 2022-11-02 14:18:07 +03:00
alxpnv
e2e3ec2dd5 ASYLUM: fix showing Sarah's reflection in Chapter 4b 2022-11-02 13:57:01 +03:00