mGBA: add Ubuntu script
This adds a script for mGBA, a Game Boy, Game Boy Color and Game Boy Advance emulator.
Only tested for Kubuntu 24.04.
https://github.com/cobalt2727/L4T-Megascript/commit/756de1ca242837c9230d835bb6e452ff894bf9cc should prevent this from causing any issues. Two comments:
- $GBAUserInput in your modified update.sh should be $MGBAUserInput (also can we make the M at the front lowercase to match the project name)
- does mGBA build with QT6 yet, or is it still on QT5?
Oh interesting, does the DUSE_SYSTEM_LIBMGBA=OFF flag turn off mGBA completely or just forces Dolphin to use an internal one? As for the comments:
- Will change
- I see a mention to Qt6 in the CMakeLists.txt file but the README only mentions Qt5, why?
I think the flag to disable mGBA completely is -DENABLE_MGBA or something.
If QT6 isn't supported yet don't worry about it - I figured if that WAS supported the script would be futureproof for longer if it was built with that over QT5.
I do not feel there is any benefit to the inclusion of this script to the Megascript when mGBA is already available on flathub. It is just additional maintenance burden. For users that want to build this emulator from source for development purposes that is what the documentation at the emulator's official github is for.
The pre-existing emulators on the Megascript were added either:
- before flatpak support was added
- before the emulator was available on flathub
- the emulator isn't available on flathub
I've got no issue allowing it in, personally - particularly when Flathub support doesn't work correctly 100% of the time. I imagine being able to build it from source will be futureproof for 18.04 longer than Flathub will officially support it.
More options are a good thing - and something like mGBA is probably pretty low maintenance.
We can always reduce the maintenance burden a bit by checking if the system repos have the newest release available.
Maintenance burden is too high for 18.04
I am not (and have not for a year) been maintaining anything for it in mind and neither has CTCaer. For everything in the L4T-Megascript, there is no benefit to using 18.04 over other (newer) Switchroot releases.
Sure, 18.04 is a pain, but me hitting the merge button on this is me saying I'll maintain support for it - you don't have to. I'm still interested in keeping the scripts I built for it working on stuff that old as a convenience for anyone still using those environments.
Removed the error function in case we want to move forward with merging, I have no preference either way.