Added Worlds Organizer opening
This commit is contained in:
parent
8968fdeb9a
commit
7410c907cb
16
launch.sh
16
launch.sh
|
@ -27,8 +27,8 @@ main() {
|
||||||
--column 'Options' \
|
--column 'Options' \
|
||||||
--hide-header \
|
--hide-header \
|
||||||
TRUE 'Launch Worlds' \
|
TRUE 'Launch Worlds' \
|
||||||
FALSE 'Open World' \
|
|
||||||
FALSE 'Launch Worlds with Logger' \
|
FALSE 'Launch Worlds with Logger' \
|
||||||
|
FALSE 'Worlds Organizer' \
|
||||||
FALSE 'Open Worlds folder' \
|
FALSE 'Open Worlds folder' \
|
||||||
FALSE 'Settings' \
|
FALSE 'Settings' \
|
||||||
FALSE 'Clear Cache' \
|
FALSE 'Clear Cache' \
|
||||||
|
@ -37,15 +37,14 @@ main() {
|
||||||
case $sel in
|
case $sel in
|
||||||
'Launch Worlds')
|
'Launch Worlds')
|
||||||
launch ;;
|
launch ;;
|
||||||
'Open World')
|
|
||||||
worldsel=$(zenity --title="$WTITLE - Open World" --width=600 --entry --text="Enter a worlds URL" --entry-text="home:GroundZero/groundzero.world")
|
|
||||||
if [[ ! $? -eq 1 ]]; then
|
|
||||||
"$WINE" "$WORLDSINSTALL/bin/gdkup.exe" "$worldsel"
|
|
||||||
else
|
|
||||||
main
|
|
||||||
fi ;;
|
|
||||||
'Launch Worlds with Logger')
|
'Launch Worlds with Logger')
|
||||||
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
||||||
|
'Worlds Organizer')
|
||||||
|
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
|
||||||
|
if [[ $? -eq 1 ]]; then
|
||||||
|
wget -O"$WORLDSDIR/WorldsOrganizer" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
|
||||||
|
fi
|
||||||
|
main ;;
|
||||||
'Open Worlds folder')
|
'Open Worlds folder')
|
||||||
gio open "$WORLDSINSTALL" ;;
|
gio open "$WORLDSINSTALL" ;;
|
||||||
'Settings' )
|
'Settings' )
|
||||||
|
@ -68,6 +67,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
launch () {
|
launch () {
|
||||||
|
source "$WORLDSDIR/wrldscmd"
|
||||||
WORLDSNEW="WorldsPlayer.exe"
|
WORLDSNEW="WorldsPlayer.exe"
|
||||||
WORLDSOLD="run.exe"
|
WORLDSOLD="run.exe"
|
||||||
WORLDSLEGACY="run.bat"
|
WORLDSLEGACY="run.bat"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user