mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
libretro ports now don't include the "ports/" path in the call as it's handled by the new function
50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# This file is part of The RetroPie Project
|
|
#
|
|
# The RetroPie Project is the legal property of its developers, whose names are
|
|
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
|
|
#
|
|
# See the LICENSE.md file at the top-level directory of this distribution and
|
|
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
|
|
#
|
|
|
|
rp_module_id="lr-mgba"
|
|
rp_module_desc="(Super) Game Boy Color/GBA emulator - MGBA (optimised) port for libretro"
|
|
rp_module_help="ROM Extensions: .gb .gbc .gba .zip\n\nCopy your Game Boy roms to $romdir/gb\nGame Boy Color roms to $romdir/gbc\nGame Boy Advance roms to $romdir/gba\n\nCopy the recommended BIOS files gb_bios.bin, gbc_bios.bin, sgb_bios.bin and gba_bios.bin to $biosdir"
|
|
rp_module_licence="MPL2 https://raw.githubusercontent.com/libretro/mgba/master/LICENSE"
|
|
rp_module_repo="git https://github.com/libretro/mgba.git master"
|
|
rp_module_section="main"
|
|
rp_module_flags=""
|
|
|
|
function sources_lr-mgba() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_lr-mgba() {
|
|
make -f Makefile.libretro clean
|
|
make -f Makefile.libretro
|
|
md_ret_require="$md_build/mgba_libretro.so"
|
|
}
|
|
|
|
function install_lr-mgba() {
|
|
md_ret_files=(
|
|
'mgba_libretro.so'
|
|
'CHANGES'
|
|
'LICENSE'
|
|
'README.md'
|
|
)
|
|
}
|
|
|
|
function configure_lr-mgba() {
|
|
local system
|
|
local def
|
|
for system in gb gbc gba; do
|
|
def=0
|
|
[[ "$system" == "gba" ]] && ! isPlatform "armv6" && def=1
|
|
mkRomDir "$system"
|
|
defaultRAConfig "$system"
|
|
addEmulator "$def" "$md_id" "$system" "$md_inst/mgba_libretro.so"
|
|
addSystem "$system"
|
|
done
|
|
}
|