From 8977c6ea874beb5c4f12422acdb5c3a77a6fdab6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 7 Jun 2024 21:45:33 +0000 Subject: feat(bin): allow command-line definition of paths --- bin/decompile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/decompile') diff --git a/bin/decompile b/bin/decompile index b879ccd..de43598 100755 --- a/bin/decompile +++ b/bin/decompile @@ -2,9 +2,11 @@ main() { # Replace this with your local path to worlds.jar - local WORLDS_JAR_PATH="${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib" + local WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR:-"${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib/worlds.jar"} - vineflower -ega=true "${WORLDS_JAR_PATH}/worlds.jar" source + echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}" + + vineflower -ega=true "${WORLDSPLAYER_JAR}" source } main -- cgit v1.2.3