Fix Newlines

This commit is contained in:
TheBrokenRail 2024-05-15 05:06:36 -04:00
parent 51bbad15f4
commit 6ae475785e
49 changed files with 1 additions and 50 deletions

View File

@ -107,4 +107,3 @@ void init_atlas() {
overwrite_call((void *) 0x1e21c, (void *) InventoryPane_renderBatch_Tesselator_color_injection);
}
}

View File

@ -171,4 +171,3 @@ void init_benchmark() {
media_disable_vsync();
}
}

View File

@ -372,4 +372,3 @@ void init_bucket() {
misc_run_on_language_setup(Language_injection);
}
}

View File

@ -238,4 +238,3 @@ void init_cake() {
}
}
}

View File

@ -46,4 +46,3 @@ void init_camera() {
overwrite_call((void *) 0x87dc4, (void *) TripodCamera_tick_Level_addParticle_call_injection);
}
}

View File

@ -99,4 +99,3 @@ void init_chat() {
patch((void *) 0x6b4c0, message_limit_patch);
}
}

View File

@ -153,4 +153,3 @@ void _init_chat_ui() {
}
});
}

View File

@ -17,4 +17,3 @@ void _patch_bcm_host_calls() {
overwrite_call((void *) 0x12618, (void *) do_nothing); // vc_dispmanx_element_add
overwrite_call((void *) 0x12624, (void *) do_nothing); // vc_dispmanx_update_submit_sync
}

View File

@ -140,4 +140,3 @@ void compat_request_exit() {
// Request
exit_requested = 1;
}

View File

@ -38,4 +38,3 @@ void _patch_egl_calls() {
patch((void *) 0x12504, nop_patch); // eglDestroySurface #2
overwrite_call((void *) 0x12594, (void *) eglCreateContext_injection); // eglCreateContext
}

View File

@ -27,4 +27,3 @@ void _patch_x11_calls() {
overwrite_call((void *) 0x132a4, (void *) XGetWindowAttributes_injection); // XGetWindowAttributes
overwrite_call((void *) 0x132d4, (void *) XTranslateCoordinates_injection); // XTranslateCoordinates
}

View File

@ -173,4 +173,3 @@ void init_creative() {
patch((void *) 0x8e104, maximize_stack_patch);
}
}

View File

@ -144,4 +144,3 @@ void init_death() {
unsigned char ldr_r0_24_patch[4] = {0x24, 0x00, 0x90, 0xe5}; // "ldr r0, [r0, #0x24]"
patch((void *) 0x8799c, ldr_r0_24_patch);
}

View File

@ -27,4 +27,3 @@ bool _feature_has(const char *name) {
// Return
return ret;
}

View File

@ -52,4 +52,3 @@ void init_fps() {
misc_run_on_tick(print_fps);
}
}

View File

@ -76,4 +76,3 @@ void init_game_mode() {
patch((void *) 0x6dc70, server_patch);
}
}

View File

@ -31,4 +31,3 @@ void init_home() {
unsigned char nop_patch[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop"
patch((void *) 0xe0ac, nop_patch);
}

View File

@ -40,4 +40,3 @@ __attribute__((constructor)) static void init() {
init_benchmark();
#endif
}

View File

@ -63,4 +63,3 @@ void _init_attack() {
overwrite_call((void *) 0x8fc24, (void *) Player_attack_Inventory_getSelected_injection);
}
}

View File

@ -31,4 +31,3 @@ void _init_bow() {
fix_bow = feature_has("Fix Bow & Arrow", server_disabled);
input_run_on_tick(_handle_bow);
}

View File

@ -28,4 +28,3 @@ static void _handle_open_crafting(Minecraft *minecraft) {
void _init_crafting() {
input_run_on_tick(_handle_open_crafting);
}

View File

@ -78,4 +78,3 @@ void _init_drop() {
enable_drop = feature_has("Bind \"Q\" Key To Item Dropping", server_disabled);
input_run_on_tick(_handle_drop);
}

View File

@ -57,4 +57,3 @@ void init_input() {
media_set_raw_mouse_motion_enabled(0);
}
}

View File

@ -115,4 +115,3 @@ void _init_misc() {
input_run_on_tick(_handle_back);
input_run_on_tick(_handle_mouse_grab);
}

View File

@ -97,4 +97,3 @@ void _init_toggle() {
overwrite_calls(ParticleEngine_render, ParticleEngine_render_injection);
}
}

View File

