lr-swanstation scriptmodule.
-
I create a script that installs
lr-swanstation
psx emulator. I use as a base @dankcushions script for duckstation standalone(i hope he don't have problem with that).
It is my first time, so a lot of things maybe it is not correct. So far emulator is working fine, i have test it on Pi3 and Pi4.#!/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-swanstation" rp_module_desc="Playstation emulator - Duckstation fork for libretro" rp_module_help="ROM Extensions: .exe .img .cue .bin .chd .psf .m3u .pbp\n\nCopy your PSX roms to $romdir/psx\n\nCopy the required BIOS file SCPH1001.BIN to $biosdir" rp_module_licence="GPL3 https://raw.githubusercontent.com/libretro/swanstation/main/LICENSE" rp_module_repo="git https://github.com/libretro/swanstation.git main" rp_module_section="exp" rp_module_flags=" " function sources_lr-swanstation() { gitPullOrClone } function depends_lr-swanstation() { local depends=(cmake libsdl2-dev libsnappy-dev pkg-config libevdev-dev libgbm-dev libdrm-dev) getDepends "${depends[@]}" } function build_lr-swanstation() { local params=(-DCMAKE_BUILD_TYPE=Release) if isPlatform "x11"; then params+=(-DUSE_X11=ON) else params+=(-DUSE_X11=OFF) fi if isPlatform "kms"; then params+=(-DUSE_DRMKMS=ON) else params+=(-DUSE_DRMKMS=OFF) fi cmake "${params[@]}" . make clean make md_ret_require="$md_build/swanstation_libretro.so" } function install_lr-swanstation() { md_ret_files=( 'swanstation_libretro.so' 'README.md' ) } function configure_lr-swanstation() { mkRomDir "psx" defaultRAConfig "psx" if isPlatform "gles" && ! isPlatform "gles3"; then # Hardware renderer not supported on GLES2 devices setRetroArchCoreOption "duckstation_GPU.Renderer" "Software" fi # Pi 4 has occasional slowdown with hardware rendering # e.g. Gran Turismo 2 (Arcade) race start isPlatform "rpi4" && setRetroArchCoreOption "duckstation_GPU.Renderer" "Software" # Configure the memory card 1 saves through the libretro API setRetroArchCoreOption "duckstation_MemoryCards.Card1Type" "NonPersistent" addEmulator 1 "$md_id" "psx" "$md_inst/swanstation_libretro.so" addSystem "psx" }
Any help to make this script better are welcome!
Thanks. -
@windg Thanks dude. Would love to try this one.
-
i don't have a problem with re-using my original script, but i note you don't have the various option configurations in the original? https://github.com/RetroPie/RetroPie-Setup/pull/3476/files#diff-d880778e392d50d3ab3a0221e602b72e8639e829fbc30e086f384b1e6042df02L34-L44
as for whether it should be in retropie or not, i guess i'm on the fence as there was all the bad feeling when it was forked, but that's been discussed to death at this point. i don't know if anything has changed since then, but it seems that at least the fork is seeing some further (minor?) development.
-
@dankcushions said in lr-swanstation scriptmodule.:
i don't have a problem with re-using my original script, but i note you don't have the various option configurations in the original? https://github.com/RetroPie/RetroPie-Setup/pull/3476/files#diff-d880778e392d50d3ab3a0221e602b72e8639e829fbc30e086f384b1e6042df02L34-L44
as for whether it should be in retropie or not, i guess i'm on the fence as there was all the bad feeling when it was forked, but that's been discussed to death at this point. i don't know if anything has changed since then, but it seems that at least the fork is seeing some further (minor?) development.
Thanks for the recommendations and for let me use the script, i will try to add the configurations. I think you are correct about the bad feeling for this fork. It is better to stay away from the RetroPie packages, i had open a request on the github page and i remove it. If someone want to install it, can do it manual .
-
@windg said in lr-swanstation scriptmodule.:
@dankcushions Can i give the script for swanstation to the Retropie-Extra here : https://github.com/Exarkuniv/RetroPie-Extra, so to be more easiy for the user who want this emulator to install it?
-
@windg if he's good with it. I'm more then happy to include it.
-
@windg i don’t see why not - i don’t really have a problem with it in retropie either but that’s just my personal view!
-
@dankcushions
Thank you very much sir! -
@ExarKunIv said in lr-swanstation scriptmodule.:
@windg if he's good with it. I'm more then happy to include it.
You are free to add it to RetroPie-Extra repo. I have test it on RPi3, RPi4, Pi400 and it's working fine. Thank you too!
-
@windg i will do so,
A big thanks to the both of you for this @windg and @dankcushions
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.