2023-11-11 00:44:26 -05:00
|
|
|
#include <libreborn/libreborn.h>
|
|
|
|
#include <symbols/minecraft.h>
|
2024-06-15 08:52:15 -04:00
|
|
|
|
|
|
|
#include "textures-internal.h"
|
2023-11-11 00:44:26 -05:00
|
|
|
|
|
|
|
// Disable Texture Loading
|
2024-07-15 03:05:05 -04:00
|
|
|
static Texture AppPlatform_linux_loadTexture_injection(__attribute__((unused)) AppPlatform_linux_loadTexture_t original, __attribute__((unused)) AppPlatform_linux *app_platform, __attribute__((unused)) const 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
|
2024-06-15 08:52:15 -04:00
|
|
|
void _init_textures_headless() {
|
2023-11-11 00:44:26 -05:00
|
|
|
// 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
|
|
|
}
|