Skip to content

Commit

Permalink
lr-nxengine - move msg variable to top so it's set for addPort
Browse files Browse the repository at this point in the history
  • Loading branch information
joolswills committed Jun 2, 2016
1 parent c7699fd commit 2122b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scriptmodules/libretrocores/lr-nxengine.sh
Expand Up @@ -32,6 +32,8 @@ function install_lr-nxengine() {
function configure_lr-nxengine() {
setConfigRoot "ports"

local msg="You need the original Cave Story game files to use $md_id. Please unpack the game to $romdir/ports/CaveStory so you have the file $romdir/ports/CaveStory/Doukutsu.exe present."

addPort "$md_id" "cavestory" "Cave Story" "$emudir/retroarch/bin/retroarch -L $md_inst/nxengine_libretro.so --config $md_conf_root/cavestory/retroarch.cfg $romdir/ports/CaveStory/Doukutsu.exe" << _EOF_
#!/bin/bash
if [[ ! -f "$romdir/ports/CaveStory/Doukutsu.exe" ]]; then
Expand All @@ -43,8 +45,6 @@ _EOF_

ensureSystemretroconfig "ports/cavestory"

local msg="You need the original Cave Story game files to use $md_id. Please unpack the game to $romdir/ports/CaveStory so you have the file $romdir/ports/CaveStory/Doukutsu.exe present."

__INFMSGS+=("$msg")

# remove old install folder
Expand Down

0 comments on commit 2122b7e

Please sign in to comment.