@ -183,4 +183,3 @@ void _init_misc_api() {
// Handle Key Presses
overwrite_calls(Gui_handleKeyPressed, Gui_handleKeyPressed_injection);
}

View File

@ -97,4 +97,3 @@ void _init_misc_logging() {
// Disable stdout Buffering
setvbuf(stdout, nullptr, _IONBF, 0);
}

View File

@ -247,7 +247,7 @@ static void LoginPacket_read_injection(LoginPacket_read_t original, LoginPacket
// formatting functionality.
static RakNet_RakString *RakNet_RakString_injection(RakNet_RakString *rak_string, const char *format, ...) {
// Call Original Method
return RakNet_RakString_constructor(rak_string, "%s", format);
return rak_string->constructor("%s", format);
}
// Print Error Message If RakNet Startup Fails
@ -997,4 +997,3 @@ void init_misc() {
_init_misc_logging();
_init_misc_api();
}

View File

@ -133,4 +133,3 @@ void init_multiplayer() {
overwrite_virtual_calls(RakNetInstance_pingForHosts, RakNetInstance_pingForHosts_injection);
}
}

View File

@ -247,4 +247,3 @@ void init_options() {
// UI
_init_options_ui();
}

View File

@ -104,4 +104,3 @@ HOOK(fopen64, FILE *, (const char *filename, const char *mode)) {
// Return File
return file;
}

View File

@ -20,4 +20,3 @@ dirent *readdir(DIR *dirp) {
new_dirent.d_type = original->d_type;
return &new_dirent;
}

View File

@ -104,4 +104,3 @@ void screenshot_take(char *home) {
free(screenshots);
free(pixels);
}

View File

@ -594,4 +594,3 @@ void init_server() {
set_and_print_env("MCPI_RENDER_DISTANCE", "Tiny");
set_and_print_env("MCPI_USERNAME", get_motd().c_str());
}

View File

@ -35,4 +35,3 @@ bool ServerProperties::get_bool(std::string const& name, std::string const& def)
}
return is_true(def);
}

View File

@ -55,4 +55,3 @@ void init_sign() {
// Handle Backspace
overwrite_calls(Common_sdl_key_to_minecraft_key, sdl_key_to_minecraft_key_injection);
}

View File

@ -142,4 +142,3 @@ void _init_skin_loader() {
// Log
DEBUG("Skin Server: %s", get_skin_server().c_str());
}

View File

@ -95,4 +95,3 @@ void init_skin() {
_init_skin_loader();
}
}

View File

@ -377,4 +377,3 @@ void _sound_resolve_all() {
}
}
}

View File

@ -125,4 +125,3 @@ void init_sound() {
overwrite_calls(SoundEngine_init, SoundEngine_init_injection);
}
}

View File

@ -20,4 +20,3 @@ void run_tests() {
}
}
}

View File

@ -297,4 +297,3 @@ bool TextInputBox::isFocused() {
void TextInputBox::setMaxLength(int max_length) {
m_maxLength = max_length;
}

View File

@ -54,4 +54,3 @@ void TextInputScreen::setup(Screen_vtable *vtable) {
delete self->m_textInputs;
};
}

View File

@ -21,4 +21,3 @@ void init_textures() {
// Disable Texture Loading
overwrite_virtual_calls(AppPlatform_linux_loadTexture, AppPlatform_linux_loadTexture_injection);
}

View File

@ -259,4 +259,3 @@ void _init_textures_lava(bool animated_water_param, bool animated_lava_param, bo
animated_fire = animated_fire_param;
overwrite_call((void *) 0x170b4, (void *) Textures_addDynamicTexture_injection);
}

View File

@ -236,4 +236,3 @@ void init_textures() {
// Load Textures
overwrite_virtual_calls(AppPlatform_linux_loadTexture, AppPlatform_linux_loadTexture_injection);
}

View File

@ -166,4 +166,3 @@ void init_title_screen() {
srand(time(nullptr));
}
}

View File

@ -106,4 +106,3 @@ void init_touch() {
unsigned char outline_patch[4] = {(unsigned char) (block_outlines ? !touch_gui : touch_gui), 0x00, 0x50, 0xe3}; // "cmp r0, #0x1" or "cmp r0, #0x0"
patch((void *) 0x4a210, outline_patch);
}

View File

@ -35,4 +35,3 @@ void init_version() {
// Log
INFO("Starting Minecraft: Pi Edition (%s)", version_get());
}