Tweak Text Wrapping
All checks were successful
CI / Build (AMD64, Server) (push) Successful in 13m17s
CI / Build (AMD64, Client) (push) Successful in 13m39s
CI / Build (ARM64, Server) (push) Successful in 13m37s
CI / Build (ARM64, Client) (push) Successful in 16m16s
CI / Build (ARMHF, Server) (push) Successful in 9m25s
CI / Build (ARMHF, Client) (push) Successful in 12m21s
CI / Test (Server) (push) Successful in 15m8s
CI / Test (Client) (push) Successful in 16m28s
CI / Release (push) Has been skipped
CI / Build Example Mods (push) Successful in 8m3s

This commit is contained in:
TheBrokenRail 2024-05-19 00:19:01 -04:00
parent 3132f9442d
commit 56d93f0150
3 changed files with 15 additions and 10 deletions

View File

@ -993,6 +993,9 @@ void init_misc() {
patch_vtable(AppPlatform_linux_getDateString, AppPlatform_linux_getDateString_injection);
}
// Don't Wrap Text On '\r' Or '\t' Because THey Are Actual Characters In MCPI
patch_address(&Strings::text_wrapping_delimiter, (void *) " \n");
// Init Logging
_init_misc_logging();
_init_misc_api();

View File

@ -62,3 +62,4 @@ Python API!
Raspberry Pi!
It's alive!
Now with cake!
The bug attractor!

View File

@ -1,11 +1,12 @@
// Fake Class To Hold String References
static-property char *default_path = 0xe264; // /.minecraft/
static-property char *default_username = 0x18fd4; // StevePi
static-property char *minecraft_pi_version = 0x39d94; // v0.1.1 alpha
static-property char *options_txt_path = 0x19bc8; // options.txt
static-property char *options_txt_fopen_mode_when_loading = 0x19d24; // w
static-property char *feedback_vibration_options_txt_name = 0x135d70; // feedback_vibration
static-property char *gfx_lowquality_options_txt_name = 0x135d88; // gfx_lowquality
static-property char *classic_create_button_text = 0x39bec; // Create
static-property char creative_mode_description[31] = 0x104492; // Unlimited resources and flying
static-property char survival_mode_description[34] = 0x104470; // Mobs, health and gather resources
static-property char *default_path = 0xe264; // "/.minecraft/"
static-property char *default_username = 0x18fd4; // "StevePi"
static-property char *minecraft_pi_version = 0x39d94; // "v0.1.1 alpha"
static-property char *options_txt_path = 0x19bc8; // "options.txt"
static-property char *options_txt_fopen_mode_when_loading = 0x19d24; // "w"
static-property char *feedback_vibration_options_txt_name = 0x135d70; // "feedback_vibration"
static-property char *gfx_lowquality_options_txt_name = 0x135d88; // "gfx_lowquality"
static-property char *classic_create_button_text = 0x39bec; // "Create"
static-property char creative_mode_description[31] = 0x104492; // "Unlimited resources and flying"
static-property char survival_mode_description[34] = 0x104470; // "Mobs, health and gather resources"
static-property char *text_wrapping_delimiter = 0x253d0; // " \n\t\r"