* useful for lower end systems as resid is cpu intensive, even on the RPI2)
* before it was enabled by default, but now needs to be enabled manually via configure
* Makefile.libretro now tries to get the current git tag, which can fail if tags havent been downloaded - code looks somewhat risky, but we can override the failing part with a make var
Older versions actually throw an error regarding CXX17 dialect support but seems to build fine. If needed
we can roll back further, but we will need to stop support for Stretch and Ubuntu 18.04 soon due to the work
required to maintain modules for older toolchains.
Latest version (0.16) needs `gcc` 8 for C++20 features (`--std=c++2a`). This breaks the module for systems with older `gcc` (ex. Debian Stretch).
Added a new scriptmodule based on the previous version (0.15), which used SDL1 instead of SDL2, and keep the module flags from before a50179093.
Added a check for the `gcc` version in the SDL2 scriptmodule.
Added sdl1 patch to allow overriding of graphics_get_display_size as it returns 0 on fkms for width and height,
which skips the scaling code and ability to adjust aspect ratio.
New ENV vars are SDL_DISPMANX_WIDTH and SDL_DISPMANX_HEIGHT which we now set manually in runcommand on fkms
when a dispmanx backend is used with sdl1.
This should resolve aspect ratio issues rpi4 users were having with some sdl1 emulators that worked with the dispmanx
backend, but always stretched to fill the entire screen.
This also enables the use of SDL_DISPMANX_RATIO to tweak the ratio when scaling - from 0.2 to 6 - currently
unused in any RetroPie modules by default, but used to be used for tweaking the vice scaling, to more accurately
produce a correct aspect ratio for the C64. But can be used by users manually via emulators.cfg if required.
bumped sdl1 version to force an update - including for Stretch, although this is primarily a buster/rpi4 issue
This only affected amiberry binaries since Feb 2020 when the build logic was switched
to use this flag. This meant a pure SDL2 version was being built rather than the dispmanx+SDL2 version.
Also corrected the flag setting which was changed in the rpi_aarch64 branch to be an array but this was missed.
The code actually still worked, but it should have been +=(dispmanx) not +=" dispmanx".
__has_dispmanx env var can be used to force this flag for kms/fkms.
* use "--config " instead of "-config=" and "--autoload "
* may adjust this further and split out amiberry launch to its own code rather than sharing the uae4arm launch code
Switched SDLTRS to be built from https://gitlab.com/jengun/sdltrs, which is an active fork of the original SDLTRS emulator.
* use the SDL2 branch, which should be more portable (KMS/Odroid/etc.)
* create a minimum configuration for $HOME/.sdltrs.t8c
* although not explicitely specified, the main license seems to be BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)
* simplify a bit the emulator starting commands
* makefile patch is still needed for our compiler flags
* CPU_FLAGS isn't used so not sure what happened here - mistake or I missed out something.
* use CXXFLAGS for the additional videocore flags, to override makefile logic
* re-add make clean
Makefile for lr-flycast has a lot of copy and paste and unneeded compiler parameters. Although moving the
logic to the module could still break with Makefile changes, it gives us more control over both
compiler parameters, as well as adding other platforms without having to upstream changes.
Removed !mali flag but this will need testing still. Current changes are tested on rpi+videocore, rpi+mesa,
and rpi4(aarch64)+mesa
Also removed DISTCC workaround as this is now built without Link Time Optimisation. The Makefile patch is also
dropped, as this is no longer needed.