Skip to content

Commit

Permalink
Clarify error when unable to find platform files.
Browse files Browse the repository at this point in the history
  • Loading branch information
shizmob committed Apr 20, 2016
1 parent 9e9e2ae commit c0352d9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions renpy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,16 @@ fi

for BASE in "$ROOT" "$ROOT1" "$ROOT2"; do
LIB="$BASE/lib/$RENPY_PLATFORM"
if test -d "$LIB"; then
break
fi
if test -d "$LIB"; then
break
fi
done

if ! test -d "$LIB"; then
echo "Ren'Py platform files not found in any of $ROOT, $ROOT1 or $ROOT2!"
echo "Please compile the platform files using the instructions in README.md"
echo "or point them to an existing installation using ./after_checkout.sh <path>."
exit 1
fi

exec $RENPY_GDB "$LIB/$BASEFILE" $RENPY_PYARGS -EO "$BASE/$BASEFILE.py" "$@"

0 comments on commit c0352d9

Please sign in to comment.