mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
52 lines
1.4 KiB
Bash
52 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="snes9x"
|
|
rp_module_desc="SNES emulator SNES9X-RPi"
|
|
rp_module_help="ROM Extensions: .bin .smc .sfc .fig .swc .mgd .zip\n\nCopy your SNES roms to $romdir/snes"
|
|
rp_module_licence="NONCOM https://raw.githubusercontent.com/RetroPie/snes9x-rpi/master/snes9x.h"
|
|
rp_module_repo="git https://github.com/RetroPie/snes9x-rpi.git retropie"
|
|
rp_module_section="opt"
|
|
rp_module_flags="sdl1 !all videocore"
|
|
|
|
function depends_snes9x() {
|
|
getDepends libsdl1.2-dev libboost-thread-dev libboost-system-dev libsdl-ttf2.0-dev libasound2-dev
|
|
}
|
|
|
|
function sources_snes9x() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_snes9x() {
|
|
make clean
|
|
make
|
|
md_ret_require="$md_build/snes9x"
|
|
}
|
|
|
|
function install_snes9x() {
|
|
md_ret_files=(
|
|
'changes.txt'
|
|
'hardware.txt'
|
|
'problems.txt'
|
|
'readme.txt'
|
|
'README.md'
|
|
'snes9x'
|
|
)
|
|
}
|
|
|
|
function configure_snes9x() {
|
|
mkRomDir "snes"
|
|
|
|
isPlatform "dispmanx" && setBackend "$md_id" "dispmanx"
|
|
|
|
addEmulator 0 "$md_id" "snes" "$md_inst/snes9x %ROM%"
|
|
addSystem "snes"
|
|
}
|