Skip to content

Commit

Permalink
lr-mgba.sh: enable lr-mgba as alternative also for Game Boy and Game …
Browse files Browse the repository at this point in the history
…Boy Color (fixes #2295)
  • Loading branch information
Hugo Hromic committed Apr 20, 2018
1 parent 8ed0d10 commit a58f172
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions scriptmodules/libretrocores/lr-mgba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#

rp_module_id="lr-mgba"
rp_module_desc="GBA emulator - MGBA (optimised) port for libretro"
rp_module_help="ROM Extensions: .gba .zip\n\nCopy your Game Boy Advance roms to $romdir/gba\n\nCopy the required BIOS file gba_bios.bin to $biosdir"
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_section="main"
rp_module_flags=""
Expand Down Expand Up @@ -40,11 +40,14 @@ function install_lr-mgba() {
}

function configure_lr-mgba() {
mkRomDir "gba"
ensureSystemretroconfig "gba"

local def=1
isPlatform "armv6" && def=0
addEmulator $def "$md_id" "gba" "$md_inst/mgba_libretro.so"
addSystem "gba"
local system
local def
for system in gb gbc gba; do
def=0
[[ "$system" == "gba" ]] && ! isPlatform "armv6" && def=1
mkRomDir "$system"
ensureSystemretroconfig "$system"
addEmulator "$def" "$md_id" "$system" "$md_inst/mgba_libretro.so"
addSystem "$system"
done
}

0 comments on commit a58f172

Please sign in to comment.