master #2
@ -76,6 +76,10 @@ static SDLKey glfw_key_to_sdl_key(int key) {
|
|||||||
return SDLK_7;
|
return SDLK_7;
|
||||||
case GLFW_KEY_8:
|
case GLFW_KEY_8:
|
||||||
return SDLK_8;
|
return SDLK_8;
|
||||||
|
case GLFW_KEY_9:
|
||||||
|
return SDLK_9;
|
||||||
|
case GLFW_KEY_0:
|
||||||
|
return SDLK_0;
|
||||||
// UI Control
|
// UI Control
|
||||||
case GLFW_KEY_ESCAPE:
|
case GLFW_KEY_ESCAPE:
|
||||||
return SDLK_ESCAPE;
|
return SDLK_ESCAPE;
|
||||||
|
@ -107,6 +107,8 @@ void init_options() {
|
|||||||
}
|
}
|
||||||
// Display Nametags By Default
|
// Display Nametags By Default
|
||||||
if (feature_has("Display Nametags By Default", 0)) {
|
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]"
|
unsigned char display_nametags_patch[4] = {0x1d, 0x60, 0xc0, 0xe5}; // "strb r6, [r0, #0x1d]"
|
||||||
patch((void *) 0xa6628, display_nametags_patch);
|
patch((void *) 0xa6628, display_nametags_patch);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user