#!/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-gpsp" rp_module_desc="GBA emu - gpSP 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_licence="GPL2 https://raw.githubusercontent.com/libretro/gpsp/master/COPYING" rp_module_repo="git https://github.com/libretro/gpsp.git master" rp_module_section="opt arm=main" rp_module_flags="" function sources_lr-gpsp() { gitPullOrClone } function build_lr-gpsp() { rpSwap on 512 local params=() isPlatform "arm" && params+=(platform=armv) make "${params[@]}" clean make "${params[@]}" rpSwap off md_ret_require="$md_build/gpsp_libretro.so" } function install_lr-gpsp() { md_ret_files=( 'gpsp_libretro.so' 'COPYING' 'original_readme.txt' 'README.md' ) } function configure_lr-gpsp() { mkRomDir "gba" defaultRAConfig "gba" local def=0 isPlatform "armv6" && def=1 addEmulator $def "$md_id" "gba" "$md_inst/gpsp_libretro.so" addSystem "gba" }