Improve Script
This commit is contained in:
parent
2a01a429ef
commit
accf6aebc6
36
debian/client/common/usr/bin/minecraft-pi
vendored
36
debian/client/common/usr/bin/minecraft-pi
vendored
@ -3,25 +3,23 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Ensure Features Are Selected
|
# Ensure Features Are Selected
|
||||||
if [ -z "${MCPI_SUBSHELL}" ]; then
|
MCPI_FEATURES="$(zenity --class 'Minecraft - Pi edition' --list --checklist --column 'Enabled' --column 'Feature' \
|
||||||
MCPI_FEATURES="$(zenity --class 'Minecraft - Pi edition' --list --checklist --column 'Enabled' --column 'Feature' \
|
TRUE 'Touch GUI' \
|
||||||
TRUE 'Touch GUI' \
|
FALSE 'Survival Mode' \
|
||||||
FALSE 'Survival Mode' \
|
TRUE 'Fix Bow & Arrow' \
|
||||||
TRUE 'Fix Bow & Arrow' \
|
TRUE 'Fix Attacking' \
|
||||||
TRUE 'Fix Attacking' \
|
TRUE 'Mob Spawning' \
|
||||||
TRUE 'Mob Spawning' \
|
TRUE 'Fancy Graphics' \
|
||||||
TRUE 'Fancy Graphics' \
|
TRUE 'Disable Autojump By Default' \
|
||||||
TRUE 'Disable Autojump By Default' \
|
TRUE 'Fix Sign Placement' \
|
||||||
TRUE 'Fix Sign Placement' \
|
TRUE 'Show Block Outlines' \
|
||||||
TRUE 'Show Block Outlines' \
|
FALSE 'Expand Creative Inventory' \
|
||||||
FALSE 'Expand Creative Inventory' \
|
FALSE 'Peaceful Mode' \
|
||||||
FALSE 'Peaceful Mode' \
|
TRUE 'Animated Water' \
|
||||||
TRUE 'Animated Water' \
|
TRUE 'Remove Invalid Item Background' \
|
||||||
TRUE 'Remove Invalid Item Background' \
|
TRUE 'Smooth Lighting' \
|
||||||
TRUE 'Smooth Lighting' \
|
FALSE '3D Anaglyph')"
|
||||||
FALSE '3D Anaglyph')"
|
MCPI_USERNAME="$(zenity --class 'Minecraft - Pi edition' --entry --text 'Minecraft Username:' --entry-text 'StevePi')"
|
||||||
MCPI_USERNAME="$(zenity --class 'Minecraft - Pi edition' --entry --text 'Minecraft Username:' --entry-text 'StevePi')"
|
|
||||||
fi
|
|
||||||
export MCPI_FEATURES
|
export MCPI_FEATURES
|
||||||
export MCPI_USERNAME
|
export MCPI_USERNAME
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Start VirGL
|
# Start VirGL
|
||||||
virgl_test_server &
|
virgl_test_server & &> /tmp/virgl.log
|
||||||
VIRGL_PID="$!"
|
VIRGL_PID="$!"
|
||||||
|
|
||||||
# Launch Minecraft
|
# Launch Minecraft
|
||||||
|
Loading…
Reference in New Issue
Block a user