Update Defaults
This commit is contained in:
parent
7f1506ee2b
commit
34eb1cb3c2
2
debian/usr/bin/minecraft-pi
vendored
2
debian/usr/bin/minecraft-pi
vendored
@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
# Ensure Features Are Selected
|
# Ensure Features Are Selected
|
||||||
if [ -z "${MCPI_SUBSHELL}" ]; then
|
if [ -z "${MCPI_SUBSHELL}" ]; then
|
||||||
MCPI_FEATURES="$(zenity --class minecraft-pi --list --checklist --column 'Enabled' --column 'Feature' FALSE 'Touch GUI' FALSE 'Survival Mode' FALSE 'Fix Bow & Arrow' FALSE 'Fix Attacking' FALSE 'Mob Spawning' FALSE 'Fancy Graphics' FALSE 'Disable Autojump By Default' FALSE 'Fix Sign Placement')"
|
MCPI_FEATURES="$(zenity --class minecraft-pi --list --checklist --column 'Enabled' --column 'Feature' TRUE 'Touch GUI' FALSE 'Survival Mode' TRUE 'Fix Bow & Arrow' TRUE 'Fix Attacking' TRUE 'Mob Spawning' TRUE 'Fancy Graphics' TRUE 'Disable Autojump By Default' TRUE 'Fix Sign Placement' TRUE 'Show Block Outlines')"
|
||||||
MCPI_USERNAME="$(zenity --class minecraft-pi --entry --text 'Minecraft Username:' --entry-text 'StevePi')"
|
MCPI_USERNAME="$(zenity --class minecraft-pi --entry --text 'Minecraft Username:' --entry-text 'StevePi')"
|
||||||
fi
|
fi
|
||||||
export MCPI_FEATURES
|
export MCPI_FEATURES
|
||||||
|
@ -182,7 +182,7 @@ __attribute__((constructor)) static void init() {
|
|||||||
// Allocate Correct Size For ServerLevel
|
// Allocate Correct Size For ServerLevel
|
||||||
unsigned char patch_data_5[4] = {0x94, 0x0b, 0x00, 0x00};
|
unsigned char patch_data_5[4] = {0x94, 0x0b, 0x00, 0x00};
|
||||||
patch((void *) 0x17004, patch_data_5);
|
patch((void *) 0x17004, patch_data_5);
|
||||||
|
|
||||||
if (has_feature("Fancy Graphics")) {
|
if (has_feature("Fancy Graphics")) {
|
||||||
// Enable Fancy Graphics
|
// Enable Fancy Graphics
|
||||||
minecraft_init_original = overwrite((void *) minecraft_init, minecraft_init_injection);
|
minecraft_init_original = overwrite((void *) minecraft_init, minecraft_init_injection);
|
||||||
@ -206,4 +206,10 @@ __attribute__((constructor)) static void init() {
|
|||||||
// Fix Segmentation Fault
|
// Fix Segmentation Fault
|
||||||
unsigned char segfault_patch[4] = {0x03, 0x00, 0x00, 0xea};
|
unsigned char segfault_patch[4] = {0x03, 0x00, 0x00, 0xea};
|
||||||
patch((void *) 0x4a630, segfault_patch);
|
patch((void *) 0x4a630, segfault_patch);
|
||||||
|
|
||||||
|
if (has_feature("Show Block Outlines")) {
|
||||||
|
// Show Block Outlines
|
||||||
|
unsigned char outline_patch[4] = {0x00, 0xf0, 0x20, 0xe3};
|
||||||
|
patch((void *) 0x4a214, outline_patch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user