Commit Graph
9740 Commits
Author SHA1 Message Date
Cameron Cawley 68fe8f77da DS: Remove duplicaFilesystemFactory creation 2024-03-06 23:37:20 +00:00
Cameron Cawley 5fdb5edd20 DS: Disable stdio buffering from newlib 2024-03-05 22:47:35 +00:00
elasota 7cfae77aad DISTS: Fix out-of-source-tree Win builds and multiple deps problems
Make .rh files dependent on their contents (maybe they should be deps of the .rc file?)
Make .rh files dependent on the .mk file that their item lists come from
Fix .rh files not creating destination directory
Fix .rh dependencies of .rc file being source-relative instead of build-relative
Fix .rh clean paths being source-relative instead of build-relative
Fix .rh generation appending to the old .rh instead of overwriting
2024-03-02 18:09:12 +01:00
elasota 4dc9ef2771 DISTS: Move engine data defs to dedicated files 2024-02-27 17:12:15 +01:00
Christian Kündig 82d0a4b06c EMSCRIPTEN: Load icons directly (not from an archive) 2024-02-27 17:07:13 +01:00
Christian Kündig e36640efdf EMSCRIPTEN: GRAPHICS: Enable OpenGL graphics mode by default 2024-02-27 17:07:13 +01:00
Christian Kündig 7bdadaefae EMSCRIPTEN: GRAPHICS: Fix screenshots 2024-02-27 17:07:13 +01:00
Christian Kündig bc73ee4b71 EMSCRIPTEN: Add support for saving logfiles 2024-02-27 17:07:13 +01:00
Christian Kündig 45c5f4673a EMSCRIPTEN: Cleanup file paths 2024-02-27 17:07:13 +01:00
Christian Kündig 4ea65b1a96 EMSCRIPTEN: Update Emscripten and cleanup build scripts 2024-02-27 17:07:13 +01:00
Le Philousophe 2a7241a97c PLUGINS: Implement NONE relocations
ARM emit them in some cases and add it to MIPS for completeness

Fixes: #14905
2024-02-24 20:48:21 +01:00
Le Philousophe 6342045cc3 BACKENDS: OPENGL: Don't take the alpha channel from the game texture
It's not always set correctly by engines (AGS) and a fill call to clear
the screen will set it to 0 along with the other components.
Setting the framebuffer to some transparent value is not something we
intend to do as this let the content underneath the drawing texture
visible like it's the case on ChromeOS.
This has been reported here: https://forums.scummvm.org/viewtopic.php?p=99293
2024-02-24 16:43:14 +01:00
Miro Kropacek 9152c3dc4e BACKENDS: ATARI: Buffer also mouse buttons state
Now double-click works also on really slow hardware. And Hatari.

Also, partially revert commit 01a2d2ed because events can't be passed
to the (multitasking) OS. So basically let's hope that it works fine now
even without handling IKBD overruns. I'm not able to replicate the issue
with Hatari + FF + slow UI + mouse movement anymore.
2024-02-24 06:21:43 +01:00
PushmePullyu 037131d977 KEYMAPPER: Add method isEnabled to Common::Keymapper 2024-02-23 18:59:27 -10:00
Miro Kropacek 01a2d2edab BACKENDS: ATARI: Call original keyboard/mouse routines
This helps to solve the issue when one pushes 'Return' immediately after
Hatari's start. This issue appeared after introducing the
interrupt-driven audio mixer.

Not sure whether this was a real bug but it's much cleaner
implementation now anyway.
2024-02-24 03:54:54 +01:00
Miro Kropacek f41a678ba1 GRAPHICS: ATARI: Utilize dlmalloc
- every malloc is now aligned on 16 bytes

- no need for the hidden pointers

