mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
libretro ports now don't include the "ports/" path in the call as it's handled by the new function
54 lines
1.7 KiB
Bash
54 lines
1.7 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-mame2000"
|
|
rp_module_desc="Arcade emu - MAME 0.37b5 port for libretro"
|
|
rp_module_help="ROM Extension: .zip\n\nCopy your MAME 0.37b5 roms to either $romdir/mame-mame4all or\n$romdir/arcade"
|
|
rp_module_licence="NONCOM https://raw.githubusercontent.com/libretro/mame2000-libretro/master/readme.txt"
|
|
rp_module_repo="git https://github.com/libretro/mame2000-libretro.git master"
|
|
rp_module_section="opt armv6=main"
|
|
|
|
function _update_hook_lr-mame2000() {
|
|
# move from old location and update emulators.cfg
|
|
renameModule "lr-imame4all" "lr-mame2000"
|
|
}
|
|
|
|
function sources_lr-mame2000() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_lr-mame2000() {
|
|
make clean
|
|
local params=()
|
|
isPlatform "arm" && params+=("ARM=1" "USE_CYCLONE=1")
|
|
isPlatform "aarch64" && params+=("IS_X86=0")
|
|
make "${params[@]}"
|
|
md_ret_require="$md_build/mame2000_libretro.so"
|
|
}
|
|
|
|
function install_lr-mame2000() {
|
|
md_ret_files=(
|
|
'mame2000_libretro.so'
|
|
'readme.md'
|
|
'readme.txt'
|
|
'whatsnew.txt'
|
|
)
|
|
}
|
|
|
|
function configure_lr-mame2000() {
|
|
local system
|
|
for system in arcade mame-mame4all mame-libretro; do
|
|
mkRomDir "$system"
|
|
defaultRAConfig "$system"
|
|
addEmulator 0 "$md_id" "$system" "$md_inst/mame2000_libretro.so"
|
|
addSystem "$system"
|
|
done
|
|
}
|