Commit graph

10177 commits

Author SHA1 Message Date
Le Philousophe
f67f7f6354 BACKENDS: MACOS: Don't instantiate touch bar on old MacOS versions
They do not support it and it fails on invalidateIntrinsicContentSize
As the touch bar was introduced in 10.12.2, check the SDK version
against this define instead on 10.12.
2024-12-28 11:45:49 +01:00
Le Philousophe
0b791ce2e3 BACKENDS: ANDROID: Make the build script executable 2024-12-27 21:35:24 +01:00
Le Philousophe
5925ca5371 BACKENDS: ANDROID: Add build script for release
It builds a fat AAB for Google Play submission and several slim APKs for
the website.
It also uses the proper flags for configure and handles games bundling.
2024-12-27 21:34:53 +01:00
Hubert Maier
f54fd81b4f
JANITORIAL: Fix typos in general files 2024-12-25 16:57:34 +02:00
Cameron Cawley
255562991c GRAPHICS: OPENGL: Enable more features with OpenGL ES 3 2024-12-24 13:25:39 +02:00
Le Philousophe
d3ab3da104 PSP: Avoid parsing the PNG headers twice
This avoids rewinding the stream which is always bad when loading the
PNG from a Zip archive.
2024-12-21 12:52:04 -06:00
Le Philousophe
da305f6779 PSP: Better error handling and reporting for PNG loading 2024-12-21 12:52:04 -06:00
Le Philousophe
77bbc3bfd2 PSP: Fix PNG palette loading
libpng never returns the palette size when the palette pointer argument
is nullptr.
If it worked before, it's because paletteSize was uninitialized and luck.
2024-12-21 12:52:04 -06:00
Eric Fry
a716d981aa GRAPHICS: Changed text to clarify EGA video mode. 2024-12-18 00:09:38 +02:00
Eric Fry
292d66e95f GRAPHICS: Apply aspect ratio correction to 16 color VGA 640x350 video mode. 2024-12-18 00:09:38 +02:00
Donovan Watteau
3d5cb9fa58 BACKENDS: IMGUI: Fix '#elif with no expression' error with GCC
Fixed in current upstream code.
2024-12-14 03:48:55 +01:00
Le Philousophe
6fbe181428 BACKENDS: SDL: Call ImGui callback functions when changing them
This ensures a good cleanup and init when switching.
2024-12-11 21:39:45 +01:00
Cameron Cawley
3ead988a29 SDL: Fix order of components when detecting the language with SDL_GetPreferredLocales() 2024-12-11 00:32:19 +02:00
Vladimir Serbinenko
2339ddc326 KOLIBRI: Bump compilation thread count to 12 2024-12-06 17:17:13 +02:00
Vladimir Serbinenko
050b806f73 KOLIBRI: Remove explicit disabling of ags 2024-12-06 17:17:12 +02:00
Vladimir Serbinenko
e20adda52d KOLIBRI: Use _ksys_getcwd instead of getcwd
getcwd is apprently missing from SDK I tried. Whatever, just use _ksys_getcwd
2024-12-06 17:17:11 +02:00
Cameron Cawley
234dc99fd3 RISCOS: Don't encode path when it's not needed
Also disable atomic support as it may fail to write when file names are
long.
2024-12-04 22:41:14 +00:00
Thierry Crozat
faf7437e78 MACOS: Change default savepath to use the Application Support folder
The default savepath on macOS used to be in the user Document folder.
However ScummVM requires special permission to access that folder,
and if the user denied it, this caused various issues.
This implement ticket #11428.

This commit also contains migration code that that old configs that
used the default path are set explicitly to use the old default path.
So the change of savepath will only be for new users.
2024-12-03 22:18:36 +00:00
Giovanni Cascione
7310d4e9f5 LIBRETRO: BUILD: set -O2 for rpis 2024-12-03 18:56:55 +01:00
Giovanni Cascione
9ee2dd061d LIBRETRO: BUILD: add RG353x platform 2024-12-03 18:56:37 +01:00
Giovanni Cascione
97379918cf LIBRETRO: BUILD: update odroidgo2 platform 2024-12-03 18:56:23 +01:00
Giovanni Cascione
7fedc533a5 LIBRETRO: BUILD: update rpi platforms 2024-12-03 18:56:01 +01:00
Le Philousophe
e6e6a40ebf WII: Avoid reading at null address when restoring mouse cursors
When the engine doesn't sepcify any cursor, an empty cursor is on the
stack.
When restoring it after displaying the virtual keyboard, if the game is
not CLUT8, the game and the cursor palette are nullptr.
In this case, clear the palette.
2024-12-01 17:10:50 +01:00
Cameron Cawley
26a2e738fd ANDROID: Fix build after FrameBuffer class changes 2024-11-30 23:36:34 +01:00
Cameron Cawley
a9ca83819d BACKENDS: OPENGL: Use the shared Texture class for the overlay in 3D games 2024-11-30 18:21:47 +02:00
Cameron Cawley
20b41fc8d9 GRAPHICS: OPENGL: Separate the GLTexture class from the graphics manager 2024-11-30 18:21:47 +02:00
Roland van Laar
ca23e7fa2d SDL: Fix memory leak
The variable `locales` wasn't freed when it succesfully
contained data.
2024-11-29 20:41:06 +01:00
Cameron Cawley
58a9aa6a2c COMMON: Deprecate U32String constructors that accept a uint32 array 2024-11-29 01:14:36 +02:00
Michael Ball
bf0d65c84d BACKENDS: 3DS: Remove unused code 2024-11-23 22:17:54 +00:00
Michael Ball
c82a71314c BACKENDS: 3DS: Allocate linear memory conditionally based on system model
The New 3DS requires more linear memory to launch the app than the Old 3DS does; this was causing the 3DS port to instantly crash on New 3DS models. 

