#!/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-pcsx-rearmed" rp_module_desc="Playstation emulator - PCSX (arm optimised) port for libretro" rp_module_help="ROM Extensions: .bin .cue .cbn .img .iso .m3u .mdf .pbp .toc .z .znx\n\nCopy your PSX roms to $romdir/psx\n\nCopy the required BIOS file SCPH1001.BIN to $biosdir" rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/pcsx_rearmed/master/COPYING" rp_module_repo="git https://github.com/libretro/pcsx_rearmed.git master" rp_module_section="opt arm=main aarch64=main" function depends_lr-pcsx-rearmed() { local depends=(libpng-dev) isPlatform "x11" && depends+=(libx11-dev) getDepends "${depends[@]}" } function sources_lr-pcsx-rearmed() { gitPullOrClone } function build_lr-pcsx-rearmed() { local params=(THREAD_RENDERING=0) if isPlatform "arm"; then params+=(ARCH=arm DYNAREC=ari64) if isPlatform "neon"; then params+=(HAVE_NEON=1 HAVE_NEON_ASM=1 BUILTIN_GPU=neon) else params+=(BUILTIN_GPU=peops) fi elif isPlatform "aarch64"; then params+=(ARCH=aarch64 DYNAREC=ari64) fi make -f Makefile.libretro "${params[@]}" clean make -f Makefile.libretro "${params[@]}" md_ret_require="$md_build/pcsx_rearmed_libretro.so" } function install_lr-pcsx-rearmed() { md_ret_files=( 'AUTHORS' 'ChangeLog.df' 'COPYING' 'pcsx_rearmed_libretro.so' 'NEWS' 'README.md' 'readme.txt' ) } function configure_lr-pcsx-rearmed() { mkRomDir "psx" defaultRAConfig "psx" addEmulator 1 "$md_id" "psx" "$md_inst/pcsx_rearmed_libretro.so" addSystem "psx" }