diff options
| author | Fuwn <[email protected]> | 2024-06-07 21:45:33 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-07 21:45:33 +0000 |
| commit | 8977c6ea874beb5c4f12422acdb5c3a77a6fdab6 (patch) | |
| tree | ff47f15bd2d97c79fc78fca4eef5c81e0cf39823 /bin/decompile | |
| parent | feat: initial release (diff) | |
| download | worldsplayer_source_editor-8977c6ea874beb5c4f12422acdb5c3a77a6fdab6.tar.xz worldsplayer_source_editor-8977c6ea874beb5c4f12422acdb5c3a77a6fdab6.zip | |
feat(bin): allow command-line definition of paths
Diffstat (limited to 'bin/decompile')
| -rwxr-xr-x | bin/decompile | 6 |
1 files changed, 4 insertions, 2 deletions
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 |