Add Feature Flag For Custom Skins
This commit is contained in:
parent
c908d46d54
commit
5b792fbf3a
@ -48,3 +48,4 @@ FALSE Add Biome Colors To Grass
|
|||||||
TRUE Generate Caves
|
TRUE Generate Caves
|
||||||
FALSE Disable Block Tinting
|
FALSE Disable Block Tinting
|
||||||
TRUE Disable Hostile AI In Creative Mode
|
TRUE Disable Hostile AI In Creative Mode
|
||||||
|
TRUE Load Custom Skins
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include <symbols/minecraft.h>
|
#include <symbols/minecraft.h>
|
||||||
|
|
||||||
#include <mods/init/init.h>
|
#include <mods/init/init.h>
|
||||||
|
#include <mods/feature/feature.h>
|
||||||
#include "skin-internal.h"
|
#include "skin-internal.h"
|
||||||
|
|
||||||
// Base64 Encode (https://gist.github.com/tomykaira/f0fd86b6c73063283afe550bc5d77594)
|
// Base64 Encode (https://gist.github.com/tomykaira/f0fd86b6c73063283afe550bc5d77594)
|
||||||
@ -79,16 +79,19 @@ static int32_t Textures_loadAndBindTexture_injection(unsigned char *textures, __
|
|||||||
|
|
||||||
// Init
|
// Init
|
||||||
void init_skin() {
|
void init_skin() {
|
||||||
// LocalPlayer
|
// Check Feature Flag
|
||||||
overwrite_call((void *) 0x44c28, (void *) Player_username_assign_injection);
|
if (feature_has("Load Custom Skins", server_disabled)) {
|
||||||
// RemotePlayer
|
// LocalPlayer
|
||||||
overwrite_call((void *) 0x6ce58, (void *) Player_username_assign_injection_2);
|
overwrite_call((void *) 0x44c28, (void *) Player_username_assign_injection);
|
||||||
// ServerPlayer
|
// RemotePlayer
|
||||||
overwrite_call((void *) 0x7639c, (void *) Player_username_assign_injection_2);
|
overwrite_call((void *) 0x6ce58, (void *) Player_username_assign_injection_2);
|
||||||
|
// ServerPlayer
|
||||||
|
overwrite_call((void *) 0x7639c, (void *) Player_username_assign_injection_2);
|
||||||
|
|
||||||
// HUD
|
// HUD
|
||||||
overwrite_call((void *) 0x4c6d0, (void *) Textures_loadAndBindTexture_injection);
|
overwrite_call((void *) 0x4c6d0, (void *) Textures_loadAndBindTexture_injection);
|
||||||
|
|
||||||
// Loader
|
// Loader
|
||||||
_init_skin_loader();
|
_init_skin_loader();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user