From f66f96295bc07d672e1b3cb506f7a7e48969422b Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Tue, 23 Jul 2024 07:40:30 -0400 Subject: [PATCH] Project include cleanup (#3404) --- src/backend/backend.cpp | 2 - src/backend/commands/misc/recovery.cpp | 1 - .../commands/player/kick/breakup_kick.cpp | 3 - .../commands/player/kick/complaint_kick.cpp | 3 - .../commands/player/kick/end_session_kick.cpp | 2 - src/backend/commands/player/kick/oom_kick.cpp | 4 - .../commands/player/kick/script_host_kick.cpp | 2 - .../commands/player/kick/smart_kick.cpp | 4 - .../player/misc/clear_wanted_level.cpp | 2 - .../commands/player/misc/enter_interior.cpp | 2 - .../commands/player/misc/give_ammo.cpp | 3 - .../commands/player/misc/give_armor.cpp | 3 - .../commands/player/misc/give_health.cpp | 3 - src/backend/commands/player/misc/join_ceo.cpp | 3 - .../commands/player/misc/steal_identity.cpp | 1 - .../commands/player/misc/steal_outfit.cpp | 1 - .../commands/player/toxic/break_game.cpp | 2 - .../commands/player/toxic/ceo_kick.cpp | 1 - .../commands/player/toxic/explode_player.cpp | 2 - .../player/toxic/force_into_mission.cpp | 2 - .../player/toxic/give_all_weapons.cpp | 1 - .../commands/player/toxic/kamikaze.cpp | 1 - .../player/toxic/kick_from_vehicle.cpp | 1 - .../commands/player/toxic/kill_player.cpp | 1 - .../commands/player/toxic/ragdoll_player.cpp | 1 - .../player/toxic/remove_all_weapons.cpp | 1 - .../player/toxic/send_fake_ban_message.cpp | 4 - .../commands/player/toxic/send_sext.cpp | 4 - .../commands/player/toxic/send_squad.cpp | 2 - .../player/toxic/send_to_apartment.cpp | 2 - .../player/toxic/send_to_warehouse.cpp | 2 - .../player/toxic/set_wanted_level.cpp | 3 - .../player/toxic/show_transaction_error.cpp | 1 - .../commands/player/toxic/start_script.cpp | 6 - .../player/toxic/trigger_ceo_raid.cpp | 1 - .../commands/player/toxic/turn_into_beast.cpp | 1 - src/backend/commands/player/troll/bring.cpp | 2 - .../commands/player/troll/set_bounty.cpp | 2 - .../commands/player/troll/teleport.cpp | 3 - .../player/troll/teleport_into_vehicle.cpp | 1 - .../commands/player/vehicle/boost_vehicle.cpp | 3 +- .../commands/player/vehicle/break_doors.cpp | 1 - .../commands/player/vehicle/burst_tyres.cpp | 3 +- .../commands/player/vehicle/close_doors.cpp | 4 +- .../player/vehicle/delete_vehicle.cpp | 2 - .../player/vehicle/downgrade_vehicle.cpp | 3 +- .../commands/player/vehicle/flip_180.cpp | 3 +- .../player/vehicle/flying_vehicle.cpp | 3 +- .../commands/player/vehicle/kill_engine.cpp | 4 +- .../commands/player/vehicle/lock_doors.cpp | 4 +- .../commands/player/vehicle/open_doors.cpp | 3 +- .../player/vehicle/remote_control_vehicle.cpp | 1 - .../commands/player/vehicle/smash_windows.cpp | 3 +- .../player/vehicle/special_ability.cpp | 1 - .../commands/player/vehicle/stop_vehicle.cpp | 4 +- .../commands/player/vehicle/unlock_doors.cpp | 4 +- .../player/vehicle/upgrade_vehicle.cpp | 2 - .../commands/player/vehicle/window_tint.cpp | 5 +- src/backend/commands/session/join_player.cpp | 2 - src/backend/context/command_context.hpp | 1 - .../context/default_command_context.cpp | 1 + .../looped/hud/hud_transition_state.cpp | 1 - .../looped/player/remote_control_vehicle.cpp | 1 - src/backend/looped/player/spectate.cpp | 1 - src/backend/looped/player/toxic_options.cpp | 3 - src/backend/looped/self/clean_player.cpp | 1 - src/backend/looped/self/dance_mode.cpp | 1 - src/backend/looped/self/fast_respawn.cpp | 1 - src/backend/looped/self/godmode.cpp | 2 - src/backend/looped/self/health.cpp | 1 - src/backend/looped/self/hud.cpp | 1 - src/backend/looped/self/invisibility.cpp | 5 - src/backend/looped/self/no_collision.cpp | 3 - src/backend/looped/self/no_ragdoll.cpp | 2 - .../looped/self/no_water_collision.cpp | 3 - src/backend/looped/self/noclip.cpp | 2 - src/backend/looped/self/persist_outfit.cpp | 2 - src/backend/looped/self/ptfx.cpp | 1 - src/backend/looped/self/super_hero_fly.cpp | 1 - src/backend/looped/self/unlimited_oxygen.cpp | 1 - src/backend/looped/weapons/aimbot.cpp | 5 - src/backend/player_command.cpp | 2 - src/backend/reactions/interloper_reaction.cpp | 6 - src/backend/reactions/reaction.cpp | 3 - src/byte_patch_manager.cpp | 1 - src/fiber_pool.cpp | 1 - src/fiber_pool.hpp | 1 - src/file_manager/file.cpp | 2 - src/file_manager/folder.cpp | 2 - src/function_types.hpp | 3 - src/gta/fidevice.cpp | 1 - src/gui.cpp | 1 - src/gui/components/custom_text.cpp | 1 - src/gui/components/icon.cpp | 1 - src/gui/components/input_text.cpp | 1 - src/gui/components/input_text_with_hint.cpp | 1 - src/gui/components/small.cpp | 1 - src/gui/components/sub_title.cpp | 1 - src/gui/components/title.cpp | 1 - src/gui/handling/modals/save_handling.cpp | 2 - src/hooking/call_hook.cpp | 1 - src/hooking/hooking.cpp | 3 - src/hooking/hooking.hpp | 1 - src/hooking/vmt_hook.cpp | 2 - src/hooks/fuzzer/read_bits_single.cpp | 1 - src/hooks/gui/swap_chain_present.cpp | 1 - src/hooks/gui/swap_chain_resizebuffers.cpp | 1 - src/hooks/gui/wndproc.cpp | 1 - src/hooks/info/get_network_event_data.cpp | 1 - .../start_matchmaking_find_sessions.cpp | 1 - src/hooks/misc/add_gamer_to_session.cpp | 3 - src/hooks/misc/get_model_info.cpp | 1 - src/hooks/misc/http_start_request.cpp | 3 - src/hooks/misc/queue_dependency.cpp | 1 - src/hooks/misc/send_chat_message.cpp | 3 - .../misc/serialize_join_request_message.cpp | 4 - .../assign_physical_index.cpp | 4 - .../player_management/network_player_mgr.cpp | 1 - src/hooks/protections/handle_join_request.cpp | 1 - .../protections/increment_stat_event.cpp | 29 ---- src/hooks/protections/receive_net_message.cpp | 2 - .../protections/received_array_update.cpp | 1 - src/hooks/protections/received_event.cpp | 14 -- .../protections/script_event_handler.cpp | 4 +- src/hooks/script/gta_thread_start.cpp | 2 +- src/hooks/spoofing/send_player_card_stats.cpp | 1 - src/hooks/spoofing/serialize_stats.cpp | 1 - ..._vehicle_proximity_migration_data_node.cpp | 3 - src/invoker/invoker.hpp | 1 - src/logger/exception_handler.cpp | 144 +++++++++--------- src/logger/stack_trace.cpp | 3 - src/lua/bindings/command.cpp | 2 - src/lua/bindings/entities.cpp | 2 - src/lua/bindings/event.cpp | 4 - src/lua/bindings/globals.cpp | 2 - src/lua/bindings/locals.cpp | 1 - src/lua/bindings/log.cpp | 1 - src/lua/bindings/network.cpp | 3 - src/lua/bindings/script.cpp | 1 - src/lua/bindings/self.cpp | 1 - src/lua/bindings/stats.cpp | 2 - src/lua/bindings/vector.cpp | 1 - src/lua/bindings/vehicles.cpp | 1 - src/lua/bindings/weapons.cpp | 1 - src/lua/lua_manager.hpp | 2 - src/main.cpp | 3 - src/native_hooks/native_hooks.cpp | 4 - src/packet.cpp | 2 - src/pointers.cpp | 1 - src/renderer/renderer.cpp | 1 - src/script.cpp | 2 - src/script.hpp | 1 - src/script_function.cpp | 1 - src/script_global.cpp | 2 - src/script_local.cpp | 4 - src/script_local.hpp | 1 - src/script_mgr.hpp | 1 - src/services/api/api_service.cpp | 1 - .../custom_teleport_service.cpp | 2 - .../custom_text/custom_text_callbacks.cpp | 1 - src/services/gta_data/yim_fipackfile.cpp | 2 - src/services/hotkey/hotkey_service.cpp | 1 - .../matchmaking/matchmaking_service.cpp | 1 - .../model_preview/model_preview_service.cpp | 1 - src/services/players/player_service.cpp | 2 - .../script_connection/script_connection.cpp | 2 - src/util/teleport.hpp | 1 - src/views/core/view_cmd_executor.cpp | 2 - src/views/core/view_heading.cpp | 4 +- src/views/debug/view_debug_globals.cpp | 1 - src/views/debug/view_debug_locals.cpp | 1 - src/views/debug/view_debug_misc.cpp | 6 +- src/views/debug/view_debug_threads.cpp | 6 - src/views/esp/view_esp.cpp | 3 - src/views/network/view_chat.cpp | 2 - src/views/network/view_controls.cpp | 9 +- src/views/network/view_missions.cpp | 3 - src/views/network/view_network.cpp | 5 - src/views/network/view_player_database.cpp | 3 - src/views/network/view_session_browser.cpp | 4 - src/views/network/view_spoofing.cpp | 2 - src/views/players/player/player_info.cpp | 2 - src/views/players/player/player_kick.cpp | 2 - src/views/players/player/player_misc.cpp | 2 - src/views/players/player/player_teleport.cpp | 1 - src/views/players/player/player_toxic.cpp | 3 - src/views/players/view_players.cpp | 1 - src/views/self/view_mobile.cpp | 2 - src/views/self/view_outfit_editor.cpp | 1 - src/views/self/view_self.cpp | 5 +- src/views/self/view_teleport.cpp | 4 - src/views/self/view_weapons.cpp | 3 - src/views/settings/view_gta_cache.cpp | 4 - src/views/settings/view_gui_settings.cpp | 1 - src/views/settings/view_lua_scripts.cpp | 3 - src/views/vehicle/spawn/view_persist_car.cpp | 3 - src/views/vehicle/spawn/view_pv.cpp | 1 - src/views/vehicle/spawn/view_xml_vehicles.cpp | 1 - src/views/vehicle/view_fun_vehicle.cpp | 6 - src/views/vehicle/view_vehicle.cpp | 1 - src/views/view_gta_data.cpp | 1 - src/views/view_vehicle_control.cpp | 4 - src/views/world/view_spawn_ped.cpp | 2 - src/views/world/view_squad_spawner.cpp | 1 - src/views/world/view_time_and_weather.cpp | 2 - src/views/world/view_train.cpp | 3 - src/views/world/view_world.cpp | 1 - src/widgets/imgui_bitfield.hpp | 1 - 208 files changed, 99 insertions(+), 526 deletions(-) delete mode 100644 src/hooks/protections/increment_stat_event.cpp diff --git a/src/backend/backend.cpp b/src/backend/backend.cpp index 99da2c7f..d88bee85 100644 --- a/src/backend/backend.cpp +++ b/src/backend/backend.cpp @@ -14,8 +14,6 @@ #include "services/vehicle/vehicle_control_service.hpp" #include "services/vehicle/xml_vehicles_service.hpp" #include "services/xml_maps/xml_map_service.hpp" -#include "thread_pool.hpp" - namespace big { diff --git a/src/backend/commands/misc/recovery.cpp b/src/backend/commands/misc/recovery.cpp index bf358b1b..40a97e12 100644 --- a/src/backend/commands/misc/recovery.cpp +++ b/src/backend/commands/misc/recovery.cpp @@ -1,5 +1,4 @@ #include "backend/command.hpp" -#include "natives.hpp" namespace big { diff --git a/src/backend/commands/player/kick/breakup_kick.cpp b/src/backend/commands/player/kick/breakup_kick.cpp index 98101f22..1bf7d0ff 100644 --- a/src/backend/commands/player/kick/breakup_kick.cpp +++ b/src/backend/commands/player/kick/breakup_kick.cpp @@ -1,8 +1,5 @@ -#include "backend/bool_command.hpp" #include "backend/player_command.hpp" -#include "core/scr_globals.hpp" #include "gta_util.hpp" -#include "natives.hpp" #include "pointers.hpp" #include diff --git a/src/backend/commands/player/kick/complaint_kick.cpp b/src/backend/commands/player/kick/complaint_kick.cpp index 955c97af..ea782862 100644 --- a/src/backend/commands/player/kick/complaint_kick.cpp +++ b/src/backend/commands/player/kick/complaint_kick.cpp @@ -1,8 +1,5 @@ #include "backend/player_command.hpp" -#include "core/scr_globals.hpp" #include "gta_util.hpp" -#include "natives.hpp" -#include "pointers.hpp" #include diff --git a/src/backend/commands/player/kick/end_session_kick.cpp b/src/backend/commands/player/kick/end_session_kick.cpp index 42f7787e..8739771d 100644 --- a/src/backend/commands/player/kick/end_session_kick.cpp +++ b/src/backend/commands/player/kick/end_session_kick.cpp @@ -1,7 +1,5 @@ #include "backend/player_command.hpp" #include "core/scr_globals.hpp" -#include "natives.hpp" -#include "pointers.hpp" #include "util/scripts.hpp" namespace big diff --git a/src/backend/commands/player/kick/oom_kick.cpp b/src/backend/commands/player/kick/oom_kick.cpp index 2d2f5ba3..985dab49 100644 --- a/src/backend/commands/player/kick/oom_kick.cpp +++ b/src/backend/commands/player/kick/oom_kick.cpp @@ -1,9 +1,5 @@ #include "backend/player_command.hpp" -#include "core/scr_globals.hpp" -#include "natives.hpp" #include "packet.hpp" -#include "pointers.hpp" -#include "util/scripts.hpp" #include diff --git a/src/backend/commands/player/kick/script_host_kick.cpp b/src/backend/commands/player/kick/script_host_kick.cpp index 798ad708..273c91fc 100644 --- a/src/backend/commands/player/kick/script_host_kick.cpp +++ b/src/backend/commands/player/kick/script_host_kick.cpp @@ -1,7 +1,5 @@ #include "backend/player_command.hpp" #include "core/scr_globals.hpp" -#include "natives.hpp" -#include "pointers.hpp" #include "util/scripts.hpp" namespace big diff --git a/src/backend/commands/player/kick/smart_kick.cpp b/src/backend/commands/player/kick/smart_kick.cpp index d898dd22..12ed2f7d 100644 --- a/src/backend/commands/player/kick/smart_kick.cpp +++ b/src/backend/commands/player/kick/smart_kick.cpp @@ -1,8 +1,4 @@ #include "backend/player_command.hpp" -#include "core/scr_globals.hpp" -#include "natives.hpp" -#include "pointers.hpp" -#include "script.hpp" namespace big { diff --git a/src/backend/commands/player/misc/clear_wanted_level.cpp b/src/backend/commands/player/misc/clear_wanted_level.cpp index 2ceda5d4..05657955 100644 --- a/src/backend/commands/player/misc/clear_wanted_level.cpp +++ b/src/backend/commands/player/misc/clear_wanted_level.cpp @@ -1,6 +1,4 @@ #include "backend/player_command.hpp" -#include "natives.hpp" -#include "pointers.hpp" #include "util/globals.hpp" namespace big diff --git a/src/backend/commands/player/misc/enter_interior.cpp b/src/backend/commands/player/misc/enter_interior.cpp index d8040f6b..5326c262 100644 --- a/src/backend/commands/player/misc/enter_interior.cpp +++ b/src/backend/commands/player/misc/enter_interior.cpp @@ -1,8 +1,6 @@ #include "backend/player_command.hpp" #include "core/scr_globals.hpp" -#include "natives.hpp" #include "pointers.hpp" -#include "util/misc.hpp" #include