RetroPie-Setup/scriptmodules/libretrocores/lr-beetle-supergrafx.sh

42 lines
1.4 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-beetle-supergrafx"
rp_module_desc="SuperGrafx TG-16 emulator - Mednafen PCE Fast port for libretro"
rp_module_help="ROM Extensions: .pce .ccd .cue .zip\n\nCopy your PC Engine / TurboGrafx roms to $romdir/pcengine\n\nCopy the required BIOS file syscard3.pce to $biosdir"
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/beetle-supergrafx-libretro/master/COPYING"
rp_module_repo="git https://github.com/libretro/beetle-supergrafx-libretro.git master"
rp_module_section="main"
function sources_lr-beetle-supergrafx() {
gitPullOrClone
}
function build_lr-beetle-supergrafx() {
make clean
make
md_ret_require="$md_build/mednafen_supergrafx_libretro.so"
}
function install_lr-beetle-supergrafx() {
md_ret_files=(
'mednafen_supergrafx_libretro.so'
'COPYING'
)
}
function configure_lr-beetle-supergrafx() {
mkRomDir "pcengine"
defaultRAConfig "pcengine"
addEmulator 0 "$md_id" "pcengine" "$md_inst/mednafen_supergrafx_libretro.so"
addSystem "pcengine"
}