minecraft-pi-reborn/mods/src/compat/bcm_host.c

19 lines
814 B
C
Raw Normal View History

2022-03-25 02:47:34 +00:00
#include <libreborn/libreborn.h>
// Do Nothing Function
static void do_nothing() {
// NOP
}
// Patch bcm_host Calls
__attribute__((constructor)) static void patch_bcm_host_calls() {
// Disable bcm_host Calls
2021-12-01 02:25:04 +00:00
overwrite_call((void *) 0xdbe8, (void *) do_nothing); // bcm_host_init
overwrite_call((void *) 0x11c54, (void *) do_nothing); // bcm_host_deinit
overwrite_call((void *) 0x11de4, (void *) do_nothing); // graphics_get_display_size
overwrite_call((void *) 0x11e18, (void *) do_nothing); // vc_dispmanx_display_open
overwrite_call((void *) 0x11e28, (void *) do_nothing); // vc_dispmanx_update_start
overwrite_call((void *) 0x11e58, (void *) do_nothing); // vc_dispmanx_element_add
overwrite_call((void *) 0x11e64, (void *) do_nothing); // vc_dispmanx_update_submit_sync
2022-03-25 02:47:34 +00:00
}