79 Commits

Author SHA1 Message Date
Paul Gilbert
c4457ce443 AGS: Changed ComponentHandlers array from being global objects 2022-05-31 18:46:33 -07:00
Paul Gilbert
8e55de7b77 AGS: Changed sccmd_info array from being global objects 2022-05-31 18:33:21 -07:00
Paul Gilbert
a2a5f2575d AGS: Reorganized few cc_ headers
From upstream ea1f8b9ece69fc7c49c4d3aa7b9af51c4ca736e5
2022-05-05 22:41:07 -07:00
Torbjörn Andersson
44eb3c9076 AGS: Don't create _music until AGSEngine::run()
If it's done in the constructor it's not possible to use extrapath, and
that may cause problem, e.g if people want to use the MT-32 emulator
for games that use MIDI music.
2022-04-20 18:38:29 +02:00
D G Turner
b548bcfa28 AGS: Fix Undefined Macro Compiler Warnings
These are emitted by GCC when -Wundef is passed.

The AGS_PLATFORM_DEFINES_PSP_VARS may have previously caused those variables
to be present since undefined macros are assumed to be 0, thus the test would
have passed.
2022-03-16 09:13:02 +00:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Coen Rampen
f9630d6981 AGS: Fix MIDI volume control
MIDI user volume setting was not applied until the start of the next track.
Fixed this by implementing Engine::syncSoundSettings.
2021-09-10 15:02:27 +02:00
Thierry Crozat
e4d1871a6e AGS: Translate error dialog messages 2021-08-24 21:48:13 +01:00
Thierry Crozat
aa114a259c AGS: Improve error message for pre-2.5 games 2021-08-24 02:03:45 +01:00
Thierry Crozat
3c81027efa AGS: Allow using pixel format with different color depth than requested
This allows to play 32 bit games on iOS (the backend currently only
supports 16 bit color depth).
2021-08-22 19:45:20 +01:00
Paul Gilbert
d90cb0d203 AGS: Removed excessive headers containing random group of includes
From upstream 9e5149457a4638694fb1366b3fa59b08816f522c
2021-08-17 21:31:56 -07:00
Paul Gilbert
3a3ff8aa5a AGS: Extend force AA fix to Rango as well 2021-08-07 20:26:34 -07:00
Paul Gilbert
71de3facb2 AGS: Better fix for Gemini Rue German accents 2021-08-07 16:49:37 -07:00
Paul Gilbert
f9bc18c58a AGS: Fix loading sound effects in AGSWaves 2021-07-20 21:17:41 -07:00
Paul Gilbert
0cf9a86286 AGS: Further optimization for 32-bit screen rendering
I tried once again to refactor the AGS codebase to use an RGBA
format that can directly blitted to the screen for performance,
but once again couldn't locate all the places that assume that
specific pixel format. So to at least provide some optimization,
I've implemented two fast for loops that handle converting the
AGS surface pixels to RGBA or ABGR for rendering
2021-07-11 20:06:32 -07:00
Paul Gilbert
ee75794504 AGS: Cleanup of usage of ScummVM Graphics::Screen 2021-07-11 14:06:26 -07:00
Paul Gilbert
70a9d787c7 AGS: Add message if platform can't support 3Gb datafile for Strangeland 2021-07-08 18:24:28 -07:00
Paul Gilbert
135ac365ac AGS: Fix error message for pre-2.5 games 2021-07-07 18:11:42 -07:00
Paul Gilbert
f8ac707b24 AGS: Add more explicit error message when trying to run pre-2.5 games 2021-07-05 20:11:37 -07:00
Paul Gilbert
aec0a06700 AGS: Enable setting paletted graphics mode 2021-06-20 19:15:56 -07:00
Paul Gilbert
eb1e337edd AGS: Removed String's "const char*" conversion operator
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert
91c7eeef14 AGS: Provided String method variants with "const String&" argument
From upstream 1e33b06b3329b6b0a79c9fe818c012741c08ae2a
2021-06-13 21:08:57 -07:00
Paul Gilbert
701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
ysj1173886760
29e39e0d55 AGS: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Thierry Crozat
990ab7fe2d AGS: Do not allow to load and save in non-blocking events
The AGS engine does not supports this and has a check when
saving that errors out when trying to save during a non-blocking
event (see can_run_delayed_command() call at the start of
save_game()). There is no such check when loading, but it
causes a crash. This can easily be reproduced in QfGII.
2021-04-16 01:14:46 +01:00
Thierry Crozat
ba15b9c84b AGS: Add debug flag to enable script dump 2021-04-14 23:54:48 +01:00
Orgad Shaneh
78c48fd9df AGS: Remove unused private members and globals
Detected by Clang.
2021-04-09 19:18:07 -07:00
Thierry Crozat
fece6ea40f AGS: Add option to force using antialiasing for text rendering 2021-04-08 00:45:46 +01:00
Cameron Cawley
a1890ede9c BASE: Avoid calling PluginMan.getEngineFromMetaEngine where possible 2021-04-05 15:33:23 +01:00
Paul Gilbert
ce22f46e8a AGS: Respect ScummVM volume controls
I experimented, but couldn't get the AGS in-game volume
controls to map to the ScummVM volume controls. The reason
being that the games frequently set the volume during their
startup, sometimes multiple times. The best I could do was
set up the different sound types in AGS to use the
Audio::Mixer::SoundType enum, so that any ScummVM volume
control will be respected in addition to the AGS volumes.
2021-04-02 21:18:11 -07:00
Thierry Crozat
33b918c8b5 AGS: Use backend preferred pixel format
This fixes using the engine on iOS.
2021-04-01 00:39:00 +01:00
Thierry Crozat
3d36f38221 AGS: Allow showing fps using config file
To show the fps in ags games you can now add display_fps=true
in the ScummVM config file.
2021-03-31 22:01:23 +01:00
Thierry Crozat
0b68518ae6 AGS: Adding flag to debug file paths 2021-03-20 22:43:36 +00:00
Thierry Crozat
8de62d8182 AGS: Add custom debug console commands
Currently two commands are supported, one to list the AGS
DebugManager group verbosity levels, and one to change
those. This allows to enable and disable debug output.
2021-03-15 00:56:01 +00:00
Paul Gilbert
3e3d4e9097 AGS: Move stand-alone methods from ags.cpp to their own file 2021-03-13 21:34:56 -08:00
Paul Gilbert
5a6b282c7c AGS: Move engine_setup.cpp globals to Globals 2021-03-08 20:06:37 -08:00
Paul Gilbert
37b563ef35 AGS: Move game globals to Globals 2021-03-07 19:23:24 -08:00
Paul Gilbert
fd5c11f382 AGS: Move debug globals to Globals 2021-03-06 15:11:38 -08:00
Paul Gilbert
94423abaa1 AGS: Move usetup to Globals 2021-03-05 21:36:00 -08:00
Paul Gilbert
b6dd902163 AGS: Move script.cpp globals into Globals 2021-02-28 16:41:48 -08:00
Paul Gilbert
ef245e2104 AGS: Move thisroom to Globals 2021-02-28 13:27:21 -08:00
Paul Gilbert
334b2a9d48 AGS: Move play to Globals 2021-02-27 15:31:34 -08:00
Paul Gilbert
1a8ae27b58 AGS: Move game & spriteset into Globals 2021-02-26 21:28:53 -08:00
Martin Gerhardy
485a229007 AGS: fixed potential buffer overflows due to missing null byte 2021-02-26 11:19:11 +01:00
Paul Gilbert
3ad8c5cb03 AGS: Drawing fixes for blitting and sprites 2021-02-20 14:37:29 -08:00
Paul Gilbert
a28dbd147f AGS: Fix 32-bit pixel format to match AGS 2021-02-13 11:38:55 -08:00
Paul Gilbert
50eeb1b07d AGS: Add variation of Steam plugin for Blackwell Epiphany 2021-02-11 18:51:31 -08:00
Paul Gilbert
8aa4a9cf6b AGS: Shift game scanner to be available via command line 2021-02-09 19:54:33 -08:00
Paul Gilbert
f548bdae38 AGS: Cleanup of error message display 2021-02-07 19:19:39 -08:00
Paul Gilbert
de985f566e AGS: Remove unused local 2021-02-06 16:37:31 -08:00