113866 Commits

Author SHA1 Message Date
Thierry Crozat
d70308096c AGS: Fix savegame screenshots for paletted games
We were passing an empty palette to blit, causing
black screenshots for example in Trilby's Notes.
Screenshots seemed to be working already in some
other games, such as Black Cauldron, and I have
no idea how.
2021-03-13 03:28:22 +00:00
Thierry Crozat
346da4bac6 AGS: Fix setting the game palette
The allegro set_palette_range includes both the first
and last indexes passed, but we were excluded the last
index, which means we copied one less color than we
should. This was well visible in Trilby's Notes right
from the start of the game.
2021-03-13 03:28:22 +00:00
Thierry Crozat
8fb9b5f9d5 AGS: Fix FillDirList implementation
This function is used to list files that match a given pattern.
For example Kathy Rain uses it to list ./*.tra files. The
original engine uses al_findfirst() and al_findnext().
This fixes listing the available languages in the Kathy
Rain in-game options.
2021-03-13 03:28:22 +00:00
Thierry Crozat
1bad267805 AGS: Map savegame names and other save files to use gameid
AGS uses agssave.xxx for its savegames, and it was already
changed to use the gameid in ScummVM, except when this is
called from scripts. Some games, such as If On A Winter's
Night Four Travelers, access savegames from scripts and
those are now mapped to ScummVm names. This solves the
missing Continue menu on the start screen for IOAWN4T
when we already saved the game.

Some games also save additional files in the save game
directory, and they can have generic names such as
'playersettings.dat', or 'user.cfg', and since we use
the same savegame path for all games, to avoid any
conflict we now prepend the game target name to all the
files created or read from there.
2021-03-13 03:28:22 +00:00
Paul Gilbert
f76f9cc781 AGS: Added detection entries 2021-03-12 19:05:50 -08:00
Paul Gilbert
b180fc3623 AGS: Fix duplicated if block in AGSParallax plugin 2021-03-12 18:59:57 -08:00
ScummVM-Translations
1f2b3fbdcf 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/
2021-03-13 02:24:13 +00:00
Cameron Cawley
899a679d46 PRIVATE: Simplify the cursor code 2021-03-12 23:24:03 -03:00
VAN-Gluon
89421b8187 I18N: Update translation (Japanese)
Currently translated at 80.2% (1271 of 1583 strings)
2021-03-12 22:24:43 +00:00
D G Turner
52beeb7dbd GUI: Fix GCC Signed vs. Unsigned Compiler Warning in Launcher 2021-03-12 20:47:23 +00:00
Paweł Kołodziejski
433dfc6981 ICB: Added initial support for keymapping 2021-03-12 21:45:16 +01:00
Martin Gerhardy
a713e02474 TWINE: die if fall height is too much 2021-03-12 21:02:23 +01:00
Martin Gerhardy
4fca870a30 TWINE: use addLife method 2021-03-12 21:02:23 +01:00
Martin Gerhardy
67a9213531 TWINE: reversed missing parts of life script 2021-03-12 21:02:23 +01:00
Martin Gerhardy
72ddd3ec46 TWINE: added operators to DrawListStruct for easier use of algorithms from common/ 2021-03-12 21:02:23 +01:00
Martin Gerhardy
d1805f2828 TWINE: reduced scope 2021-03-12 21:02:23 +01:00
D G Turner
37f2751006 AD: Fix Signed vs. Unsigned GCC Compiler Warning 2021-03-12 19:51:39 +00:00
D G Turner
0d6e4d647a COMMON: Minor Formatting Fix in String Header 2021-03-12 19:50:49 +00:00
Lothar Serra Mari
28ba918b05 I18N: Update translation (German)
Currently translated at 99.9% (1582 of 1583 strings)
2021-03-11 19:10:02 +00:00
ScummVM-Translations
edcfaa533b 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/
2021-03-11 16:52:50 +00:00
sluicebox
6853b5101f SCI: Convert PQ2 speed workaround to script patch
Cleans up kScriptID and speeds up startup
2021-03-11 08:50:46 -08:00
ScummVM-Translations
a40c216236 I18N: Update translations templates 2021-03-11 13:47:37 +00:00
sluicebox
bfd4170532 SCI32: Fix kStringToInteger space parsing
Fixes reading settings from game.opt in HOYLE5, where most strings
begin with spaces. SSCI called atoi() which handles this, and so did
we, until it was changed during a large refactor in
3f9172676526aa04983f148d1262af6ea9fb53ef
2021-03-11 05:47:02 -08:00
Thierry Crozat
8cadb1647a AGS: Add detection entry for 'If On A Winter's Night' Windows version 2021-03-11 13:06:01 +00:00
Thierry Crozat
6a2bb1ea96 AGS: Use full game title in detection entry 2021-03-11 12:23:56 +00:00
Paul Gilbert
3a0a70bc43 AGS: Move more game.cpp globals to Globals 2021-03-10 21:01:11 -08:00
Paul Gilbert
bad09b641f AGS: Move translation.cpp globals to Globals 2021-03-10 20:49:59 -08:00
Paul Gilbert
9c6dd73349 AGS: Move cc_dynamicobject.cpp globals to Globals 2021-03-10 20:43:37 -08:00
Paul Gilbert
b91cae25d6 AGS: Move walkbehind.cpp globals to Globals 2021-03-10 20:31:46 -08:00
Paul Gilbert
236250a945 AGS: Move display.cpp globals to Globals 2021-03-10 20:14:15 -08:00
Paul Gilbert
d61b6f98c5 AGS: Move cscdialog.cpp globals to Globals 2021-03-10 20:14:15 -08:00
Paul Gilbert
d605b11c4f AGS: Make turnlooporder array const 2021-03-10 20:14:15 -08:00
neuromancer
c133fec9eb PRIVATE: fixed memory leak on vs picture scaling 2021-03-10 22:16:10 -03:00
Martin Gerhardy
5e09d76e4b AGS: added detection entry for 'If On A Winter's Night' 2021-03-10 05:44:42 +01:00
D G Turner
33b48e76c4 WINTERMUTE: Fix GCC Compiler Warnings from Unused WIP Variables 2021-03-10 07:57:31 +00:00
Martin Gerhardy
33424e6c86 AGS: added blackwell plugin to resonance to fix the startup 2021-03-10 07:59:30 +01:00
Paul Gilbert
a5c4876862 AGS: Move mouse.cpp globals to Globals 2021-03-09 21:15:12 -08:00
Paul Gilbert
c7b1836e53 AGS: Move invwindow.cpp globals to Globals 2021-03-09 21:14:04 -08:00
Paul Gilbert
b38289e5aa AGS: Move room.cpp globals to Globals 2021-03-09 21:14:04 -08:00
Paul Gilbert
f6e83fa57e AGS: Move sys_events.cpp globals to Globals 2021-03-09 21:14:03 -08:00
Paul Gilbert
dbdac3c3cf AGS: Move walkablearea.cpp globals to Globals 2021-03-09 21:14:03 -08:00
Paul Gilbert
2d82d32577 AGS: Move draw.cpp globals to Globals 2021-03-09 21:14:02 -08:00
Paul Gilbert
f97407f6ca AGS: Move game_run.cpp globals to Globals 2021-03-09 21:14:02 -08:00
Thierry Crozat
d0ce475e06 AGS: Fix antialiased stretch of sprite
This fixes missing actors in some games, such as Blackwell
Deception (on the boat deck where the actors are scaled to
90% or their original size).

The issue was that Allegro has defines to indicate which color
depth are available, and we removed those. But they are used
in the antialiasing code.
2021-03-10 00:28:29 +00:00
Thierry Crozat
a2ed9906e4 AGS Cleanup surface creation
The main changce is that create_bitmap() now uses the current
get_color_depth(), as it is supposed to (according to the Allegro
documentation).

Also it remove cases where the surface could be created without the transparent color.
2021-03-10 00:28:29 +00:00
ScummVM-Translations
19bf58f8c6 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/
2021-03-09 16:36:18 +00:00
Thierry Crozat
2a02d999bd AGS: Fix unresolved import 'Mouse::xxx' errors when starting games 2021-03-09 16:35:30 +00:00
ScummVM-Translations
736c2c29ac I18N: Update translations templates 2021-03-09 11:33:33 +00:00
Thierry Crozat
6ef406ac20 AUDIO: Fix compilation with Fluidsynth2 2021-03-09 11:32:57 +00:00
sluicebox
cbaae38721 EVENTS: Fix mouse position outside active area
Fixes regression introduced in 35b9cccbde37d20fdbc10254d4ab8cc260551e84
which ignored SdlGraphicsManager::notifyMousePosition() return value
2021-03-09 08:18:56 +01:00