#!/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="sorr"
rp_module_desc="Streets of Rage Remake"
rp_module_menus="4+"
rp_module_flags="!x86 !x11 !mali"

function sources_sorr() {
    gitCloneOrPull "$md_build" https://github.com/zerojay/bennugd.git
}

function install_sorr() {    
    md_ret_files=(
    'bgdi-330'
    )
}

function configure_sorr() {
    mkRomDir "ports"

    moveConfigFile "$md_inst/savegame" "$md_conf_root/$md_id/"
    addPort "$md_id" "sorr" "Streets of Rage Remake" "$md_inst/bgdi-330 ./SorR.dat"
    __INFMSGS+=("Please copy your Streets of Rage Remake installation files into $md_inst.")
}

#!/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="sorr"
rp_module_desc="Streets of Rage Remake"
rp_module_menus="4+"
rp_module_flags="!x86 !x11 !mali"

function sources_sorr() {
    gitPullOrClone "$md_build" https://github.com/zerojay/bennugd.git
}

function install_sorr() {
    md_ret_files=(
    'bgdi-330'
    )
}

function configure_sorr() {
    mkRomDir "ports"
    chmod 755 "$md_inst/bgdi-330"
    moveConfigFile "$md_inst/savegame" "$md_conf_root/$md_id/"
    addPort "$md_id" "sorr" "Streets of Rage Remake" "pushd $md_inst; ./bgdi-330 ./SorR.dat; popd"
    __INFMSGS+=("Please copy your Streets of Rage Remake installation files into $md_inst.")
}

Fix minor issues with script.
Fix minor issues with script.
