8681 Commits

Author SHA1 Message Date
Le Philousophe
8569296384 OPENGL: Detect framebuffer support using GL_ARB_framebuffer_object
We use functions from GL_ARB_framebuffer_object extension and not from
GL_EXT_framebuffer_object where functions are suffixed by EXT.
This avoids crashes on implementations supporting only the EXT version.
2022-05-27 18:13:10 +02:00
Donovan Watteau
630207d38b PS3: Properly init the fullscreen and aspect_ratio config keys
As done in the PSP2, Android and Switch ports.

Fix inconsistent reported state for the Aspect Ratio setting on PS3
(similar to Trac#11743 for Android).
2022-05-24 23:38:04 +03:00
Donovan Watteau
a933a0d261 MACOSX: Switch getResourceAppBundlePathMacOSX() to Objective-C
As suggested by criezy, we don't need to use the C-bridge from Core
Foundation now that the wrapper has been moved to an Objective-C file.
2022-05-22 23:42:45 +01:00
Donovan Watteau
4672ba71dd PLUGINS: Let macOS use its resource bundle as a valid plugin directory 2022-05-22 23:42:45 +01:00
Donovan Watteau
5118c60874 MACOSX: Pull a getResourceAppBundlePathMacOSX() wrapper from addSysArchivesToSearchSet() 2022-05-22 23:42:45 +01:00
Hubert Maier
b8e0236f95 AMIGAOS: Remove old installs before installing release builds 2022-05-21 22:13:14 +03:00
Donovan Watteau
5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Hubert Maier
953cf2c44c MORPHOS: Fix c&p error 2022-05-17 18:39:07 +02:00
Hubert Maier
a30d637347 BACKENDS: Typo in comments 2022-05-17 18:38:52 +02:00
Carlo Bramini
b195cbbcd0 WIN32: Migrate from ShellExecute to ShellExecuteEx Function
That function allows more readable code, without needing to test if the
returned value is greater than 32.

Supported platforms are:
    Windows 95: Supported.
    Windows 98: Supported.
    Windows NT: Required Windows NT 4.0 or later.
    Windows 2000 and newer: Supported.
    Windows CE: Requires Windows CE 1.0 or later.

This fix comes from my port of SCUMMVM for Windows CE/Embedded/Mobile since
this family of OSs support ShellExecuteEx(), but not ShellExecute().
2022-05-14 10:05:50 +02:00
Hubert Maier
a83ce7d609 AMIGAOS: Revise directory creation
- Change warnings to debug
- Fix trailing slash
2022-05-14 09:55:55 +03:00
Hubert Maier
49c7f4c6a1 AMIGAOS: Add directory creation to FS 2022-05-14 09:55:55 +03:00
Francisco Javier Trujillo Mata
df48fa7861 PSP: Remove legacy Makefile 2022-05-02 17:11:10 -05:00
Francisco Javier Trujillo Mata
9aa4485137 PSP: Update executable start position 2022-05-02 17:11:10 -05:00
Francisco Javier Trujillo Mata
1202099d61 PSP: Remove legacy PSP_HEAP_SIZE_KB macro 2022-05-02 17:11:10 -05:00
Francisco Javier Trujillo Mata
652846cac0 PSP: Remove standard libraries 2022-05-02 17:11:10 -05:00
Cameron Cawley
57abc6b86f PSP: Remove .MIPS.abiflags* sections from plugins 2022-04-29 13:29:25 -05:00
Paweł Kołodziejski
1362f14f55
MIDI: Silence compiler warning 2022-04-29 07:44:56 +02:00
athrxx
616492be3d TTS: cleanup (whitespace)
Co-authored-by: Filippos Karapetis <bluegr@gmail.com>
2022-04-26 21:08:41 +03:00
athrxx
2b62215267 TTS: (Windows) - reduce number of calls to updateVoices() 2022-04-26 21:08:41 +03:00
athrxx
eb29aea4b4 TTS: (Windows) - implement better way to disable the option
Currently, the text-to-speech manager will try to update the voices whenever TextToSpeechManager::pushState()/popState() is called. This causes lags of 4 - 5 seconds on Windows. Also, a warning is triggered each time. This commit prevents that from happening if the tts option is not enabled.

This commit currently affects only Windows. Other backends don't make use of the new _enabled setting. I don't know if it would make sense for any of these and I also wouldn't be able to test it.
2022-04-26 21:08:41 +03:00
Le Philousophe
cb8427dae4 AMIGAOS: Fix shaders install path 2022-04-23 15:29:06 +02:00
D G Turner
e108637ddd OPENPANDORA: Initial Hack Solution for Removing SDL Cursor Disable Calls
This likely needs further work after some testing with OpenPandora toolchain
to check that this builds a working binary and a basic test to see if this
fixes the reported issue which has been present after v1.7.0 release which
did not exhibit this problem.
2022-04-21 19:39:05 +01:00
D G Turner
9fa08ef10f OPENPANDORA: Override Mouse Related Methods in Graphics Manager Code
This is required to make changes to avoid SDL_ShowCursor(SDL_DISABLE)
calls.
2022-04-21 19:39:05 +01:00
D G Turner
6368cf8b72 SDL: Allow Override of ShowMouse Method for SDL Graphics
This will be required to fix the OpenPandora hack for libSDL issues
with screen limits needing to avoid calls to SDL_ShowCursor(SDL_DISABLE).
2022-04-21 19:39:05 +01:00
D G Turner
8c4eddc506 OPENPANDORA: Don't Disable Cursor at SDL Init for Open Pandora Builds
This breaks the hack for SDL problems with touchscreen events at the
screen edges on this platform.
2022-04-21 19:39:05 +01:00
Le Philousophe
9368fd133f PSP: Fix link specification for newer PSP toolchains
They added threads support and they need to be linked too if they exist
2022-04-19 19:45:44 +02:00
Le Philousophe
76eda43fb5 AMIGAOS: Install shaders files as well
We make use of them when runiing in GLES2
2022-04-17 12:34:38 +02:00
Le Philousophe
c9b4949746 AMIGAOS: Improve shader compatibility
OGLES2 doesn't support uniform booleans so we use macros to make it use
integers in this case. For other platforms, this change should be a
noop.
OGLES2 doesn't like float suffix for constants, remove it as well.
2022-04-17 12:34:38 +02:00
Le Philousophe
7061b4109e AMIGAOS: Remove outdated ifdefs
We now link with OpenGL dynamically so symbols are provided by GLAD.
If it's not supported pointer will be null.
OGLES2 should support these functions so they must be removed
2022-04-17 12:34:38 +02:00
Le Philousophe
41638a09d1 AMIGAOS: Let user select the OpenGL implementation 2022-04-17 12:34:38 +02:00
Le Philousophe
6400589ee9 OPENGL: Fix OpenGL version parsing 2022-04-10 18:11:14 +02:00
Thierry Crozat
04b76bfbc4 SDL: Fix compilation when USE_FORCED_GLES2 is defined 2022-04-04 01:52:20 +01:00
Le Philousophe
b978cd1caa OPENGL: Allow engines to detect OpenGL info without switching
For now only OpenGL type and shaders support are available
2022-04-03 22:17:19 +02:00
Le Philousophe
06bc7a25fa OPENGL: Indicate support of OpenGL even in 2D mode
This allows to check for OpenGL support in backend without having to
call initGraphics3d
2022-04-03 22:17:19 +02:00
Le Philousophe
bc4e7662cc SDL: Initialize OpenGLContext with the proper version 2022-04-03 09:40:51 +02:00
Cameron Cawley
23558a4ff6 SDL: Fix compilation for Alpine Linux 2022-03-26 19:59:26 +00:00
BeWorld
0066eb84ee MorphOS: delete system OpenURL
delete system OpenURL and use SDL_OpenURL
2022-03-26 09:15:25 +02:00
Thierry Crozat
e302590cab SDL: Improve AmigaOS workaround for numpad
The previous workaround was introduced to fix fighting using the keypad
in Indy 3. It enforced genering a number on KEYCODE_KP# events even
when KBD_NUM is not set. The issue on AmigaOS is that SDL never reports
KBD_NUM as being set. Instead we get different keycodes depending if
numlock is on or off (e.g. KEYCODE_KP3 and KEYCODE_PAGEDOWN).

The new workaround is to set the KBD_NUM modifier whenever we receive
a KEYCODE_KP# event from SDL. This way we also generate a number, but
in addition this is consistent with the modifier and works with code
that checks the KDB_NUM modifier (such as the GUI code or the AGI
engine).
2022-03-13 21:33:39 +00:00
Cameron Cawley
460bc32cd9 OPENGL: Fix OpenGL ES v1 builds without GLAD 2022-03-07 17:40:01 +01:00
Paweł Kołodziejski
ee11c85f85 IOS: Added support for GLAD 2022-03-06 21:44:19 +01:00
antoniou79
5795fb6aea ANDROID: Remove extra parenthesis from virtual shortcut name
"ScummVM data (Ext))" is now corrected to "ScummVM data (Ext)"
2022-03-06 20:05:10 +02:00
Cameron Cawley
a4c99343b3 OPENGL: Fix shader compilation with older Android GPU drivers 2022-03-06 11:09:50 +01:00
Paweł Kołodziejski
016152971a
IOS: Fixed compiler warnings 2022-03-06 09:19:54 +01:00
C.W. Betts
b9d234e986 MACOSX: Improve conversion of path from NSString to C string
Use `-[NSString fileSystemRepresentation]` if you are going to pass
a path to a lower-level function, like `fopen()`.
2022-03-05 19:28:10 +00:00
Paweł Kołodziejski
e87773484c
BACKENDS: Add guard for SDL backend code under USE_OPENGL flag 2022-03-04 18:02:29 +01:00
Antoniou Athanasios
3ee5a99619 ANDROID: More safeguards against empty path in browser 2022-03-02 14:29:56 +02:00
Thierry Crozat
f3dc1df7d8 SDL: Get a user-specified screenshotpath from ConfMan at the start
There are two ways the user can specify a screenshot path: by
editing the config file manually, or by passing it on the command
line. In the later case it is added to the transient domain that
is cleared when opening the launcher, so it only worked when also
specifying a game to start on the command line. With this change
a screenshot path specified on the command line will be used until
quitting ScummVM.

This could be confusing if the user had the ability to specify the
path in the ScummVM Options, as then we would probably want to use
the new specified path immediately. But since the path does not
appear in the options, this change should work fine.
2022-02-16 22:24:07 +00:00
Thierry Crozat
533693437d SDL: Do not query directly ConfMan for the screenshotpath in Windows and macOS backends
Instead we call the OSystem_SDL implementation of getScreenshotsPath(),
as done in the POSIX backend. This change means that if we change how
we handle a user-specified screenshot path in the SDL backend, the
Windows and macOS backends will still get the correct path.
2022-02-16 22:24:07 +00:00
Kalle Kietavainen
31cfac5d6f SDL: Fix SDL_SetWindowMouseRect in HiDPI mode
In HiDPI mode, the window coordinates and the drawable area coordinates
might be on a different scale. The allowed mouse area needs to be scaled
accordingly before passing it to SDL_SetWindowMouseRect().

This fixes bug #13152.
2022-02-16 22:15:43 +00:00