Add Optional Patch To Disable gui_blocks Atlas

This commit is contained in:
TheBrokenRail 2020-11-29 18:59:01 -05:00
parent 5040e28d14
commit a83cb6d211
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@ MCPI_FEATURES="$(zenity --class 'Minecraft - Pi edition' --list --checklist --co
FALSE 'Peaceful Mode' \ FALSE 'Peaceful Mode' \
TRUE 'Animated Water' \ TRUE 'Animated Water' \
TRUE 'Remove Invalid Item Background' \ TRUE 'Remove Invalid Item Background' \
FALSE 'Disable gui_blocks Atlas' \
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')"

View File

@ -320,6 +320,12 @@ __attribute__((constructor)) static void init() {
patch((void *) 0x63c98, invalid_item_background_patch); patch((void *) 0x63c98, invalid_item_background_patch);
} }
if (extra_has_feature("Disable gui_blocks Atlas")) {
// Disable gui_blocks Atlas Which Contains Pre-Rendered Textures For Blocks In The Inventory
unsigned char disable_gui_blocks_atlas_patch[4] = {0x00, 0xf0, 0x20, 0xe3};
patch((void *) 0x63c2c, disable_gui_blocks_atlas_patch);
}
smooth_lighting = extra_has_feature("Smooth Lighting"); smooth_lighting = extra_has_feature("Smooth Lighting");
if (smooth_lighting) { if (smooth_lighting) {
// Enable Smooth Lighting // Enable Smooth Lighting