This commit fixes that while allowing for future functionality coming soon(TM).
2024-11-23 22:17:54 +00:00
BeWorld
52fbe6620a
BACKENDS: MORPHOS: enhanced init and add features
- Add initBackend (same as AmigaOS)
- Add getSystemLanguage() to detect system language (use SDL_GetPreferredLocales)
2024-11-23 19:24:02 +02:00
Thierry Crozat
b44c2d6322 BACKENDS: SDL: Fix default scale factor used in initSizeHint
The "scale_factor" setting can be -1, which means the default. But
instead it was hardcoded to 1, which is wrong for the SurfaceSDL
graphics mode where the default is 2.
2024-11-21 23:01:50 +00:00
Hubert Maier
05052ea66f AMIGAOS: Revert already default settings 2024-11-21 15:15:16 +02:00
Miro Kropacek
0f85939bc5 BACKENDS: ATARI: Remove move16 code
There's no evidence of that code being faster than the already optimized
memcpy().
2024-11-21 11:31:25 +01:00
Miro Kropacek
feef4e1bf1 BACKENDS: ATARI: Final screen resolution changes
- seamless resolution/palette switching (at least in theory, it still
  isn't artifact-free, no clue why)

- bugfixes (shake offset, some s_screenSurf corner cases)

- simplification the triple-buffering code
2024-11-21 11:31:25 +01:00
Miro Kropacek
10665fb723 BACKENDS: ATARI: Use DISABLE_TEXT_CONSOLE for release builds
This shaves off a good 800 KB from all the engines. However, do keep
local atari debug messages for diagnostic purposes.

Also, use natfeats for debug output when possible else the classic
stdout/stderr (not both as before).
2024-11-21 11:31:25 +01:00
Thierry Crozat
58c9005ef2 BACKENDS: SDL: Never make window smaller in OpenGL mode when starting game
Normally when using the OpenGL mode the window is not resized when
starting a game, unless the game requires a window bigger than the
current window size. However this was not the case if the engine
called initSizeHint() with sizes smaller than the current window
size, as in this case the window was forcibly resized to the bigger
of those provided sizes.

The initSizeHint() function was added for engines that use multiple
resolutions to indicate when starting the engine that it may use
multiple resolutions and thus may need a bigger window later than
when the game starts. This allows getting the bigger size from the
start and prevent window resize during gameplay. But this function
was not meant to make the window smaller if the graphics backend
request an even bigger size, which may be the case of the OpenGLSDL
graphics backend as it tries to preserve the current window size.
2024-11-21 03:17:56 +02:00
Michael Ball
fba2ea5c3d BACKENDS: 3DS: Silence "casts away qualifiers" warning. 2024-11-17 00:21:56 +02:00
Orgad Shaneh
a83b489ef0 IMGUI: Fix some GCC const-related warnings
imgui_draw.cpp:3730: warning: cast from type 'const ImFontGlyph*' to type 'void*' casts away qualifiers [-Wcast-qual]
imgui_draw.cpp: In member function 'void ImFont::SetGlyphVisible(ImWchar, bool)':
imgui_draw.cpp:3730:44: warning: cast from type 'const ImFontGlyph*' to type 'void*' casts away qualifiers [-Wcast-qual]
 3730 |     if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c))
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-11-17 00:18:02 +02:00
Eugene Sandulenko
75b6d4db51
RELEASE: This is 2.10.0git 2024-11-15 22:32:25 +01:00
Cameron Cawley
0d60230951 3DS: Remove override of the default theme 2024-11-15 20:14:48 +00:00
Le Philousophe
b68d93cae5 CLOUD: Move saves synchronization to file destruction
The finalize call is a no-op and syncing saves at this point is too early as
the save file is not materialized on disk yet when written atomically.
2024-11-15 16:31:48 +01:00
Le Philousophe
3e509f2379 ANDROID: Use getScummVMAssetsPath to access the assets
This fixes cacert lookup
2024-11-15 16:01:23 +01:00
Le Philousophe
60de117a8f ANDROID: Add helper method to compute assets path 2024-11-15 16:01:23 +01:00
Le Philousophe
ac4b547fe9 WIN32: Make DLC Path object use the proper separator 2024-11-15 09:37:18 +01:00
Le Philousophe
ae061f0341 ANDROID: Remove useless variable 2024-11-14 22:20:34 +01:00
Le Philousophe
43a4e09d6f ANDROID: Fix shaders loading
When loaded from internal storage, the assets must go deeper than before
as we now extract folders.
2024-11-14 22:20:34 +01:00
Giovanni Cascione
e1a7e29318 LIBRETRO: restore settings update on the fly 2024-11-14 17:12:05 +01:00
Giovanni Cascione
8e758267b1 LIBRETRO: fix description typo 2024-11-14 17:11:45 +01:00
D G Turner
4a4431f488 IMGUI: Disable Obselete ImGui APIs and Migrate Engine Code To Newer
This is a fairly trivial change to use the newer API in DIRECTOR,
QDENGINE and TWP engines, so not likely to cause any regressions.

This has the side effect of removing some GCC compiler warnings.
2024-11-14 01:27:35 +00:00