From 6ae475785e8124039108fe6496853ca9bf840404 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Wed, 15 May 2024 05:06:36 -0400 Subject: [PATCH] Fix Newlines --- mods/src/atlas/atlas.cpp | 1 - mods/src/benchmark/benchmark.cpp | 1 - mods/src/bucket/bucket.cpp | 1 - mods/src/cake/cake.cpp | 1 - mods/src/camera/camera.cpp | 1 - mods/src/chat/chat.cpp | 1 - mods/src/chat/ui.cpp | 1 - mods/src/compat/bcm_host.cpp | 1 - mods/src/compat/compat.cpp | 1 - mods/src/compat/egl.cpp | 1 - mods/src/compat/x11.cpp | 1 - mods/src/creative/creative.cpp | 1 - mods/src/death/death.cpp | 1 - mods/src/feature/feature.cpp | 1 - mods/src/fps/fps.cpp | 1 - mods/src/game-mode/game-mode.cpp | 1 - mods/src/home/home.cpp | 1 - mods/src/init/init.cpp | 1 - mods/src/input/attack.cpp | 1 - mods/src/input/bow.cpp | 1 - mods/src/input/crafting.cpp | 1 - mods/src/input/drop.cpp | 1 - mods/src/input/input.cpp | 1 - mods/src/input/misc.cpp | 1 - mods/src/input/toggle.cpp | 1 - mods/src/misc/api.cpp | 1 - mods/src/misc/logging.cpp | 1 - mods/src/misc/misc.cpp | 3 +-- mods/src/multiplayer/multiplayer.cpp | 1 - mods/src/options/options.cpp | 1 - mods/src/override/override.cpp | 1 - mods/src/readdir/readdir.cpp | 1 - mods/src/screenshot/screenshot.cpp | 1 - mods/src/server/server.cpp | 1 - mods/src/server/server_properties.cpp | 1 - mods/src/sign/sign.cpp | 1 - mods/src/skin/loader.cpp | 1 - mods/src/skin/skin.cpp | 1 - mods/src/sound/repository.cpp | 1 - mods/src/sound/sound.cpp | 1 - mods/src/test/test.cpp | 1 - mods/src/text-input-box/TextInputBox.cpp | 1 - mods/src/text-input-box/TextInputScreen.cpp | 1 - mods/src/textures/headless.cpp | 1 - mods/src/textures/lava.cpp | 1 - mods/src/textures/textures.cpp | 1 - mods/src/title-screen/title-screen.cpp | 1 - mods/src/touch/touch.cpp | 1 - mods/src/version/version.cpp | 1 - 49 files changed, 1 insertion(+), 50 deletions(-) diff --git a/mods/src/atlas/atlas.cpp b/mods/src/atlas/atlas.cpp index d3f138adf5..dd1f27e1b4 100644 --- a/mods/src/atlas/atlas.cpp +++ b/mods/src/atlas/atlas.cpp @@ -107,4 +107,3 @@ void init_atlas() { overwrite_call((void *) 0x1e21c, (void *) InventoryPane_renderBatch_Tesselator_color_injection); } } - diff --git a/mods/src/benchmark/benchmark.cpp b/mods/src/benchmark/benchmark.cpp index 99d6b405ce..af59ff1c63 100644 --- a/mods/src/benchmark/benchmark.cpp +++ b/mods/src/benchmark/benchmark.cpp @@ -171,4 +171,3 @@ void init_benchmark() { media_disable_vsync(); } } - diff --git a/mods/src/bucket/bucket.cpp b/mods/src/bucket/bucket.cpp index 77221b238c..8df8f72479 100644 --- a/mods/src/bucket/bucket.cpp +++ b/mods/src/bucket/bucket.cpp @@ -372,4 +372,3 @@ void init_bucket() { misc_run_on_language_setup(Language_injection); } } - diff --git a/mods/src/cake/cake.cpp b/mods/src/cake/cake.cpp index 3742f6b0a1..ad35854841 100644 --- a/mods/src/cake/cake.cpp +++ b/mods/src/cake/cake.cpp @@ -238,4 +238,3 @@ void init_cake() { } } } - diff --git a/mods/src/camera/camera.cpp b/mods/src/camera/camera.cpp index 19975b8a69..45eb1300bd 100644 --- a/mods/src/camera/camera.cpp +++ b/mods/src/camera/camera.cpp @@ -46,4 +46,3 @@ void init_camera() { overwrite_call((void *) 0x87dc4, (void *) TripodCamera_tick_Level_addParticle_call_injection); } } - diff --git a/mods/src/chat/chat.cpp b/mods/src/chat/chat.cpp index 9a1d5dec32..08e3c5f997 100644 --- a/mods/src/chat/chat.cpp +++ b/mods/src/chat/chat.cpp @@ -99,4 +99,3 @@ void init_chat() { patch((void *) 0x6b4c0, message_limit_patch); } } - diff --git a/mods/src/chat/ui.cpp b/mods/src/chat/ui.cpp index ce0f4fd21a..4fea1496b6 100644 --- a/mods/src/chat/ui.cpp +++ b/mods/src/chat/ui.cpp @@ -153,4 +153,3 @@ void _init_chat_ui() { } }); } - diff --git a/mods/src/compat/bcm_host.cpp b/mods/src/compat/bcm_host.cpp index 86c4d9cce2..d236abd0a4 100644 --- a/mods/src/compat/bcm_host.cpp +++ b/mods/src/compat/bcm_host.cpp @@ -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 } - diff --git a/mods/src/compat/compat.cpp b/mods/src/compat/compat.cpp index f31dbf6ba2..980c738177 100644 --- a/mods/src/compat/compat.cpp +++ b/mods/src/compat/compat.cpp @@ -140,4 +140,3 @@ void compat_request_exit() { // Request exit_requested = 1; } - diff --git a/mods/src/compat/egl.cpp b/mods/src/compat/egl.cpp index ee3620550a..21f7a6bbe0 100644 --- a/mods/src/compat/egl.cpp +++ b/mods/src/compat/egl.cpp @@ -38,4 +38,3 @@ void _patch_egl_calls() { patch((void *) 0x12504, nop_patch); // eglDestroySurface #2 overwrite_call((void *) 0x12594, (void *) eglCreateContext_injection); // eglCreateContext } - diff --git a/mods/src/compat/x11.cpp b/mods/src/compat/x11.cpp index 18055caf24..b0dadecf7d 100644 --- a/mods/src/compat/x11.cpp +++ b/mods/src/compat/x11.cpp @@ -27,4 +27,3 @@ void _patch_x11_calls() { overwrite_call((void *) 0x132a4, (void *) XGetWindowAttributes_injection); // XGetWindowAttributes overwrite_call((void *) 0x132d4, (void *) XTranslateCoordinates_injection); // XTranslateCoordinates } - diff --git a/mods/src/creative/creative.cpp b/mods/src/creative/creative.cpp index ce9bf32ef5..d255799fbf 100644 --- a/mods/src/creative/creative.cpp +++ b/mods/src/creative/creative.cpp @@ -173,4 +173,3 @@ void init_creative() { patch((void *) 0x8e104, maximize_stack_patch); } } - diff --git a/mods/src/death/death.cpp b/mods/src/death/death.cpp index f427a3e6dc..ad7ed26572 100644 --- a/mods/src/death/death.cpp +++ b/mods/src/death/death.cpp @@ -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); } - diff --git a/mods/src/feature/feature.cpp b/mods/src/feature/feature.cpp index 3ccc16017c..498530d187 100644 --- a/mods/src/feature/feature.cpp +++ b/mods/src/feature/feature.cpp @@ -27,4 +27,3 @@ bool _feature_has(const char *name) { // Return return ret; } - diff --git a/mods/src/fps/fps.cpp b/mods/src/fps/fps.cpp index 9f2fe396fd..6bdc6831d0 100644 --- a/mods/src/fps/fps.cpp +++ b/mods/src/fps/fps.cpp @@ -52,4 +52,3 @@ void init_fps() { misc_run_on_tick(print_fps); } } - diff --git a/mods/src/game-mode/game-mode.cpp b/mods/src/game-mode/game-mode.cpp index f5126360fa..3fd2087881 100644 --- a/mods/src/game-mode/game-mode.cpp +++ b/mods/src/game-mode/game-mode.cpp @@ -76,4 +76,3 @@ void init_game_mode() { patch((void *) 0x6dc70, server_patch); } } - diff --git a/mods/src/home/home.cpp b/mods/src/home/home.cpp index 4155e802c7..a8f0c8662f 100644 --- a/mods/src/home/home.cpp +++ b/mods/src/home/home.cpp @@ -31,4 +31,3 @@ void init_home() { unsigned char nop_patch[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop" patch((void *) 0xe0ac, nop_patch); } - diff --git a/mods/src/init/init.cpp b/mods/src/init/init.cpp index aaef678c1e..148e127141 100644 --- a/mods/src/init/init.cpp +++ b/mods/src/init/init.cpp @@ -40,4 +40,3 @@ __attribute__((constructor)) static void init() { init_benchmark(); #endif } - diff --git a/mods/src/input/attack.cpp b/mods/src/input/attack.cpp index 3b0393d00a..5056afec72 100644 --- a/mods/src/input/attack.cpp +++ b/mods/src/input/attack.cpp @@ -63,4 +63,3 @@ void _init_attack() { overwrite_call((void *) 0x8fc24, (void *) Player_attack_Inventory_getSelected_injection); } } - diff --git a/mods/src/input/bow.cpp b/mods/src/input/bow.cpp index 26b62be318..46a5f88ee1 100644 --- a/mods/src/input/bow.cpp +++ b/mods/src/input/bow.cpp @@ -31,4 +31,3 @@ void _init_bow() { fix_bow = feature_has("Fix Bow & Arrow", server_disabled); input_run_on_tick(_handle_bow); } - diff --git a/mods/src/input/crafting.cpp b/mods/src/input/crafting.cpp index b5004cd404..b6976251ed 100644 --- a/mods/src/input/crafting.cpp +++ b/mods/src/input/crafting.cpp @@ -28,4 +28,3 @@ static void _handle_open_crafting(Minecraft *minecraft) { void _init_crafting() { input_run_on_tick(_handle_open_crafting); } - diff --git a/mods/src/input/drop.cpp b/mods/src/input/drop.cpp index c696c7d5cd..362ee2134b 100644 --- a/mods/src/input/drop.cpp +++ b/mods/src/input/drop.cpp @@ -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); } - diff --git a/mods/src/input/input.cpp b/mods/src/input/input.cpp index ed88afcebc..09a18d2865 100644 --- a/mods/src/input/input.cpp +++ b/mods/src/input/input.cpp @@ -57,4 +57,3 @@ void init_input() { media_set_raw_mouse_motion_enabled(0); } } - diff --git a/mods/src/input/misc.cpp b/mods/src/input/misc.cpp index abb66f0739..4eae6546c2 100644 --- a/mods/src/input/misc.cpp +++ b/mods/src/input/misc.cpp @@ -115,4 +115,3 @@ void _init_misc() { input_run_on_tick(_handle_back); input_run_on_tick(_handle_mouse_grab); } - diff --git a/mods/src/input/toggle.cpp b/mods/src/input/toggle.cpp index c3b4c3d160..5fff22d945 100644 --- a/mods/src/input/toggle.cpp +++ b/mods/src/input/toggle.cpp @@ -97,4 +97,3 @@ void _init_toggle() { overwrite_calls(ParticleEngine_render, ParticleEngine_render_injection); } } - diff --git a/mods/src/misc/api.cpp b/mods/src/misc/api.cpp index c60758ef2a..77870b9f7a 100644 --- a/mods/src/misc/api.cpp +++ b/mods/src/misc/api.cpp @@ -183,4 +183,3 @@ void _init_misc_api() { // Handle Key Presses overwrite_calls(Gui_handleKeyPressed, Gui_handleKeyPressed_injection); } - diff --git a/mods/src/misc/logging.cpp b/mods/src/misc/logging.cpp index c2c9b38b8d..9bfac0c94c 100644 --- a/mods/src/misc/logging.cpp +++ b/mods/src/misc/logging.cpp @@ -97,4 +97,3 @@ void _init_misc_logging() { // Disable stdout Buffering setvbuf(stdout, nullptr, _IONBF, 0); } - diff --git a/mods/src/misc/misc.cpp b/mods/src/misc/misc.cpp index 815e4154cc..9ae12b297a 100644 --- a/mods/src/misc/misc.cpp +++ b/mods/src/misc/misc.cpp @@ -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(); } - diff --git a/mods/src/multiplayer/multiplayer.cpp b/mods/src/multiplayer/multiplayer.cpp index e6abedba0b..54864e4759 100644 --- a/mods/src/multiplayer/multiplayer.cpp +++ b/mods/src/multiplayer/multiplayer.cpp @@ -133,4 +133,3 @@ void init_multiplayer() { overwrite_virtual_calls(RakNetInstance_pingForHosts, RakNetInstance_pingForHosts_injection); } } - diff --git a/mods/src/options/options.cpp b/mods/src/options/options.cpp index db261c43ce..3e02f95436 100644 --- a/mods/src/options/options.cpp +++ b/mods/src/options/options.cpp @@ -247,4 +247,3 @@ void init_options() { // UI _init_options_ui(); } - diff --git a/mods/src/override/override.cpp b/mods/src/override/override.cpp index 832c0fb532..e782095a0c 100644 --- a/mods/src/override/override.cpp +++ b/mods/src/override/override.cpp @@ -104,4 +104,3 @@ HOOK(fopen64, FILE *, (const char *filename, const char *mode)) { // Return File return file; } - diff --git a/mods/src/readdir/readdir.cpp b/mods/src/readdir/readdir.cpp index 5d1d9e1d4e..077f565ec8 100644 --- a/mods/src/readdir/readdir.cpp +++ b/mods/src/readdir/readdir.cpp @@ -20,4 +20,3 @@ dirent *readdir(DIR *dirp) { new_dirent.d_type = original->d_type; return &new_dirent; } - diff --git a/mods/src/screenshot/screenshot.cpp b/mods/src/screenshot/screenshot.cpp index 30614bff76..edbcd8d6e8 100644 --- a/mods/src/screenshot/screenshot.cpp +++ b/mods/src/screenshot/screenshot.cpp @@ -104,4 +104,3 @@ void screenshot_take(char *home) { free(screenshots); free(pixels); } - diff --git a/mods/src/server/server.cpp b/mods/src/server/server.cpp index 1cb5cbd123..ef97b24284 100644 --- a/mods/src/server/server.cpp +++ b/mods/src/server/server.cpp @@ -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()); } - diff --git a/mods/src/server/server_properties.cpp b/mods/src/server/server_properties.cpp index 98ac897368..40948f15a2 100644 --- a/mods/src/server/server_properties.cpp +++ b/mods/src/server/server_properties.cpp @@ -35,4 +35,3 @@ bool ServerProperties::get_bool(std::string const& name, std::string const& def) } return is_true(def); } - diff --git a/mods/src/sign/sign.cpp b/mods/src/sign/sign.cpp index b83545e0bf..303f1d33c1 100644 --- a/mods/src/sign/sign.cpp +++ b/mods/src/sign/sign.cpp @@ -55,4 +55,3 @@ void init_sign() { // Handle Backspace overwrite_calls(Common_sdl_key_to_minecraft_key, sdl_key_to_minecraft_key_injection); } - diff --git a/mods/src/skin/loader.cpp b/mods/src/skin/loader.cpp index 5af5e88a4e..a78c236ca6 100644 --- a/mods/src/skin/loader.cpp +++ b/mods/src/skin/loader.cpp @@ -142,4 +142,3 @@ void _init_skin_loader() { // Log DEBUG("Skin Server: %s", get_skin_server().c_str()); } - diff --git a/mods/src/skin/skin.cpp b/mods/src/skin/skin.cpp index 5ce056f442..aa920b5b50 100644 --- a/mods/src/skin/skin.cpp +++ b/mods/src/skin/skin.cpp @@ -95,4 +95,3 @@ void init_skin() { _init_skin_loader(); } } - diff --git a/mods/src/sound/repository.cpp b/mods/src/sound/repository.cpp index 3858e982b6..7ce6fe564a 100644 --- a/mods/src/sound/repository.cpp +++ b/mods/src/sound/repository.cpp @@ -377,4 +377,3 @@ void _sound_resolve_all() { } } } - diff --git a/mods/src/sound/sound.cpp b/mods/src/sound/sound.cpp index dc903c1561..5d59c37103 100644 --- a/mods/src/sound/sound.cpp +++ b/mods/src/sound/sound.cpp @@ -125,4 +125,3 @@ void init_sound() { overwrite_calls(SoundEngine_init, SoundEngine_init_injection); } } - diff --git a/mods/src/test/test.cpp b/mods/src/test/test.cpp index 4f2469d444..46c983c147 100644 --- a/mods/src/test/test.cpp +++ b/mods/src/test/test.cpp @@ -20,4 +20,3 @@ void run_tests() { } } } - diff --git a/mods/src/text-input-box/TextInputBox.cpp b/mods/src/text-input-box/TextInputBox.cpp index 255fabee6e..c8c6515c27 100644 --- a/mods/src/text-input-box/TextInputBox.cpp +++ b/mods/src/text-input-box/TextInputBox.cpp @@ -297,4 +297,3 @@ bool TextInputBox::isFocused() { void TextInputBox::setMaxLength(int max_length) { m_maxLength = max_length; } - diff --git a/mods/src/text-input-box/TextInputScreen.cpp b/mods/src/text-input-box/TextInputScreen.cpp index 42f79eb156..499849ee45 100644 --- a/mods/src/text-input-box/TextInputScreen.cpp +++ b/mods/src/text-input-box/TextInputScreen.cpp @@ -54,4 +54,3 @@ void TextInputScreen::setup(Screen_vtable *vtable) { delete self->m_textInputs; }; } - diff --git a/mods/src/textures/headless.cpp b/mods/src/textures/headless.cpp index 1c2dffd078..b893af5414 100644 --- a/mods/src/textures/headless.cpp +++ b/mods/src/textures/headless.cpp @@ -21,4 +21,3 @@ void init_textures() { // Disable Texture Loading overwrite_virtual_calls(AppPlatform_linux_loadTexture, AppPlatform_linux_loadTexture_injection); } - diff --git a/mods/src/textures/lava.cpp b/mods/src/textures/lava.cpp index e06e2eb9cc..9cecc6f5a7 100644 --- a/mods/src/textures/lava.cpp +++ b/mods/src/textures/lava.cpp @@ -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); } - diff --git a/mods/src/textures/textures.cpp b/mods/src/textures/textures.cpp index cb5ae327c0..be80a0f6ce 100644 --- a/mods/src/textures/textures.cpp +++ b/mods/src/textures/textures.cpp @@ -236,4 +236,3 @@ void init_textures() { // Load Textures overwrite_virtual_calls(AppPlatform_linux_loadTexture, AppPlatform_linux_loadTexture_injection); } - diff --git a/mods/src/title-screen/title-screen.cpp b/mods/src/title-screen/title-screen.cpp index b45eb34474..a26c60f213 100644 --- a/mods/src/title-screen/title-screen.cpp +++ b/mods/src/title-screen/title-screen.cpp @@ -166,4 +166,3 @@ void init_title_screen() { srand(time(nullptr)); } } - diff --git a/mods/src/touch/touch.cpp b/mods/src/touch/touch.cpp index 03db15ae0f..0791b06936 100644 --- a/mods/src/touch/touch.cpp +++ b/mods/src/touch/touch.cpp @@ -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); } - diff --git a/mods/src/version/version.cpp b/mods/src/version/version.cpp index 3e85a079ec..a830854872 100644 --- a/mods/src/version/version.cpp +++ b/mods/src/version/version.cpp @@ -35,4 +35,3 @@ void init_version() { // Log INFO("Starting Minecraft: Pi Edition (%s)", version_get()); } -