RetroPie-Setup/scriptmodules/libretrocores/lr-mesen.sh
Jools Wills 7ac3877b44 Switch to using defaultRAConfig
libretro ports now don't include the "ports/" path in the call as it's handled by the new function
2022-05-22 13:09:12 +01:00

46 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-mesen"
rp_module_desc="High-accuracy NES and Famicom emulator"
rp_module_help="ROM Extensions: .nes .fds .unf .unif .zip\n\nCopy your NES roms to $romdir/nes\nFamicom roms to $romdir/fds\nCopy the recommended BIOS file disksys.rom to $biosdir"
rp_module_licence="GPL3 https://raw.githubusercontent.com/sourmesen/mesen/master/LICENSE"
rp_module_repo="git https://github.com/libretro/Mesen.git master"
rp_module_section="exp"
rp_module_flags="!armv6"
function sources_lr-mesen() {
gitPullOrClone
}
function build_lr-mesen() {
make -C Libretro clean
make -C Libretro
md_ret_require="$md_build/Libretro/mesen_libretro.so"
}
function install_lr-mesen() {
md_ret_files=(
'Libretro/mesen_libretro.so'
'LICENSE'
'README.md'
)
}
function configure_lr-mesen() {
local system
for system in "nes" "fds"; do
mkRomDir "$system"
defaultRAConfig "$system"
addEmulator 0 "$md_id" "$system" "$md_inst/mesen_libretro.so"
addSystem "$system"
done
}