master #2

Merged
NoozAbooz merged 28 commits from minecraft-pi-reborn/minecraft-pi-reborn:master into master 2021-11-12 16:07:02 +00:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit 12de038f37 - Show all commits

View File

@ -76,6 +76,10 @@ static SDLKey glfw_key_to_sdl_key(int key) {
return SDLK_7;
case GLFW_KEY_8:
return SDLK_8;
case GLFW_KEY_9:
return SDLK_9;
case GLFW_KEY_0:
return SDLK_0;
// UI Control
case GLFW_KEY_ESCAPE:
return SDLK_ESCAPE;

View File

@ -107,6 +107,8 @@ void init_options() {
}
// Display Nametags By Default
if (feature_has("Display Nametags By Default", 0)) {
// r6 = 0x1
// r5 = 0x0
unsigned char display_nametags_patch[4] = {0x1d, 0x60, 0xc0, 0xe5}; // "strb r6, [r0, #0x1d]"
patch((void *) 0xa6628, display_nametags_patch);
}