2023-11-11 00:44:26 -05:00
|
|
|
#include <libreborn/libreborn.h>
|
|
|
|
#include <symbols/minecraft.h>
|
|
|
|
#include <mods/init/init.h>
|
|
|
|
|
|
|
|
// Disable Texture Loading
|
2024-01-06 18:03:48 -05:00
|
|
|
static Texture AppPlatform_linux_loadTexture_injection(__attribute__((unused)) AppPlatform_linux *app_platform, __attribute__((unused)) std::string *path, __attribute__((unused)) bool b) {
|
|
|
|
Texture out;
|
|
|
|
out.width = 0;
|
|
|
|
out.height = 0;
|
|
|
|
out.data = NULL;
|
|
|
|
out.field3_0xc = 0;
|
|
|
|
out.field4_0x10 = true;
|
|
|
|
out.field5_0x11 = false;
|
|
|
|
out.field6_0x14 = 0;
|
|
|
|
out.field7_0x18 = -1;
|
|
|
|
return out;
|
2023-11-11 00:44:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Init
|
|
|
|
void init_textures() {
|
|
|
|
// Disable Texture Loading
|
2024-01-06 18:03:48 -05:00
|
|
|
overwrite((void *) AppPlatform_linux_loadTexture_non_virtual, (void *) AppPlatform_linux_loadTexture_injection);
|
2023-11-11 00:44:26 -05:00
|
|
|
}
|