24 lines
763 B
C++
Raw Normal View History

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-05-04 20:46:15 -04:00
static Texture AppPlatform_linux_loadTexture_injection(__attribute__((unused)) AppPlatform_linux_loadTexture_t original, __attribute__((unused)) AppPlatform_linux *app_platform, __attribute__((unused)) std::string *path, __attribute__((unused)) bool b) {
2024-01-06 18:03:48 -05:00
Texture out;
out.width = 0;
out.height = 0;
2024-04-02 19:22:01 -04:00
out.data = nullptr;
2024-01-06 18:03:48 -05:00
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-05-24 04:44:53 -04:00
overwrite_calls(AppPlatform_linux_loadTexture, AppPlatform_linux_loadTexture_injection);
2023-11-11 00:44:26 -05:00
}