- ct60_vmalloc() is called only once, the rest is handled
  by dlmalloc (SV XBIOS' vmalloc is pretty fragile)
2024-02-24 03:54:54 +01:00
Miro Kropacek fda1ce1672 BACKENDS: ATARI: Change dma playback to interrupt-driven
This not only decreases the amount of XBIOS calls but also avoids
repeating the sample buffer in case of a heavier CPU load.

Also clean up the mixer code.
2024-02-24 03:54:54 +01:00
Lars Sundström 414c427fd6 IOS7: Use new key overload functions
Call the overload functions for key inputs and return the results
as an array of UIKeyCommands.
2024-02-23 22:41:18 +01:00
Lars Sundström c5ef6ecb77 IOS7: Add functions creating UIKeyCommands for special keys
Use the helper function to create an array of UIKeyCommands for the
END, HOME, PAGE UP, PAGE DOWN and the ESC keys. Add a generic handler
function that decides which action for which key.

This allows the application to register key presses of these keys,
however some of them requires iOS 13.4 or later.
2024-02-23 22:41:18 +01:00
Lars Sundström 25d7787d9f IOS7: Add functions creating UIKeyCommands for Fn keys
Use the helper function to create an array of UIKeyCommands for the
Fn keys. Add a generic handler function that decides which action
for which key.

This allows the application to register key presses of the Fn keys,
however only supoorted in iOS 13.4 and later.
2024-02-23 22:41:18 +01:00
Lars Sundström a8314ea05b IOS7: Add functions creating UIKeyCommands for number keys
Use the helper function to create an array of UIKeyCommands for the
number keys. Add a generic handler function that decides which action
for which key.

Since not all keyboards have the function keys, Fn1-Fn12, e.g. the
Apple Magic Keyboard for iPads, map these keys to the number keys
when pressed together with the CMD modifier key. Fn11 and Fn12
requires CMD + Shift as modifier keys.
2024-02-23 22:41:18 +01:00
Lars Sundström 8baa1de5d0 IOS7: Add functions creating UIKeyCommands for roman letter keys
Use the helper function to create an array of UIKeyCommands for the
roman letter keys. Since most of the games supports input of roman
letters, overload these keys. Keys with other characters than these
are not overloaded and will therefore trigger the call to the
delegate function:
"textField:shouldChangeCharactersInRange:replacementString:"
and will therefore still be passed to the IOS7 event handler.
However no modifier flags will be passed for those and they will not
support repeated presses.

Add a generic handler function that decides which action
for which key.
2024-02-23 22:41:18 +01:00
Lars Sundström 2bbbdc75fb IOS7: Add functions creating UIKeyCommands for arrow keys
Use the helper function to create an array of UIKeyCommands for the
arrow keys. Add a generic handler function that decides which action
for which key.

Since not all keyboards have the PAGE UP/DOWN nor HOME/END keys,
e.g. the Apple Magic Keyboard for iPads, map these keys to the arrow
keys when pressed together with the CMD modifier key.
2024-02-23 22:41:18 +01:00
Lars Sundström 99fb3faf9d IOS7: Add helper functions to overload keys
Currently the key inputs are sent to the IOS7 event handler on calls
to the delegate function:
"textField:shouldChangeCharactersInRange:replacementString:"
So when typing on either the software keyboard or a connected HW
keyboard the input is handled by the hidden textfield that is in
focus. The delegate is called on each key input and the character
typed is passed to the IOS7 event handler.

Doing as above has the drawback that if they user holds down a key,
common in games when shooting or moving, the key event is only sent
once. The delegate function is only called once per distinct key
press.

By implementing the keyCommands function and create UIKeyCommands
for a set of keys, the system will call a defined callback function.
This also enables repeatedly calls as long as the key is held down.

Modifier keys can also be configured to create UIKeyCommands to
trigger custom actions. This way we can overload the key functions
when they are pressed at the same time as a modifier key.

Add helper funtions that can be used to create UIKeyCommands for
a set of keys. Keys are represented by their input, e.g. the key
for the character 'c' is defined as a string with only one char,
the 'c', while special keys are represeented by strings defined
by the OS.

Register UIKeyCommands for all types of modifier keys and add a
function that can convert system modifier flags to flags used by
ScummVM.
2024-02-23 22:41:18 +01:00
Lars Sundström c8d93ad820 IOS7: Pass key modifier flags to key events
Prepare the backend to send key modifier flags in the key events.
No modifier flags are sent at this point but will be added in
upcoming commits.
2024-02-23 22:41:18 +01:00
Hubert Maier d6b08d4d8d AMIGAOS: Remove local aspect ratio setting 2024-02-22 14:56:10 +01:00
Hubert Maier 7afb1708b0 AMIGAOS: Fix typo 2024-02-22 14:56:10 +01:00
rsn8887 bce07435c1 BACKENDS: (PSP) Include plugins when building psp_release 2024-02-21 16:58:13 -06:00
rsn8887 29f808bada BACKENDS: (PSP) Fix no rule error in makefile 2024-02-21 16:40:09 -06:00
rsn8887 042dfc01a2 BACKENDS: (PSP) Improve makefile 2024-02-21 13:18:12 -06:00
rsn8887 22f0f63f12 BACKENDS: (PSP) Improve analog stick pointer control 2024-02-20 19:23:19 -06:00
NoSFeRaTU f19ac248bd MM: XEEN: Initial MT32/LAPC-1 support
Some non-essential subroutines in fxEndSubroutine is not implemented.
Support is currently the same as original game, so Roland GS and there are no conversion to GM.
Music tracks requires at least MT32-compatible device with support of capital tone fallback in ROM.
Game is also extensively uses extended sounds found in CM-32L for sound effects, MT-32 will produce silence for those.
So using in combination with real CM-32L or emulated one is the best for now.
2024-02-17 13:16:51 -10:00
rsn8887 fcddbb0fc1 BACKENDS: (PSP) Fix missing General Midi device error 2024-02-16 10:25:13 -06:00
rsn8887 5fe3c560b6 BACKENDS: (Switch/PSP2) Fix General Midi device error 2024-02-16 10:12:03 -06:00
rsn8887 9b1ff3a2ce SWITCH: remove dual panel touch remnants from Vita 2024-02-15 06:41:54 -06:00
Giovanni Cascione 6fa7403b8b LIBRETRO: BUILD: add -rdynamic for debug builds 2024-02-12 23:13:53 +01:00
Giovanni Cascione 3904a7dd15 LIBRETRO: add process_key_event_wrapper 2024-02-12 23:13:23 +01:00
Giovanni Cascione d3ecd6c184 LIBRETRO: fix condition for playlist separator 2024-02-12 23:12:56 +01:00
Giovanni Cascione 1acd07483a LIBRETRO: remove unused vars 2024-02-12 23:12:22 +01:00
Torbjörn Andersson 57893f8d3a SURFACESDL: Refresh cursor scaler along whith standard scaler (bug #14872)
Otherwise, the cursor scaler and standard scaler may be different types,
which can lead to scaling the cursor with a scaler that normally doesn't
allow it. In this particular bug report, it caused ScummVM to crash.
2024-02-11 16:34:39 +01:00
Giovanni Cascione 2927be0280 LIBRETRO: add retroarch playlist path retrieving 2024-02-05 23:21:23 +01:00
Giovanni Cascione fc097c3dbf LIBRETRO: add setLibretroDir 2024-02-05 23:21:01 +01:00
Giovanni Cascione 3d5c3d7afa LIBRETRO: remove THREAD_SWITCH_UPDATE short loop 2024-02-05 23:20:46 +01:00
Giovanni Cascione cf30fe324f LIBRETRO: refactor and improve audio run loop 2024-02-05 23:20:30 +01:00
Giovanni Cascione f30910e636 LIBRETRO: fix free audio buffers 2024-02-05 23:20:13 +01:00
Vladimir Serbinenko 0d2f87768e MIYOOMINI: Enable neon and freetype2 in documented compilation script 2024-01-30 05:01:36 +02:00
Miro Kropacek 276103b0aa BACKENDS: ATARI: Fix a crash
_offsettedSurf must have the original screen dimensions, similar as done in
AtariGraphicsManager::Screen::reset().

Strangely, this bug was reproducible only in MagiC and not in FreeMiNT+MP.
2024-01-28 21:59:13 +01:00
Miro Kropacek e1bda48e05 BACKENDS: ATARI: Change version to 2.9.0 2024-01-28 21:59:13 +01:00
Miro Kropacek 3e85aa3f4b BACKENDS: ATARI: Provide dlmalloc locally
It's much cleaner and easier to use than to depend on an unofficial mintlib fork...

Plus we are going to use its MSPACES feature anyway.
2024-01-28 21:59:13 +01:00
Torbjörn Andersson 13996ea3d1 SURFACESDL: Remove redundant _mouseOrigSurface check
It's already checked a few lines above.
2024-01-28 14:07:33 +01:00