herbfargus
Member
Post count: 1858

in the meantime if you want a script that sets up a script that will open up into unreal_speccy_portable then this does work (might cause some framebuffer issues potentially- make backups first) You’ll install it in place of the aforementioned script through the experimental menu of the setup script.

#!/usr/bin/env bash

# This file is part of RetroPie.
# 
# (c) Copyright 2012-2015  Florian Müller (contact@petrockblock.com)
# 
# 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="usp"
rp_module_desc="zxspectrum emulator unreal speccy portable"
rp_module_menus="4+"

function sources_usp() {
    wget https://bitbucket.org/djdron/unrealspeccyp/downloads/unreal-speccy-portable_0.0.64_rpi.zip    
    unzip unreal-speccy-portable_0.0.64_rpi.zip
    rm unreal-speccy-portable_0.0.64_rpi.zip
}

function build_usp() {
    make clean
    md_ret_require="$md_build"
}

function install_usp() {
    md_ret_files=(
    'usp_0.0.64/unreal_speccy_portable'
    'usp_0.0.64/res'
    'usp_0.0.64/readme.txt'
    )
}

function configure_usp() {
    mkRomoDir "zxspectrum"

 cat > "$romdir/zxspectrum/+Start.sh" << _EOF_
#!/bin/bash
pushd "/opt/retropie/emulators/usp"
./unreal_speccy_portable "usp"
popd
_EOF_

    chmod a+x "$romdir/zxspectrum/+Start.sh"
    chown $user:$user "$romdir/zxspectrum/+Start.sh"

    addSystem 0 "$md_id" "zxspectrum" "$romdir/zxspectrum/+Start.sh" "zxspectrum" ".sh"
}