Commit graph

10177 commits

Author SHA1 Message Date
Giovanni Cascione
742f88bd15 LIBRETRO: add GUI resolution settings 2024-11-02 00:16:47 +01:00
Giovanni Cascione
207a65c8eb LIBRETRO: increase initial value of max w/h to max engines request 2024-10-29 00:31:16 +01:00
Giovanni Cascione
d7276b9e6b LIBRETRO: add readability test to isDirectory() and getParent() 2024-10-29 00:30:46 +01:00
Giovanni Cascione
db6469306a LIBRETRO: add neon support 2024-10-29 00:30:23 +01:00
Le Philousophe
70b1b16a93 ANDROID: Monitor shader changes when building assets 2024-10-27 20:02:39 +01:00
Le Philousophe
0e86eda0be BACKENDS: FS: Fix Atari
Atari only support 8.3 file names and adding a tmp suffix for atomic
writes breaks this.
Make the WriteMode_WriteAtomic flag available in all cases and fall back
on unatomic write in this case.
2024-10-27 11:46:16 +01:00
Le Philousophe
1a1315ed2b ANDROID: Drop androidx appcompat requirement 2024-10-27 09:43:34 +01:00
Giovanni Cascione
f6ff9f3d6f LIBRETRO: move paths checks to applyBackendSettings() 2024-10-25 20:27:28 +02:00
Giovanni Cascione
3a94cf76c0 LIBRETRO: add path checks on settings change 2024-10-25 20:27:03 +02:00
Giovanni Cascione
dbc7039622 LIBRETRO: split settings path checks in separate function 2024-10-25 20:26:39 +02:00
Giovanni Cascione
576e2251c7 LIBRETRO: add checks for iconspath 2024-10-25 20:26:05 +02:00
Giovanni Cascione
27c7b5e5cb LIBRETRO: add readability condition to load paths 2024-10-25 20:25:42 +02:00
Eugene Sandulenko
60d2b72fb1
BACKENDS: OPENGLSDL: Fix potential division by zero. CID 1452787 2024-10-25 15:59:57 +02:00
Giovanni Cascione
133eea820c LIBRETRO: fix pointer input coordinates 2024-10-22 19:40:07 +02:00
Rudi Heitbaum
8dffadf672 LIBRETRO: BUILD: Allow fallback to curl if wget is missing (#68) 2024-10-22 19:39:54 +02:00
Giovanni Cascione
35f9f7eb71 LIBRETRO: handle resizing to native res in hw rendering 2024-10-22 19:39:37 +02:00
Giovanni Cascione
79e0d08e91 LIBRETRO: JANITORIAL: cleanup 2024-10-22 19:39:10 +02:00
Giovanni Cascione
a874244a6d LIBRETRO: rewrite surface graphics manager and split sources 2024-10-22 19:38:50 +02:00
Vladimir Serbinenko
cb1b3d7545 SAILFISH: Enable standard engine set
While on it remove stale variable
2024-10-21 00:20:35 +03:00
Le Philousophe
08c9131b1a BACKENDS: FS: Fix Dreamcast build 2024-10-15 22:45:50 +02:00
sluicebox
e61ad40d2f BACKENDS: WIN32: Use Win32 specific API to move file atomically
This avoids to remove the destination file before moving the temporary one.

Co-authored-by: Le Philousophe <lephilousophe@users.noreply.github.com>
2024-10-15 22:45:50 +02:00
Le Philousophe
fdd11d0714 BACKENDS: FS: Implement atomic file write for stdio stream backend
This implementation creates a temporary file (suffixed with .tmp) and
renames it to the expected file name when the file is closed.
If the renaming fails, the destination file is removed and renaming is
tried again to handle cases where renaming over an existing file is not
supported by the underlying OS.
2024-10-15 22:45:50 +02:00
Le Philousophe
a5f8df2d02 BACKENDS: Make sure log file is not written anymore when closing it 2024-10-15 22:45:50 +02:00
Le Philousophe
e61dac6c68 BACKENDS: Allow write streams to be created atomically
When creating an atomic write stream, the file is only created once it
is closed.
This can be done using a temporary file.
This commit only adds the API but not the proper implementation.
2024-10-15 22:45:50 +02:00
SupSuper
5fc91dfc96 WIN32: Fix missing include in Win9x 2024-10-15 09:48:58 +01:00
sluicebox
9eab979bfb WIN32: Make deleting save files UNICODE compatible 2024-10-14 23:03:37 -06:00
Lars Sundström
ef5e31aaa6 IOS7: Fix crash (abort) on boot
Some crash reports from AppStore was reported due to system abort
while trying to read the current touch mode on system startup.
When the ViewController loads it tries to read the touch mode to
know which icon to show. The scummvm system runs in a different
thread and might not have finished loading at the time.

This causes an uneccessary race condition and it's a bit hard to
abort the application in this scenario. It should be just fine to
return the default "Direct touch" mouse mode when this happens.
2024-10-14 20:37:26 +02:00
Lars Sundström
f460c6cb02 IOS7: Add margins to on-screen control buttons
The button images can become cropped if placed too close to the
corners on modern iPhones and iPads. This due to the squircle form
of the screen corners. iPhones have safe area insets that can be
used to calculate a margin. On iPads the safe area inset values
are 0, but still the button images can be cropped due to the round
form of the screen corners. Use a constant value of 10 in those
cases.

This looks good on devices with big screens (iPads) and smaller
screens (iPhone 12 mini).
2024-10-14 20:37:26 +02:00
Lars Sundström
f2b1bbd243 IOS7: Put burger menu button below touch mode button
Put the menu button below the touch mode button to remove the empty
gap while in the launcher. By putting the buttons along the right
side they interfere less with the game interface. This is how the
Android port place the buttons. Align the iOS port accordingly.
2024-10-14 20:37:26 +02:00
Lars Sundström
5ffb00df5d IOS7: Hide burger menu button when in launcher
The burger menu button doesn't fill any purpose while in the launcher.
Nothing happens when the user press the button in the launcher. This
is considered as bad user experience according to Apple guidelines.
The button must be hidden while in the launcher.

Show the menu button only while an engine is running.
2024-10-14 20:37:26 +02:00
D G Turner
3cbd38b96b BACKENDS: IMGUI: Fix Redundant Redeclaration GCC Compiler Warning 2024-10-12 22:40:23 +01:00
Martin Gerhardy
a3adb2933c BACKENDS: moved imgui_logger code from directory engine into backends code 2024-10-11 09:06:43 +02:00
Martin Gerhardy
610384ed36 DIRECTORY: prepare to split the imgui logger from directory engine
other engines could use the same code, too and thus we will move this into the backend module
2024-10-11 09:01:11 +02:00
Martin Gerhardy
059f0ca1d2 BACKENDS: added imgui window for showing a Graphics::Palette instance 2024-10-10 11:31:39 +02:00
Eugene Sandulenko
c27405ddf2
BACKENDS: IMGUI: Disable non-portable shell funcitons 2024-10-08 19:40:31 +02:00
Vladimir Serbinenko
7299aced88 SAILFISH: Fix typo in sailfish-main.cpp
Co-authored-by: Filippos Karapetis <bluegr@gmail.com>
2024-10-08 00:56:08 +02:00
Vladimir Serbinenko
aa902ac593 SAILFISH: Fix typo in README.md
Co-authored-by: Filippos Karapetis <bluegr@gmail.com>
2024-10-08 00:56:08 +02:00
Vladimir Serbinenko
b7f854ce78 SAILFISH: New port for SailfishOS
Still has some issues documented in README.md but is already playable
2024-10-08 00:56:08 +02:00
Martin Gerhardy
c50a0d7694 BACKENDS: added imgui header with helper functions 2024-10-07 20:01:37 +02:00
Eugene Sandulenko
cff87d8c2e
BACKENDS: IMGUI: Bumped to v1.91.3 docking branch
Commit b4c96355c9b51b54c4deb52e7d7cdfc7bf79bc2f from
https://github.com/ocornut/imgui/tree/docking

This adds global shortcuts and better table handling.

Update process:

1. In ScummVM backends/imgui directory:

  for i in `find .`;do cp -v ../../../../imgui/$i $i;done
  patch <scummvm.patch

2. Compile, test with launching engines using ImGui

3. Regenerate patch, in imgui directory:

  diff -rbu . ../scummvm/scummvm/backends/imgui/|grep -v ^Only >../scummvm/scummvm/backends/imgui/scummvm.patch

4. Commit
2024-10-07 18:36:00 +02:00
Eugene Sandulenko
b360465df6
BACKENDS: IMGUI: Updated patch with sdl2 renderer 2024-10-07 18:11:00 +02:00
Eric Warmenhoven
ea8d6d00ea LIBRETRO: BUILD: Fix iOS build 2024-10-07 14:27:59 +02:00
Andrew Martin
6359bd0533 IOS7: Share Apple Pencil input gestures with Touch input
- Mouse left click and long click gestures are shared between
 the Pencil and regular Touch inputs.
- Mouse right click and long click have Pencil specific gestures.
2024-10-04 23:15:13 +01:00
Andrew Martin
5603c5f7c9 IOS7: Add Apple Pencil input support 2024-10-04 23:15:13 +01:00
Hubert Maier
5e470cad09 BACKENDS: MORPHOS: Fix ASL lock on directory 2024-10-04 22:14:53 +02:00
Thierry Crozat
7c7a813fd8 MACOS: Migrate to Sparkle 2 API for updates 2024-10-04 21:58:34 +02:00
Alexander Tkachov
9dd3a6766c CLOUD: fix #15337
Fixes OneDrive sync by handling list of unexisting "saves" subdirectory.

Previously, code that worked with JSON didn't trigger, because string was intentionally malformed. If it wasn't, OneDriveTokenRefresher::finishError() would've treated it as JSON parse failure, tried to fix it, and call finishJson() instead of finishError().
2024-10-04 16:23:59 +03:00
Le Philousophe
9c10591f51 BACKENDS: FS: Fix build 2024-10-03 08:38:52 +02:00
Le Philousophe
0c60d29694 Revert "BACKENDS: FS: Make file writing atomic"
This reverts commit 99dc7641a9.
This causes bug #15392, a build failure on Dreamcast and changes too
much the semantics.
A better approach will need to be found, especially for streaming files
like logs.
2024-10-03 08:35:57 +02:00
Le Philousophe
99dc7641a9 BACKENDS: FS: Make file writing atomic
A temporary file is used to write the data and the file is renamed when
it is closed.
The string containing the destination path is a stored as a pointer to
limit the size of the object (which is already doubled).
2024-10-01 22:43:38 +02:00