-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
lr-snes9x.sh
45 lines (37 loc) · 1.34 KB
/
lr-snes9x.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/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-snes9x"
rp_module_desc="Super Nintendo emu - Snes9x (current) port for libretro"
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/libretro/snes9x/master/docs/snes9x-license.txt"
rp_module_section="opt"
function sources_lr-snes9x() {
gitPullOrClone "$md_build" https://github.com/libretro/snes9x.git
}
function build_lr-snes9x() {
local params=()
isPlatform "arm" && params+=(platform="armv")
cd libretro
make "${params[@]}" clean
make "${params[@]}"
md_ret_require="$md_build/libretro/snes9x_libretro.so"
}
function install_lr-snes9x() {
md_ret_files=(
'libretro/snes9x_libretro.so'
'docs'
)
}
function configure_lr-snes9x() {
mkRomDir "snes"
ensureSystemretroconfig "snes"
addEmulator 0 "$md_id" "snes" "$md_inst/snes9x_libretro.so"
addSystem "snes"
}