diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
| commit | 3d412a4b30a9f7c7f51ea6562e694315948bd3da (patch) | |
| tree | 26d67dfd1f3e5fd12903ad13e85d0cb8bcf8f21c | |
| parent | e4729e4393d90271a3814c7a79950a660c48325a (diff) | |
cleaned up
in short, the cheat and loader are now separate solutions. unused stuff was moved into the legacy solution in case anyone wants to compile it or whatever.
i can change this back if you want to. also, i configured the loader to compile in x64, and have separate build types for linux and win64
| -rw-r--r-- | cheat/cheat.sln | 92 | ||||
| -rw-r--r-- | cheat/gmod/CHLClient.hpp (renamed from gmod/CHLClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/CInput.hpp (renamed from gmod/CInput.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/CLuaInterface.hpp (renamed from gmod/CLuaInterface.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/CLuaShared.hpp (renamed from gmod/CLuaShared.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/CUtlVector.hpp (renamed from gmod/CUtlVector.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ClientClass.hpp (renamed from gmod/ClientClass.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/GlobalVars_t.hpp (renamed from gmod/GlobalVars_t.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IAppSystem.hpp (renamed from gmod/IAppSystem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IClientEntityList.hpp (renamed from gmod/IClientEntityList.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IClientMode.hpp (renamed from gmod/IClientMode.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ICvar.hpp (renamed from gmod/ICvar.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IEngineTrace.hpp (renamed from gmod/IEngineTrace.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IGameEventManager.hpp (renamed from gmod/IGameEventManager.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IMaterialSystem.hpp (renamed from gmod/IMaterialSystem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IMemAlloc.hpp (renamed from gmod/IMemAlloc.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IPanel.hpp (renamed from gmod/IPanel.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IPhysicsSurfaceProps.hpp (renamed from gmod/IPhysicsSurfaceProps.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IPrediction.hpp (renamed from gmod/IPrediction.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ISurface.hpp (renamed from gmod/ISurface.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IVEngineClient.hpp (renamed from gmod/IVEngineClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IVModelInfoClient.hpp (renamed from gmod/IVModelInfoClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/IVRenderView.hpp (renamed from gmod/IVRenderView.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/KeyValues.cpp (renamed from gmod/KeyValues.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/KeyValues.hpp (renamed from gmod/KeyValues.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/Source.cpp (renamed from gmod/Source.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/Valve/dt_common.h (renamed from gmod/Valve/dt_common.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/Valve/dt_recv.h (renamed from gmod/Valve/dt_recv.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/aimbot.cpp (renamed from gmod/aimbot.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/aimbot.hpp (renamed from gmod/aimbot.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/autowall.cpp (renamed from gmod/autowall.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/autowall.hpp (renamed from gmod/autowall.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/base_cheat.cpp (renamed from gmod/base_cheat.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/base_cheat.hpp (renamed from gmod/base_cheat.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/bf_write.hpp (renamed from gmod/bf_write.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/c_base_player.cpp (renamed from gmod/c_base_player.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/c_base_player.hpp (renamed from gmod/c_base_player.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/c_base_weapon.cpp (renamed from gmod/c_base_weapon.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/c_base_weapon.hpp (renamed from gmod/c_base_weapon.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/chams.cpp (renamed from gmod/chams.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/chams.hpp (renamed from gmod/chams.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/color.hpp (renamed from gmod/color.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/con_alias.hpp (renamed from gmod/con_alias.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/con_fn.hpp (renamed from gmod/con_fn.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/console.cpp (renamed from gmod/console.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/console.hpp (renamed from gmod/console.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/context.cpp (renamed from gmod/context.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/context.hpp (renamed from gmod/context.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/create_move.cpp (renamed from gmod/create_move.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/d3d.cpp (renamed from gmod/d3d.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/d3d.hpp (renamed from gmod/d3d.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/d3d_sprite.cpp (renamed from gmod/d3d_sprite.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/d3d_sprite.hpp (renamed from gmod/d3d_sprite.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/debug_show_spread.cpp (renamed from gmod/debug_show_spread.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/directx.cpp (renamed from gmod/directx.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/do_post_screen_space_effects.cpp (renamed from gmod/do_post_screen_space_effects.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/draw_model_execute.cpp (renamed from gmod/draw_model_execute.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/emit_sound.cpp (renamed from gmod/emit_sound.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/extra.cpp (renamed from gmod/extra.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/extra.hpp (renamed from gmod/extra.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/factory.cpp (renamed from gmod/factory.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/factory.hpp (renamed from gmod/factory.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/fire_bullets.cpp (renamed from gmod/fire_bullets.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/fnv.hpp (renamed from gmod/fnv.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/frame_stage_notify.cpp (renamed from gmod/frame_stage_notify.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/get_screen_size.cpp (renamed from gmod/get_screen_size.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/get_viewmodel_fov.cpp (renamed from gmod/get_viewmodel_fov.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/gmod.vcxproj (renamed from gmod/gmod.vcxproj) | 2 | ||||
| -rw-r--r-- | cheat/gmod/gmod.vcxproj.filters (renamed from gmod/gmod.vcxproj.filters) | 0 | ||||
| -rw-r--r-- | cheat/gmod/hooks.cpp (renamed from gmod/hooks.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/hooks.hpp (renamed from gmod/hooks.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/hud_process_input.cpp (renamed from gmod/hud_process_input.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons.hpp (renamed from gmod/icons.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons/config.hpp (renamed from gmod/icons/config.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons/legit.hpp (renamed from gmod/icons/legit.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons/misc.hpp (renamed from gmod/icons/misc.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons/rage.hpp (renamed from gmod/icons/rage.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/icons/visuals.hpp (renamed from gmod/icons/visuals.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/identity.cpp (renamed from gmod/identity.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/identity.hpp (renamed from gmod/identity.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/iface_dllmain_impl.hpp (renamed from gmod/iface_dllmain_impl.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/in_prediction.cpp (renamed from gmod/in_prediction.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/input_system.cpp (renamed from gmod/input_system.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/input_system.hpp (renamed from gmod/input_system.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/interface.cpp (renamed from gmod/interface.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/interface.hpp (renamed from gmod/interface.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/is_connected.cpp (renamed from gmod/is_connected.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/is_hltv.cpp (renamed from gmod/is_hltv.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/is_paused.cpp (renamed from gmod/is_paused.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/lag_mgr.cpp (renamed from gmod/lag_mgr.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/lag_mgr.hpp (renamed from gmod/lag_mgr.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/legitbot.cpp (renamed from gmod/legitbot.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/legitbot.hpp (renamed from gmod/legitbot.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/legitbot_lagcomp.cpp (renamed from gmod/legitbot_lagcomp.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/listener.cpp (renamed from gmod/listener.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/listener.hpp (renamed from gmod/listener.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/lock_cursor.cpp (renamed from gmod/lock_cursor.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/math.cpp (renamed from gmod/math.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/math.hpp (renamed from gmod/math.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/mem.hpp (renamed from gmod/mem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/movement.cpp (renamed from gmod/movement.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/movement.hpp (renamed from gmod/movement.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/movement_recorder.cpp (renamed from gmod/movement_recorder.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/movement_recorder.hpp (renamed from gmod/movement_recorder.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/netvar_proxy.hpp (renamed from gmod/netvar_proxy.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/netvars.cpp (renamed from gmod/netvars.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/netvars.hpp (renamed from gmod/netvars.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/on_screen_size_changed.cpp (renamed from gmod/on_screen_size_changed.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/override_mouse_input.cpp (renamed from gmod/override_mouse_input.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/override_view.cpp (renamed from gmod/override_view.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/paint.cpp (renamed from gmod/paint.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/paint_traverse.cpp (renamed from gmod/paint_traverse.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/pattern.hpp (renamed from gmod/pattern.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/play_sound.cpp (renamed from gmod/play_sound.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/player_manager.cpp (renamed from gmod/player_manager.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/player_manager.hpp (renamed from gmod/player_manager.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/playerlist.cpp (renamed from gmod/playerlist.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/playerlist.hpp (renamed from gmod/playerlist.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/prediction.cpp (renamed from gmod/prediction.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/prediction.hpp (renamed from gmod/prediction.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/proxies.cpp (renamed from gmod/proxies.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ragebot_antiaim.cpp (renamed from gmod/ragebot_antiaim.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ragebot_lagcomp.cpp (renamed from gmod/ragebot_lagcomp.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ragebot_resolver.cpp (renamed from gmod/ragebot_resolver.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/render_view.cpp (renamed from gmod/render_view.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/renderer.cpp (renamed from gmod/renderer.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/renderer.hpp (renamed from gmod/renderer.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/run_command.cpp (renamed from gmod/run_command.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/scene_end.cpp (renamed from gmod/scene_end.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/sdk.hpp (renamed from gmod/sdk.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/send_datagram.cpp (renamed from gmod/send_datagram.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/settings.hpp (renamed from gmod/settings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/simple_settings.cpp (renamed from gmod/simple_settings.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/simple_settings.hpp (renamed from gmod/simple_settings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/skins.cpp (renamed from gmod/skins.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/skins.hpp (renamed from gmod/skins.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/strings.hpp (renamed from gmod/strings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui.h (renamed from gmod/ui.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_base_item.h (renamed from gmod/ui_base_item.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_button.h (renamed from gmod/ui_button.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_checkbox.h (renamed from gmod/ui_checkbox.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_color_picker.h (renamed from gmod/ui_color_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_draw.h (renamed from gmod/ui_draw.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_dropdown.h (renamed from gmod/ui_dropdown.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_dropdown_item.h (renamed from gmod/ui_dropdown_item.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_form.h (renamed from gmod/ui_form.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_key_picker.h (renamed from gmod/ui_key_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_label.h (renamed from gmod/ui_label.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_menu.h (renamed from gmod/ui_menu.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_render.h (renamed from gmod/ui_render.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_slider.h (renamed from gmod/ui_slider.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_tab_manager.h (renamed from gmod/ui_tab_manager.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/ui_text_input.h (renamed from gmod/ui_text_input.h) | 0 | ||||
| -rw-r--r-- | cheat/gmod/util.cpp (renamed from gmod/util.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/util.hpp (renamed from gmod/util.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/vector.hpp (renamed from gmod/vector.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/visual.hpp (renamed from gmod/visual.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/visual_draw.cpp (renamed from gmod/visual_draw.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/visual_local.cpp (renamed from gmod/visual_local.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/visual_player.cpp (renamed from gmod/visual_player.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/visual_world.cpp (renamed from gmod/visual_world.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/vmt.hpp (renamed from gmod/vmt.hpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/window_procedure.cpp (renamed from gmod/window_procedure.cpp) | 0 | ||||
| -rw-r--r-- | cheat/gmod/x86.hpp (renamed from gmod/x86.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/CHLClient.hpp (renamed from internal_rewrite/CHLClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/CInput.hpp (renamed from internal_rewrite/CInput.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/CUtlVector.hpp (renamed from internal_rewrite/CUtlVector.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ClientClass.hpp (renamed from internal_rewrite/ClientClass.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/GlobalVars_t.hpp (renamed from internal_rewrite/GlobalVars_t.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IAppSystem.hpp (renamed from internal_rewrite/IAppSystem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IClientEntityList.hpp (renamed from internal_rewrite/IClientEntityList.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IClientMode.hpp (renamed from internal_rewrite/IClientMode.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ICvar.hpp (renamed from internal_rewrite/ICvar.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IEngineTrace.hpp (renamed from internal_rewrite/IEngineTrace.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IGameEventManager.hpp (renamed from internal_rewrite/IGameEventManager.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IMaterialSystem.hpp (renamed from internal_rewrite/IMaterialSystem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IMemAlloc.hpp (renamed from internal_rewrite/IMemAlloc.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IPanel.hpp (renamed from internal_rewrite/IPanel.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IPhysicsSurfaceProps.hpp (renamed from internal_rewrite/IPhysicsSurfaceProps.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IPrediction.hpp (renamed from internal_rewrite/IPrediction.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ISteamClient.hpp (renamed from internal_rewrite/ISteamClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ISurface.hpp (renamed from internal_rewrite/ISurface.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IVEngineClient.hpp (renamed from internal_rewrite/IVEngineClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IVModelInfoClient.hpp (renamed from internal_rewrite/IVModelInfoClient.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/IVRenderView.hpp (renamed from internal_rewrite/IVRenderView.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/KeyValues.cpp (renamed from internal_rewrite/KeyValues.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/KeyValues.hpp (renamed from internal_rewrite/KeyValues.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/Source.cpp (renamed from internal_rewrite/Source.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/Valve/checksum_crc.cpp (renamed from internal_rewrite/Valve/checksum_crc.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/Valve/checksum_crc.h (renamed from internal_rewrite/Valve/checksum_crc.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/Valve/dt_common.h (renamed from internal_rewrite/Valve/dt_common.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/Valve/dt_recv.h (renamed from internal_rewrite/Valve/dt_recv.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/autowall.cpp (renamed from internal_rewrite/autowall.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/autowall.hpp (renamed from internal_rewrite/autowall.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/base_cheat.cpp (renamed from internal_rewrite/base_cheat.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/base_cheat.hpp (renamed from internal_rewrite/base_cheat.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/begin_lock.cpp (renamed from internal_rewrite/begin_lock.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/bf_write.hpp (renamed from internal_rewrite/bf_write.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/c_base_player.cpp (renamed from internal_rewrite/c_base_player.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/c_base_player.hpp (renamed from internal_rewrite/c_base_player.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/c_base_weapon.cpp (renamed from internal_rewrite/c_base_weapon.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/c_base_weapon.hpp (renamed from internal_rewrite/c_base_weapon.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/chams.cpp (renamed from internal_rewrite/chams.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/chams.hpp (renamed from internal_rewrite/chams.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/color.hpp (renamed from internal_rewrite/color.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/con_alias.hpp (renamed from internal_rewrite/con_alias.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/con_fn.hpp (renamed from internal_rewrite/con_fn.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/console.cpp (renamed from internal_rewrite/console.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/console.hpp (renamed from internal_rewrite/console.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/context.cpp (renamed from internal_rewrite/context.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/context.hpp (renamed from internal_rewrite/context.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/create_move.cpp (renamed from internal_rewrite/create_move.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/csm_shadows.cpp (renamed from internal_rewrite/csm_shadows.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/d3d.cpp (renamed from internal_rewrite/d3d.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/d3d.hpp (renamed from internal_rewrite/d3d.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/d3d_sprite.cpp (renamed from internal_rewrite/d3d_sprite.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/d3d_sprite.hpp (renamed from internal_rewrite/d3d_sprite.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/debug_show_spread.cpp (renamed from internal_rewrite/debug_show_spread.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/detours.cpp (renamed from internal_rewrite/detours.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/detours.h (renamed from internal_rewrite/detours.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/directx.cpp (renamed from internal_rewrite/directx.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/do_post_screen_space_effects.cpp (renamed from internal_rewrite/do_post_screen_space_effects.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/draw_model_execute.cpp (renamed from internal_rewrite/draw_model_execute.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/draw_small_entities.cpp (renamed from internal_rewrite/draw_small_entities.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/emit_sound.cpp (renamed from internal_rewrite/emit_sound.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/end_lock.cpp (renamed from internal_rewrite/end_lock.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/extra.cpp (renamed from internal_rewrite/extra.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/extra.hpp (renamed from internal_rewrite/extra.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/factory.cpp (renamed from internal_rewrite/factory.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/factory.hpp (renamed from internal_rewrite/factory.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/fire_event_clientside.cpp (renamed from internal_rewrite/fire_event_clientside.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/fnv.hpp (renamed from internal_rewrite/fnv.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/frame_stage_notify.cpp (renamed from internal_rewrite/frame_stage_notify.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/get_player_info.cpp (renamed from internal_rewrite/get_player_info.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/get_screen_size.cpp (renamed from internal_rewrite/get_screen_size.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/get_viewmodel_fov.cpp (renamed from internal_rewrite/get_viewmodel_fov.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/hde32.cpp (renamed from internal_rewrite/hde32.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/hde32.h (renamed from internal_rewrite/hde32.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/hooks.cpp (renamed from internal_rewrite/hooks.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/hooks.hpp (renamed from internal_rewrite/hooks.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons.hpp (renamed from internal_rewrite/icons.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons/config.hpp (renamed from internal_rewrite/icons/config.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons/legit.hpp (renamed from internal_rewrite/icons/legit.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons/misc.hpp (renamed from internal_rewrite/icons/misc.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons/rage.hpp (renamed from internal_rewrite/icons/rage.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/icons/visuals.hpp (renamed from internal_rewrite/icons/visuals.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/identity.cpp (renamed from internal_rewrite/identity.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/identity.hpp (renamed from internal_rewrite/identity.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/iface_dllmain_impl.hpp (renamed from internal_rewrite/iface_dllmain_impl.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/in_prediction.cpp (renamed from internal_rewrite/in_prediction.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/input_system.cpp (renamed from internal_rewrite/input_system.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/input_system.hpp (renamed from internal_rewrite/input_system.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/interface.cpp (renamed from internal_rewrite/interface.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/interface.hpp (renamed from internal_rewrite/interface.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/internal_rewrite.vcxproj (renamed from internal_rewrite/internal_rewrite.vcxproj) | 2 | ||||
| -rw-r--r-- | cheat/internal_rewrite/internal_rewrite.vcxproj.filters (renamed from internal_rewrite/internal_rewrite.vcxproj.filters) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/is_connected.cpp (renamed from internal_rewrite/is_connected.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/lag_mgr.cpp (renamed from internal_rewrite/lag_mgr.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/lag_mgr.hpp (renamed from internal_rewrite/lag_mgr.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/legitbot.cpp (renamed from internal_rewrite/legitbot.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/legitbot.hpp (renamed from internal_rewrite/legitbot.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/legitbot_lagcomp.cpp (renamed from internal_rewrite/legitbot_lagcomp.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/level_init_pre_entity.cpp (renamed from internal_rewrite/level_init_pre_entity.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/listener.cpp (renamed from internal_rewrite/listener.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/listener.hpp (renamed from internal_rewrite/listener.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/lock_cursor.cpp (renamed from internal_rewrite/lock_cursor.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/match_framework.h (renamed from internal_rewrite/match_framework.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/materialsystem_config.cpp (renamed from internal_rewrite/materialsystem_config.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/math.cpp (renamed from internal_rewrite/math.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/math.hpp (renamed from internal_rewrite/math.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/mem.hpp (renamed from internal_rewrite/mem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/modules.hpp (renamed from internal_rewrite/modules.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/movement.cpp (renamed from internal_rewrite/movement.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/movement.hpp (renamed from internal_rewrite/movement.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/movement_recorder.cpp (renamed from internal_rewrite/movement_recorder.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/movement_recorder.hpp (renamed from internal_rewrite/movement_recorder.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/net_showfragments.cpp (renamed from internal_rewrite/net_showfragments.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/netvar_proxy.hpp (renamed from internal_rewrite/netvar_proxy.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/netvars.cpp (renamed from internal_rewrite/netvars.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/netvars.hpp (renamed from internal_rewrite/netvars.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/on_screen_size_changed.cpp (renamed from internal_rewrite/on_screen_size_changed.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/override_mouse_input.cpp (renamed from internal_rewrite/override_mouse_input.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/override_view.cpp (renamed from internal_rewrite/override_view.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/packet_start.cpp (renamed from internal_rewrite/packet_start.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/paint_traverse.cpp (renamed from internal_rewrite/paint_traverse.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/pattern.hpp (renamed from internal_rewrite/pattern.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/play_sound.cpp (renamed from internal_rewrite/play_sound.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/player_manager.cpp (renamed from internal_rewrite/player_manager.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/player_manager.hpp (renamed from internal_rewrite/player_manager.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/prediction.cpp (renamed from internal_rewrite/prediction.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/prediction.hpp (renamed from internal_rewrite/prediction.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/proxies.cpp (renamed from internal_rewrite/proxies.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot.cpp (renamed from internal_rewrite/ragebot.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot.hpp (renamed from internal_rewrite/ragebot.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot_antiaim.cpp (renamed from internal_rewrite/ragebot_antiaim.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot_lagcomp.cpp (renamed from internal_rewrite/ragebot_lagcomp.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot_resolver.cpp (renamed from internal_rewrite/ragebot_resolver.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/renderer.cpp (renamed from internal_rewrite/renderer.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/renderer.hpp (renamed from internal_rewrite/renderer.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/run_command.cpp (renamed from internal_rewrite/run_command.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/scene_end.cpp (renamed from internal_rewrite/scene_end.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/sdk.hpp (renamed from internal_rewrite/sdk.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/send_datagram.cpp (renamed from internal_rewrite/send_datagram.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/settings.hpp (renamed from internal_rewrite/settings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/shut_down.cpp (renamed from internal_rewrite/shut_down.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/simple_settings.cpp (renamed from internal_rewrite/simple_settings.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/simple_settings.hpp (renamed from internal_rewrite/simple_settings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/simulate.cpp (renamed from internal_rewrite/simulate.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/skins.cpp (renamed from internal_rewrite/skins.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/skins.hpp (renamed from internal_rewrite/skins.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/strings.hpp (renamed from internal_rewrite/strings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/suppress_lists.cpp (renamed from internal_rewrite/suppress_lists.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/table32.h (renamed from internal_rewrite/table32.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui.h (renamed from internal_rewrite/ui.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_base_item.h (renamed from internal_rewrite/ui_base_item.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_button.h (renamed from internal_rewrite/ui_button.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_checkbox.h (renamed from internal_rewrite/ui_checkbox.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_color_picker.h (renamed from internal_rewrite/ui_color_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_draw.h (renamed from internal_rewrite/ui_draw.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_dropdown.h (renamed from internal_rewrite/ui_dropdown.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_dropdown_item.h (renamed from internal_rewrite/ui_dropdown_item.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_form.h (renamed from internal_rewrite/ui_form.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_itemlist.h (renamed from internal_rewrite/ui_itemlist.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_itemlist_def.h (renamed from internal_rewrite/ui_itemlist_def.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_key_picker.h (renamed from internal_rewrite/ui_key_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_label.h (renamed from internal_rewrite/ui_label.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_menu.h (renamed from internal_rewrite/ui_menu.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_render.h (renamed from internal_rewrite/ui_render.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_slider.h (renamed from internal_rewrite/ui_slider.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_tab_manager.h (renamed from internal_rewrite/ui_tab_manager.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_text_input.cpp (renamed from internal_rewrite/ui_text_input.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui_text_input.h (renamed from internal_rewrite/ui_text_input.h) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/update_clientside_animation.cpp (renamed from internal_rewrite/update_clientside_animation.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/util.cpp (renamed from internal_rewrite/util.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/util.hpp (renamed from internal_rewrite/util.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/vector.hpp (renamed from internal_rewrite/vector.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual.hpp (renamed from internal_rewrite/visual.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual_draw.cpp (renamed from internal_rewrite/visual_draw.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual_local.cpp (renamed from internal_rewrite/visual_local.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual_player.cpp (renamed from internal_rewrite/visual_player.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual_world.cpp (renamed from internal_rewrite/visual_world.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/vmt.hpp (renamed from internal_rewrite/vmt.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/window_procedure.cpp (renamed from internal_rewrite/window_procedure.cpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/wipe.hpp (renamed from internal_rewrite/wipe.hpp) | 0 | ||||
| -rw-r--r-- | cheat/internal_rewrite/x86.hpp (renamed from internal_rewrite/x86.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ButtonCode_t.h (renamed from tf2/ButtonCode_t.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CAttribute.h (renamed from tf2/CAttribute.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CBasePlayer.cpp (renamed from tf2/CBasePlayer.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CBasePlayer.h (renamed from tf2/CBasePlayer.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CBaseWeapon.cpp (renamed from tf2/CBaseWeapon.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CBaseWeapon.h (renamed from tf2/CBaseWeapon.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CGlobalVarsBase.h (renamed from tf2/CGlobalVarsBase.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CHLClient.h (renamed from tf2/CHLClient.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CInput.hpp (renamed from tf2/CInput.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/CUserCmd.h (renamed from tf2/CUserCmd.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ClientClass.h (renamed from tf2/ClientClass.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/GlowObject.h (renamed from tf2/GlowObject.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IAppSystem.h (renamed from tf2/IAppSystem.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IClientEntity.h (renamed from tf2/IClientEntity.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IClientEntityList.h (renamed from tf2/IClientEntityList.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IClientMode.h (renamed from tf2/IClientMode.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ICvar.h (renamed from tf2/ICvar.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IEngineTrace.h (renamed from tf2/IEngineTrace.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IEngineVGui.h (renamed from tf2/IEngineVGui.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IGameEventManager.h (renamed from tf2/IGameEventManager.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IGameMovement.h (renamed from tf2/IGameMovement.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IInputSystem.h (renamed from tf2/IInputSystem.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IMaterialSystem.hpp (renamed from tf2/IMaterialSystem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IPanel.h (renamed from tf2/IPanel.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IPlayerInfoManager.h (renamed from tf2/IPlayerInfoManager.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ISurface.h (renamed from tf2/ISurface.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IVDebugOverlay.h (renamed from tf2/IVDebugOverlay.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IVEngineClient.h (renamed from tf2/IVEngineClient.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IVModelInfo.h (renamed from tf2/IVModelInfo.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/IVRenderView.h (renamed from tf2/IVRenderView.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/KeyValues.cpp (renamed from tf2/KeyValues.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/KeyValues.h (renamed from tf2/KeyValues.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/README.md (renamed from tf2/README.md) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ScreenSpaceEffects.h (renamed from tf2/ScreenSpaceEffects.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/Source.cpp (renamed from tf2/Source.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/UtlMem.h (renamed from tf2/UtlMem.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/VFunc.h (renamed from tf2/VFunc.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/aim.cpp (renamed from tf2/aim.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/aim.h (renamed from tf2/aim.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/aim_lagcomp.cpp (renamed from tf2/aim_lagcomp.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/base_cheat.h (renamed from tf2/base_cheat.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/chams.cpp (renamed from tf2/chams.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/chams.h (renamed from tf2/chams.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/checksum_crc.cpp (renamed from tf2/checksum_crc.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/checksum_crc.h (renamed from tf2/checksum_crc.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/chl_createmove.cpp (renamed from tf2/chl_createmove.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/clientmode_createmove.cpp (renamed from tf2/clientmode_createmove.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/color.hpp (renamed from tf2/color.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/con_alias.hpp (renamed from tf2/con_alias.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/con_fn.hpp (renamed from tf2/con_fn.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/conditions.h (renamed from tf2/conditions.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/console.cpp (renamed from tf2/console.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/console.hpp (renamed from tf2/console.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/console_log.hpp (renamed from tf2/console_log.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ctx.cpp (renamed from tf2/ctx.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ctx.hpp (renamed from tf2/ctx.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/d3d.cpp (renamed from tf2/d3d.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/d3d.hpp (renamed from tf2/d3d.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/d3d_sprite.cpp (renamed from tf2/d3d_sprite.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/d3d_sprite.hpp (renamed from tf2/d3d_sprite.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/directx.cpp (renamed from tf2/directx.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/do_post_screen_space_effects.cpp (renamed from tf2/do_post_screen_space_effects.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/draw_model_execute.cpp (renamed from tf2/draw_model_execute.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/dt_common.h (renamed from tf2/dt_common.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/dt_recv.h (renamed from tf2/dt_recv.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/emit_sound.cpp (renamed from tf2/emit_sound.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/extra.cpp (renamed from tf2/extra.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/extra.h (renamed from tf2/extra.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/factory.cpp (renamed from tf2/factory.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/factory.h (renamed from tf2/factory.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/factory.hpp (renamed from tf2/factory.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/fnv.hpp (renamed from tf2/fnv.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/framestagenotify.cpp (renamed from tf2/framestagenotify.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/get_viewmodel_fov.cpp (renamed from tf2/get_viewmodel_fov.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/graphics.cpp (renamed from tf2/graphics.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/graphics.h (renamed from tf2/graphics.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/hooks.cpp (renamed from tf2/hooks.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/hooks.h (renamed from tf2/hooks.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons.hpp (renamed from tf2/icons.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons/config.hpp (renamed from tf2/icons/config.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons/legit.hpp (renamed from tf2/icons/legit.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons/misc.hpp (renamed from tf2/icons/misc.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons/rage.hpp (renamed from tf2/icons/rage.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/icons/visuals.hpp (renamed from tf2/icons/visuals.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/identity.h (renamed from tf2/identity.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/input_system.cpp (renamed from tf2/input_system.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/input_system.hpp (renamed from tf2/input_system.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/interfaces.cpp (renamed from tf2/interfaces.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/interfaces.h (renamed from tf2/interfaces.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/listener.cpp (renamed from tf2/listener.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/listener.hpp (renamed from tf2/listener.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/math.cpp (renamed from tf2/math.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/math.h (renamed from tf2/math.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/mem.hpp (renamed from tf2/mem.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/movement.cpp (renamed from tf2/movement.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/movement.h (renamed from tf2/movement.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/netvar_proxy.hpp (renamed from tf2/netvar_proxy.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/netvars.cpp (renamed from tf2/netvars.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/netvars.h (renamed from tf2/netvars.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/on_screen_size_changed.cpp (renamed from tf2/on_screen_size_changed.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/override_mouse_input.cpp (renamed from tf2/override_mouse_input.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/override_view.cpp (renamed from tf2/override_view.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/paint.cpp (renamed from tf2/paint.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/pattern.hpp (renamed from tf2/pattern.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/prediction.cpp (renamed from tf2/prediction.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/prediction.h (renamed from tf2/prediction.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/process_movement.cpp (renamed from tf2/process_movement.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/projectile_pred.cpp (renamed from tf2/projectile_pred.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/projectile_pred.h (renamed from tf2/projectile_pred.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/renderer.cpp (renamed from tf2/renderer.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/renderer.hpp (renamed from tf2/renderer.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/scene_end.cpp (renamed from tf2/scene_end.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/sdk.h (renamed from tf2/sdk.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/settings.cpp (renamed from tf2/settings.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/settings.h (renamed from tf2/settings.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/shut_down.cpp (renamed from tf2/shut_down.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/simple_settings.cpp (renamed from tf2/simple_settings.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/simple_settings.h (renamed from tf2/simple_settings.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/strings.hpp (renamed from tf2/strings.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/test_cso2.vcxproj (renamed from tf2/test_cso2.vcxproj) | 4 | ||||
| -rw-r--r-- | cheat/tf2/test_cso2.vcxproj.filters (renamed from tf2/test_cso2.vcxproj.filters) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui.h (renamed from tf2/ui.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_base_item.h (renamed from tf2/ui_base_item.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_button.h (renamed from tf2/ui_button.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_checkbox.h (renamed from tf2/ui_checkbox.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_color_picker.h (renamed from tf2/ui_color_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_draw.h (renamed from tf2/ui_draw.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_dropdown.h (renamed from tf2/ui_dropdown.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_dropdown_item.h (renamed from tf2/ui_dropdown_item.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_form.h (renamed from tf2/ui_form.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_key_picker.h (renamed from tf2/ui_key_picker.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_label.h (renamed from tf2/ui_label.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_menu.h (renamed from tf2/ui_menu.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_render.h (renamed from tf2/ui_render.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_slider.h (renamed from tf2/ui_slider.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_tab_manager.h (renamed from tf2/ui_tab_manager.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/ui_text_input.h (renamed from tf2/ui_text_input.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/util.cpp (renamed from tf2/util.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/util.hpp (renamed from tf2/util.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/vector.hpp (renamed from tf2/vector.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals.hpp (renamed from tf2/visuals.hpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals_draw.cpp (renamed from tf2/visuals_draw.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals_local.cpp (renamed from tf2/visuals_local.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals_objects.cpp (renamed from tf2/visuals_objects.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals_players.cpp (renamed from tf2/visuals_players.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/visuals_world.cpp (renamed from tf2/visuals_world.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/vmt.h (renamed from tf2/vmt.h) | 0 | ||||
| -rw-r--r-- | cheat/tf2/window_procedure.cpp (renamed from tf2/window_procedure.cpp) | 0 | ||||
| -rw-r--r-- | cheat/tf2/x86.hpp (renamed from tf2/x86.hpp) | 0 | ||||
| -rw-r--r-- | client/client.vcxproj.filters | 36 | ||||
| -rw-r--r-- | legacy/enc_file/enc_file.vcxproj (renamed from enc_file/enc_file.vcxproj) | 2 | ||||
| -rw-r--r-- | legacy/enc_file/enc_file.vcxproj.filters (renamed from enc_file/enc_file.vcxproj.filters) | 0 | ||||
| -rw-r--r-- | legacy/enc_file/source.cpp (renamed from enc_file/source.cpp) | 0 | ||||
| -rw-r--r-- | legacy/injector/injector.vcxproj (renamed from injector/injector.vcxproj) | 2 | ||||
| -rw-r--r-- | legacy/injector/injector.vcxproj.filters (renamed from injector/injector.vcxproj.filters) | 0 | ||||
| -rw-r--r-- | legacy/injector/main.cpp (renamed from injector/main.cpp) | 0 | ||||
| -rw-r--r-- | legacy/injector/pe.h (renamed from injector/pe.h) | 0 | ||||
| -rw-r--r-- | legacy/injector/util.h (renamed from injector/util.h) | 0 | ||||
| -rw-r--r-- | legacy/injector/winapi.h (renamed from injector/winapi.h) | 0 | ||||
| -rw-r--r-- | legacy/legacy.sln | 65 | ||||
| -rw-r--r-- | legacy/loader/Source.cpp | 190 | ||||
| -rw-r--r-- | legacy/loader/color.hpp | 287 | ||||
| -rw-r--r-- | legacy/loader/console.h | 69 | ||||
| -rw-r--r-- | legacy/loader/d3d.cpp | 335 | ||||
| -rw-r--r-- | legacy/loader/d3d.hpp | 126 | ||||
| -rw-r--r-- | legacy/loader/d3d_sprite.cpp | 13 | ||||
| -rw-r--r-- | legacy/loader/d3d_sprite.hpp | 107 | ||||
| -rw-r--r-- | legacy/loader/http.h | 70 | ||||
| -rw-r--r-- | legacy/loader/iface.hpp | 198 | ||||
| -rw-r--r-- | legacy/loader/input_system.cpp | 523 | ||||
| -rw-r--r-- | legacy/loader/input_system.hpp | 177 | ||||
| -rw-r--r-- | legacy/loader/loader.vcxproj (renamed from client/client.vcxproj) | 144 | ||||
| -rw-r--r-- | legacy/loader/loader.vcxproj.filters | 147 | ||||
| -rw-r--r-- | legacy/loader/manualmap.cpp | 109 | ||||
| -rw-r--r-- | legacy/loader/manualmap.hpp | 169 | ||||
| -rw-r--r-- | legacy/loader/math.hpp | 60 | ||||
| -rw-r--r-- | legacy/loader/strings.hpp | 163 | ||||
| -rw-r--r-- | legacy/loader/syscall.h | 167 | ||||
| -rw-r--r-- | legacy/loader/ui.h | 123 | ||||
| -rw-r--r-- | legacy/loader/ui_base_item.h | 164 | ||||
| -rw-r--r-- | legacy/loader/ui_button.h | 56 | ||||
| -rw-r--r-- | legacy/loader/ui_checkbox.h | 68 | ||||
| -rw-r--r-- | legacy/loader/ui_color_picker.h | 201 | ||||
| -rw-r--r-- | legacy/loader/ui_draw.h | 160 | ||||
| -rw-r--r-- | legacy/loader/ui_dropdown.h | 217 | ||||
| -rw-r--r-- | legacy/loader/ui_dropdown_item.h | 22 | ||||
| -rw-r--r-- | legacy/loader/ui_form.h | 130 | ||||
| -rw-r--r-- | legacy/loader/ui_key_picker.h | 164 | ||||
| -rw-r--r-- | legacy/loader/ui_label.h | 18 | ||||
| -rw-r--r-- | legacy/loader/ui_menu.h | 104 | ||||
| -rw-r--r-- | legacy/loader/ui_progressbar.h | 44 | ||||
| -rw-r--r-- | legacy/loader/ui_render.h | 57 | ||||
| -rw-r--r-- | legacy/loader/ui_slider.h | 165 | ||||
| -rw-r--r-- | legacy/loader/ui_tab_manager.h | 224 | ||||
| -rw-r--r-- | legacy/loader/ui_text_input.cpp | 86 | ||||
| -rw-r--r-- | legacy/loader/ui_text_input.h | 38 | ||||
| -rw-r--r-- | legacy/loader/util.hpp | 101 | ||||
| -rw-r--r-- | legacy/loader/winapi.hpp | 64 | ||||
| -rw-r--r-- | legacy/loader/window.cpp | 148 | ||||
| -rw-r--r-- | legacy/loader/window.hpp | 59 | ||||
| -rw-r--r-- | legacy/loader/x86.h | 47 | ||||
| -rw-r--r-- | loader.psess | 78 | ||||
| -rw-r--r-- | loader/client/client.vcxproj | 262 | ||||
| -rw-r--r-- | loader/client/client.vcxproj.filters | 12 | ||||
| -rw-r--r-- | loader/client/client_windows.cpp (renamed from client/client_windows.cpp) | 8 | ||||
| -rw-r--r-- | loader/client/connect.hpp (renamed from client/connect.hpp) | 12 | ||||
| -rw-r--r-- | loader/client/err.hpp (renamed from client/err.hpp) | 0 | ||||
| -rw-r--r-- | loader/client/strings.hpp (renamed from client/strings.hpp) | 0 | ||||
| -rw-r--r-- | loader/client/util.hpp (renamed from client/util.hpp) | 10 | ||||
| -rw-r--r-- | loader/loader.sln | 61 | ||||
| -rw-r--r-- | loader/server/client.cpp (renamed from server/client.cpp) | 10 | ||||
| -rw-r--r-- | loader/server/client.hpp (renamed from server/client.hpp) | 2 | ||||
| -rw-r--r-- | loader/server/message.hpp (renamed from server/message.hpp) | 0 | ||||
| -rw-r--r-- | loader/server/server.cpp (renamed from server/server.cpp) | 2 | ||||
| -rw-r--r-- | loader/server/server.hpp (renamed from server/server.hpp) | 0 | ||||
| -rw-r--r-- | loader/server/server.vcxproj (renamed from server/server.vcxproj) | 170 | ||||
| -rw-r--r-- | loader/server/server.vcxproj.filters | 14 | ||||
| -rw-r--r-- | loader/server/server_windows.cpp (renamed from server/server_windows.cpp) | 2 | ||||
| -rw-r--r-- | loader/server/util.hpp (renamed from server/util.hpp) | 0 | ||||
| -rw-r--r-- | loader/x64/D_LinuxServer/client.ilk | bin | 0 -> 526908 bytes | |||
| -rw-r--r-- | loader/x64/D_LinuxServer/server.ilk | bin | 0 -> 372064 bytes | |||
| -rw-r--r-- | moneybot.sln | 206 | ||||
| -rw-r--r-- | server/server.vcxproj.filters | 42 |
568 files changed, 6082 insertions, 528 deletions
diff --git a/cheat/cheat.sln b/cheat/cheat.sln new file mode 100644 index 0000000..0748f08 --- /dev/null +++ b/cheat/cheat.sln @@ -0,0 +1,92 @@ +
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.106
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "csgo", "internal_rewrite\internal_rewrite.vcxproj", "{140DEC51-B0E7-4289-BB6F-79686422318E}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmod", "gmod\gmod.vcxproj", "{82E7C50B-01E3-4D65-AECC-196E9494DFF4}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tf2", "tf2\test_cso2.vcxproj", "{DD486C1B-C911-42B8-AB24-A9102A23DC02}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Online|x64 = Online|x64
+ Online|x86 = Online|x86
+ optimize_test|x64 = optimize_test|x64
+ optimize_test|x86 = optimize_test|x86
+ pHit|x64 = pHit|x64
+ pHit|x86 = pHit|x86
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x64.ActiveCfg = Debug|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x64.Build.0 = Debug|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x86.ActiveCfg = Debug|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x86.Build.0 = Debug|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x64.ActiveCfg = Online|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x64.Build.0 = Online|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x86.ActiveCfg = Online|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x86.Build.0 = Online|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x64.ActiveCfg = optimize_test|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x64.Build.0 = optimize_test|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x86.ActiveCfg = optimize_test|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x86.Build.0 = optimize_test|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x64.ActiveCfg = pHit|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x64.Build.0 = pHit|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x86.ActiveCfg = pHit|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x86.Build.0 = pHit|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x64.ActiveCfg = Release|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x64.Build.0 = Release|x64
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x86.ActiveCfg = Release|Win32
+ {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x86.Build.0 = Release|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x64.ActiveCfg = Debug|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x64.Build.0 = Debug|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x86.ActiveCfg = Debug|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x86.Build.0 = Debug|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x64.ActiveCfg = pHit|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x64.Build.0 = pHit|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x86.ActiveCfg = optimize_test|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x86.Build.0 = optimize_test|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x64.ActiveCfg = optimize_test|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x86.ActiveCfg = optimize_test|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x86.Build.0 = optimize_test|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x64.ActiveCfg = pHit|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x64.Build.0 = pHit|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x86.ActiveCfg = pHit|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x86.Build.0 = pHit|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x64.ActiveCfg = Release|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x64.Build.0 = Release|x64
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x86.ActiveCfg = Release|Win32
+ {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x86.Build.0 = Release|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x64.ActiveCfg = Debug|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x64.Build.0 = Debug|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x86.ActiveCfg = Debug|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x86.Build.0 = Debug|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x64.ActiveCfg = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x64.Build.0 = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x86.ActiveCfg = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x86.Build.0 = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x64.ActiveCfg = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x64.Build.0 = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x86.ActiveCfg = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x86.Build.0 = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x64.ActiveCfg = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x64.Build.0 = pHit|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x86.ActiveCfg = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x86.Build.0 = pHit|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x64.ActiveCfg = Release|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x64.Build.0 = Release|x64
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x86.ActiveCfg = Release|Win32
+ {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F1E3E860-1001-4EF6-8658-8CA24299B239}
+ EndGlobalSection
+EndGlobal
diff --git a/gmod/CHLClient.hpp b/cheat/gmod/CHLClient.hpp index 4ed244c..4ed244c 100644 --- a/gmod/CHLClient.hpp +++ b/cheat/gmod/CHLClient.hpp diff --git a/gmod/CInput.hpp b/cheat/gmod/CInput.hpp index 613b849..613b849 100644 --- a/gmod/CInput.hpp +++ b/cheat/gmod/CInput.hpp diff --git a/gmod/CLuaInterface.hpp b/cheat/gmod/CLuaInterface.hpp index adc0f7b..adc0f7b 100644 --- a/gmod/CLuaInterface.hpp +++ b/cheat/gmod/CLuaInterface.hpp diff --git a/gmod/CLuaShared.hpp b/cheat/gmod/CLuaShared.hpp index 1a46e74..1a46e74 100644 --- a/gmod/CLuaShared.hpp +++ b/cheat/gmod/CLuaShared.hpp diff --git a/gmod/CUtlVector.hpp b/cheat/gmod/CUtlVector.hpp index a212270..a212270 100644 --- a/gmod/CUtlVector.hpp +++ b/cheat/gmod/CUtlVector.hpp diff --git a/gmod/ClientClass.hpp b/cheat/gmod/ClientClass.hpp index b1d69dd..b1d69dd 100644 --- a/gmod/ClientClass.hpp +++ b/cheat/gmod/ClientClass.hpp diff --git a/gmod/GlobalVars_t.hpp b/cheat/gmod/GlobalVars_t.hpp index 820fe0d..820fe0d 100644 --- a/gmod/GlobalVars_t.hpp +++ b/cheat/gmod/GlobalVars_t.hpp diff --git a/gmod/IAppSystem.hpp b/cheat/gmod/IAppSystem.hpp index a8cf475..a8cf475 100644 --- a/gmod/IAppSystem.hpp +++ b/cheat/gmod/IAppSystem.hpp diff --git a/gmod/IClientEntityList.hpp b/cheat/gmod/IClientEntityList.hpp index 2a0ac28..2a0ac28 100644 --- a/gmod/IClientEntityList.hpp +++ b/cheat/gmod/IClientEntityList.hpp diff --git a/gmod/IClientMode.hpp b/cheat/gmod/IClientMode.hpp index 4996af6..4996af6 100644 --- a/gmod/IClientMode.hpp +++ b/cheat/gmod/IClientMode.hpp diff --git a/gmod/ICvar.hpp b/cheat/gmod/ICvar.hpp index 8cdfca9..8cdfca9 100644 --- a/gmod/ICvar.hpp +++ b/cheat/gmod/ICvar.hpp diff --git a/gmod/IEngineTrace.hpp b/cheat/gmod/IEngineTrace.hpp index 142fef9..142fef9 100644 --- a/gmod/IEngineTrace.hpp +++ b/cheat/gmod/IEngineTrace.hpp diff --git a/gmod/IGameEventManager.hpp b/cheat/gmod/IGameEventManager.hpp index f2e7c25..f2e7c25 100644 --- a/gmod/IGameEventManager.hpp +++ b/cheat/gmod/IGameEventManager.hpp diff --git a/gmod/IMaterialSystem.hpp b/cheat/gmod/IMaterialSystem.hpp index c9b9490..c9b9490 100644 --- a/gmod/IMaterialSystem.hpp +++ b/cheat/gmod/IMaterialSystem.hpp diff --git a/gmod/IMemAlloc.hpp b/cheat/gmod/IMemAlloc.hpp index 2ad76be..2ad76be 100644 --- a/gmod/IMemAlloc.hpp +++ b/cheat/gmod/IMemAlloc.hpp diff --git a/gmod/IPanel.hpp b/cheat/gmod/IPanel.hpp index 8b66fb1..8b66fb1 100644 --- a/gmod/IPanel.hpp +++ b/cheat/gmod/IPanel.hpp diff --git a/gmod/IPhysicsSurfaceProps.hpp b/cheat/gmod/IPhysicsSurfaceProps.hpp index d7003f2..d7003f2 100644 --- a/gmod/IPhysicsSurfaceProps.hpp +++ b/cheat/gmod/IPhysicsSurfaceProps.hpp diff --git a/gmod/IPrediction.hpp b/cheat/gmod/IPrediction.hpp index 575e270..575e270 100644 --- a/gmod/IPrediction.hpp +++ b/cheat/gmod/IPrediction.hpp diff --git a/gmod/ISurface.hpp b/cheat/gmod/ISurface.hpp index 5756191..5756191 100644 --- a/gmod/ISurface.hpp +++ b/cheat/gmod/ISurface.hpp diff --git a/gmod/IVEngineClient.hpp b/cheat/gmod/IVEngineClient.hpp index 4357dc2..4357dc2 100644 --- a/gmod/IVEngineClient.hpp +++ b/cheat/gmod/IVEngineClient.hpp diff --git a/gmod/IVModelInfoClient.hpp b/cheat/gmod/IVModelInfoClient.hpp index 957c6d9..957c6d9 100644 --- a/gmod/IVModelInfoClient.hpp +++ b/cheat/gmod/IVModelInfoClient.hpp diff --git a/gmod/IVRenderView.hpp b/cheat/gmod/IVRenderView.hpp index fef45ae..fef45ae 100644 --- a/gmod/IVRenderView.hpp +++ b/cheat/gmod/IVRenderView.hpp diff --git a/gmod/KeyValues.cpp b/cheat/gmod/KeyValues.cpp index 265cfd8..265cfd8 100644 --- a/gmod/KeyValues.cpp +++ b/cheat/gmod/KeyValues.cpp diff --git a/gmod/KeyValues.hpp b/cheat/gmod/KeyValues.hpp index 0b11698..0b11698 100644 --- a/gmod/KeyValues.hpp +++ b/cheat/gmod/KeyValues.hpp diff --git a/gmod/Source.cpp b/cheat/gmod/Source.cpp index 6c8d000..6c8d000 100644 --- a/gmod/Source.cpp +++ b/cheat/gmod/Source.cpp diff --git a/gmod/Valve/dt_common.h b/cheat/gmod/Valve/dt_common.h index 44bc2a2..44bc2a2 100644 --- a/gmod/Valve/dt_common.h +++ b/cheat/gmod/Valve/dt_common.h diff --git a/gmod/Valve/dt_recv.h b/cheat/gmod/Valve/dt_recv.h index aaec6cc..aaec6cc 100644 --- a/gmod/Valve/dt_recv.h +++ b/cheat/gmod/Valve/dt_recv.h diff --git a/gmod/aimbot.cpp b/cheat/gmod/aimbot.cpp index 313b927..313b927 100644 --- a/gmod/aimbot.cpp +++ b/cheat/gmod/aimbot.cpp diff --git a/gmod/aimbot.hpp b/cheat/gmod/aimbot.hpp index 5b6ad5f..5b6ad5f 100644 --- a/gmod/aimbot.hpp +++ b/cheat/gmod/aimbot.hpp diff --git a/gmod/autowall.cpp b/cheat/gmod/autowall.cpp index d94afbc..d94afbc 100644 --- a/gmod/autowall.cpp +++ b/cheat/gmod/autowall.cpp diff --git a/gmod/autowall.hpp b/cheat/gmod/autowall.hpp index dfddbcc..dfddbcc 100644 --- a/gmod/autowall.hpp +++ b/cheat/gmod/autowall.hpp diff --git a/gmod/base_cheat.cpp b/cheat/gmod/base_cheat.cpp index 1a44474..1a44474 100644 --- a/gmod/base_cheat.cpp +++ b/cheat/gmod/base_cheat.cpp diff --git a/gmod/base_cheat.hpp b/cheat/gmod/base_cheat.hpp index b842f98..b842f98 100644 --- a/gmod/base_cheat.hpp +++ b/cheat/gmod/base_cheat.hpp diff --git a/gmod/bf_write.hpp b/cheat/gmod/bf_write.hpp index 80960e3..80960e3 100644 --- a/gmod/bf_write.hpp +++ b/cheat/gmod/bf_write.hpp diff --git a/gmod/c_base_player.cpp b/cheat/gmod/c_base_player.cpp index caf1ea0..caf1ea0 100644 --- a/gmod/c_base_player.cpp +++ b/cheat/gmod/c_base_player.cpp diff --git a/gmod/c_base_player.hpp b/cheat/gmod/c_base_player.hpp index 085f4a2..085f4a2 100644 --- a/gmod/c_base_player.hpp +++ b/cheat/gmod/c_base_player.hpp diff --git a/gmod/c_base_weapon.cpp b/cheat/gmod/c_base_weapon.cpp index 94c5ec6..94c5ec6 100644 --- a/gmod/c_base_weapon.cpp +++ b/cheat/gmod/c_base_weapon.cpp diff --git a/gmod/c_base_weapon.hpp b/cheat/gmod/c_base_weapon.hpp index 76884c8..76884c8 100644 --- a/gmod/c_base_weapon.hpp +++ b/cheat/gmod/c_base_weapon.hpp diff --git a/gmod/chams.cpp b/cheat/gmod/chams.cpp index 09abe58..09abe58 100644 --- a/gmod/chams.cpp +++ b/cheat/gmod/chams.cpp diff --git a/gmod/chams.hpp b/cheat/gmod/chams.hpp index 2c3e317..2c3e317 100644 --- a/gmod/chams.hpp +++ b/cheat/gmod/chams.hpp diff --git a/gmod/color.hpp b/cheat/gmod/color.hpp index 38bb442..38bb442 100644 --- a/gmod/color.hpp +++ b/cheat/gmod/color.hpp diff --git a/gmod/con_alias.hpp b/cheat/gmod/con_alias.hpp index f00e7df..f00e7df 100644 --- a/gmod/con_alias.hpp +++ b/cheat/gmod/con_alias.hpp diff --git a/gmod/con_fn.hpp b/cheat/gmod/con_fn.hpp index 59fb0a3..59fb0a3 100644 --- a/gmod/con_fn.hpp +++ b/cheat/gmod/con_fn.hpp diff --git a/gmod/console.cpp b/cheat/gmod/console.cpp index 174fc25..174fc25 100644 --- a/gmod/console.cpp +++ b/cheat/gmod/console.cpp diff --git a/gmod/console.hpp b/cheat/gmod/console.hpp index cfeb255..cfeb255 100644 --- a/gmod/console.hpp +++ b/cheat/gmod/console.hpp diff --git a/gmod/context.cpp b/cheat/gmod/context.cpp index 752585e..752585e 100644 --- a/gmod/context.cpp +++ b/cheat/gmod/context.cpp diff --git a/gmod/context.hpp b/cheat/gmod/context.hpp index a478776..a478776 100644 --- a/gmod/context.hpp +++ b/cheat/gmod/context.hpp diff --git a/gmod/create_move.cpp b/cheat/gmod/create_move.cpp index c25d0c5..c25d0c5 100644 --- a/gmod/create_move.cpp +++ b/cheat/gmod/create_move.cpp diff --git a/gmod/d3d.cpp b/cheat/gmod/d3d.cpp index 6802239..6802239 100644 --- a/gmod/d3d.cpp +++ b/cheat/gmod/d3d.cpp diff --git a/gmod/d3d.hpp b/cheat/gmod/d3d.hpp index c4088a3..c4088a3 100644 --- a/gmod/d3d.hpp +++ b/cheat/gmod/d3d.hpp diff --git a/gmod/d3d_sprite.cpp b/cheat/gmod/d3d_sprite.cpp index 8dd6705..8dd6705 100644 --- a/gmod/d3d_sprite.cpp +++ b/cheat/gmod/d3d_sprite.cpp diff --git a/gmod/d3d_sprite.hpp b/cheat/gmod/d3d_sprite.hpp index 42c09c1..42c09c1 100644 --- a/gmod/d3d_sprite.hpp +++ b/cheat/gmod/d3d_sprite.hpp diff --git a/gmod/debug_show_spread.cpp b/cheat/gmod/debug_show_spread.cpp index 68931b2..68931b2 100644 --- a/gmod/debug_show_spread.cpp +++ b/cheat/gmod/debug_show_spread.cpp diff --git a/gmod/directx.cpp b/cheat/gmod/directx.cpp index dd42588..dd42588 100644 --- a/gmod/directx.cpp +++ b/cheat/gmod/directx.cpp diff --git a/gmod/do_post_screen_space_effects.cpp b/cheat/gmod/do_post_screen_space_effects.cpp index 0766233..0766233 100644 --- a/gmod/do_post_screen_space_effects.cpp +++ b/cheat/gmod/do_post_screen_space_effects.cpp diff --git a/gmod/draw_model_execute.cpp b/cheat/gmod/draw_model_execute.cpp index 354a3d4..354a3d4 100644 --- a/gmod/draw_model_execute.cpp +++ b/cheat/gmod/draw_model_execute.cpp diff --git a/gmod/emit_sound.cpp b/cheat/gmod/emit_sound.cpp index 547828c..547828c 100644 --- a/gmod/emit_sound.cpp +++ b/cheat/gmod/emit_sound.cpp diff --git a/gmod/extra.cpp b/cheat/gmod/extra.cpp index 454971e..454971e 100644 --- a/gmod/extra.cpp +++ b/cheat/gmod/extra.cpp diff --git a/gmod/extra.hpp b/cheat/gmod/extra.hpp index 8d01603..8d01603 100644 --- a/gmod/extra.hpp +++ b/cheat/gmod/extra.hpp diff --git a/gmod/factory.cpp b/cheat/gmod/factory.cpp index 4133e39..4133e39 100644 --- a/gmod/factory.cpp +++ b/cheat/gmod/factory.cpp diff --git a/gmod/factory.hpp b/cheat/gmod/factory.hpp index a3565e0..a3565e0 100644 --- a/gmod/factory.hpp +++ b/cheat/gmod/factory.hpp diff --git a/gmod/fire_bullets.cpp b/cheat/gmod/fire_bullets.cpp index 6bc4297..6bc4297 100644 --- a/gmod/fire_bullets.cpp +++ b/cheat/gmod/fire_bullets.cpp diff --git a/gmod/fnv.hpp b/cheat/gmod/fnv.hpp index a3f2dc9..a3f2dc9 100644 --- a/gmod/fnv.hpp +++ b/cheat/gmod/fnv.hpp diff --git a/gmod/frame_stage_notify.cpp b/cheat/gmod/frame_stage_notify.cpp index c371eb0..c371eb0 100644 --- a/gmod/frame_stage_notify.cpp +++ b/cheat/gmod/frame_stage_notify.cpp diff --git a/gmod/get_screen_size.cpp b/cheat/gmod/get_screen_size.cpp index 19d9908..19d9908 100644 --- a/gmod/get_screen_size.cpp +++ b/cheat/gmod/get_screen_size.cpp diff --git a/gmod/get_viewmodel_fov.cpp b/cheat/gmod/get_viewmodel_fov.cpp index e4722e2..e4722e2 100644 --- a/gmod/get_viewmodel_fov.cpp +++ b/cheat/gmod/get_viewmodel_fov.cpp diff --git a/gmod/gmod.vcxproj b/cheat/gmod/gmod.vcxproj index ce74398..e20139f 100644 --- a/gmod/gmod.vcxproj +++ b/cheat/gmod/gmod.vcxproj @@ -154,7 +154,7 @@ <VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{82E7C50B-01E3-4D65-AECC-196E9494DFF4}</ProjectGuid>
<RootNamespace>gmod</RootNamespace>
- <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
+ <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='optimize_test|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
diff --git a/gmod/gmod.vcxproj.filters b/cheat/gmod/gmod.vcxproj.filters index c0bbeec..c0bbeec 100644 --- a/gmod/gmod.vcxproj.filters +++ b/cheat/gmod/gmod.vcxproj.filters diff --git a/gmod/hooks.cpp b/cheat/gmod/hooks.cpp index a5cb91e..a5cb91e 100644 --- a/gmod/hooks.cpp +++ b/cheat/gmod/hooks.cpp diff --git a/gmod/hooks.hpp b/cheat/gmod/hooks.hpp index e4a6239..e4a6239 100644 --- a/gmod/hooks.hpp +++ b/cheat/gmod/hooks.hpp diff --git a/gmod/hud_process_input.cpp b/cheat/gmod/hud_process_input.cpp index b68c9c1..b68c9c1 100644 --- a/gmod/hud_process_input.cpp +++ b/cheat/gmod/hud_process_input.cpp diff --git a/gmod/icons.hpp b/cheat/gmod/icons.hpp index bffd94e..bffd94e 100644 --- a/gmod/icons.hpp +++ b/cheat/gmod/icons.hpp diff --git a/gmod/icons/config.hpp b/cheat/gmod/icons/config.hpp index be45039..be45039 100644 --- a/gmod/icons/config.hpp +++ b/cheat/gmod/icons/config.hpp diff --git a/gmod/icons/legit.hpp b/cheat/gmod/icons/legit.hpp index c5db680..c5db680 100644 --- a/gmod/icons/legit.hpp +++ b/cheat/gmod/icons/legit.hpp diff --git a/gmod/icons/misc.hpp b/cheat/gmod/icons/misc.hpp index 9e78249..9e78249 100644 --- a/gmod/icons/misc.hpp +++ b/cheat/gmod/icons/misc.hpp diff --git a/gmod/icons/rage.hpp b/cheat/gmod/icons/rage.hpp index 00e0764..00e0764 100644 --- a/gmod/icons/rage.hpp +++ b/cheat/gmod/icons/rage.hpp diff --git a/gmod/icons/visuals.hpp b/cheat/gmod/icons/visuals.hpp index 8ee4589..8ee4589 100644 --- a/gmod/icons/visuals.hpp +++ b/cheat/gmod/icons/visuals.hpp diff --git a/gmod/identity.cpp b/cheat/gmod/identity.cpp index de047cf..de047cf 100644 --- a/gmod/identity.cpp +++ b/cheat/gmod/identity.cpp diff --git a/gmod/identity.hpp b/cheat/gmod/identity.hpp index 0d6e778..0d6e778 100644 --- a/gmod/identity.hpp +++ b/cheat/gmod/identity.hpp diff --git a/gmod/iface_dllmain_impl.hpp b/cheat/gmod/iface_dllmain_impl.hpp index 761c215..761c215 100644 --- a/gmod/iface_dllmain_impl.hpp +++ b/cheat/gmod/iface_dllmain_impl.hpp diff --git a/gmod/in_prediction.cpp b/cheat/gmod/in_prediction.cpp index cb5a7bf..cb5a7bf 100644 --- a/gmod/in_prediction.cpp +++ b/cheat/gmod/in_prediction.cpp diff --git a/gmod/input_system.cpp b/cheat/gmod/input_system.cpp index 881fa02..881fa02 100644 --- a/gmod/input_system.cpp +++ b/cheat/gmod/input_system.cpp diff --git a/gmod/input_system.hpp b/cheat/gmod/input_system.hpp index a237667..a237667 100644 --- a/gmod/input_system.hpp +++ b/cheat/gmod/input_system.hpp diff --git a/gmod/interface.cpp b/cheat/gmod/interface.cpp index 0d1cfac..0d1cfac 100644 --- a/gmod/interface.cpp +++ b/cheat/gmod/interface.cpp diff --git a/gmod/interface.hpp b/cheat/gmod/interface.hpp index 49fa015..49fa015 100644 --- a/gmod/interface.hpp +++ b/cheat/gmod/interface.hpp diff --git a/gmod/is_connected.cpp b/cheat/gmod/is_connected.cpp index 7b1055a..7b1055a 100644 --- a/gmod/is_connected.cpp +++ b/cheat/gmod/is_connected.cpp diff --git a/gmod/is_hltv.cpp b/cheat/gmod/is_hltv.cpp index a611d2e..a611d2e 100644 --- a/gmod/is_hltv.cpp +++ b/cheat/gmod/is_hltv.cpp diff --git a/gmod/is_paused.cpp b/cheat/gmod/is_paused.cpp index 48916a4..48916a4 100644 --- a/gmod/is_paused.cpp +++ b/cheat/gmod/is_paused.cpp diff --git a/gmod/lag_mgr.cpp b/cheat/gmod/lag_mgr.cpp index 4f9d04b..4f9d04b 100644 --- a/gmod/lag_mgr.cpp +++ b/cheat/gmod/lag_mgr.cpp diff --git a/gmod/lag_mgr.hpp b/cheat/gmod/lag_mgr.hpp index ae5fb6c..ae5fb6c 100644 --- a/gmod/lag_mgr.hpp +++ b/cheat/gmod/lag_mgr.hpp diff --git a/gmod/legitbot.cpp b/cheat/gmod/legitbot.cpp index fe819cf..fe819cf 100644 --- a/gmod/legitbot.cpp +++ b/cheat/gmod/legitbot.cpp diff --git a/gmod/legitbot.hpp b/cheat/gmod/legitbot.hpp index f5d4243..f5d4243 100644 --- a/gmod/legitbot.hpp +++ b/cheat/gmod/legitbot.hpp diff --git a/gmod/legitbot_lagcomp.cpp b/cheat/gmod/legitbot_lagcomp.cpp index b2ab3c0..b2ab3c0 100644 --- a/gmod/legitbot_lagcomp.cpp +++ b/cheat/gmod/legitbot_lagcomp.cpp diff --git a/gmod/listener.cpp b/cheat/gmod/listener.cpp index a1939aa..a1939aa 100644 --- a/gmod/listener.cpp +++ b/cheat/gmod/listener.cpp diff --git a/gmod/listener.hpp b/cheat/gmod/listener.hpp index 182a615..182a615 100644 --- a/gmod/listener.hpp +++ b/cheat/gmod/listener.hpp diff --git a/gmod/lock_cursor.cpp b/cheat/gmod/lock_cursor.cpp index 477847d..477847d 100644 --- a/gmod/lock_cursor.cpp +++ b/cheat/gmod/lock_cursor.cpp diff --git a/gmod/math.cpp b/cheat/gmod/math.cpp index 5326fdd..5326fdd 100644 --- a/gmod/math.cpp +++ b/cheat/gmod/math.cpp diff --git a/gmod/math.hpp b/cheat/gmod/math.hpp index 4d5003e..4d5003e 100644 --- a/gmod/math.hpp +++ b/cheat/gmod/math.hpp diff --git a/gmod/mem.hpp b/cheat/gmod/mem.hpp index f5c8ec4..f5c8ec4 100644 --- a/gmod/mem.hpp +++ b/cheat/gmod/mem.hpp diff --git a/gmod/movement.cpp b/cheat/gmod/movement.cpp index 2815767..2815767 100644 --- a/gmod/movement.cpp +++ b/cheat/gmod/movement.cpp diff --git a/gmod/movement.hpp b/cheat/gmod/movement.hpp index f9e3ced..f9e3ced 100644 --- a/gmod/movement.hpp +++ b/cheat/gmod/movement.hpp diff --git a/gmod/movement_recorder.cpp b/cheat/gmod/movement_recorder.cpp index 60f082e..60f082e 100644 --- a/gmod/movement_recorder.cpp +++ b/cheat/gmod/movement_recorder.cpp diff --git a/gmod/movement_recorder.hpp b/cheat/gmod/movement_recorder.hpp index dcfe511..dcfe511 100644 --- a/gmod/movement_recorder.hpp +++ b/cheat/gmod/movement_recorder.hpp diff --git a/gmod/netvar_proxy.hpp b/cheat/gmod/netvar_proxy.hpp index cb329c3..cb329c3 100644 --- a/gmod/netvar_proxy.hpp +++ b/cheat/gmod/netvar_proxy.hpp diff --git a/gmod/netvars.cpp b/cheat/gmod/netvars.cpp index 19ab6d1..19ab6d1 100644 --- a/gmod/netvars.cpp +++ b/cheat/gmod/netvars.cpp diff --git a/gmod/netvars.hpp b/cheat/gmod/netvars.hpp index 9924b43..9924b43 100644 --- a/gmod/netvars.hpp +++ b/cheat/gmod/netvars.hpp diff --git a/gmod/on_screen_size_changed.cpp b/cheat/gmod/on_screen_size_changed.cpp index 7b33762..7b33762 100644 --- a/gmod/on_screen_size_changed.cpp +++ b/cheat/gmod/on_screen_size_changed.cpp diff --git a/gmod/override_mouse_input.cpp b/cheat/gmod/override_mouse_input.cpp index 792c5d2..792c5d2 100644 --- a/gmod/override_mouse_input.cpp +++ b/cheat/gmod/override_mouse_input.cpp diff --git a/gmod/override_view.cpp b/cheat/gmod/override_view.cpp index 92b559d..92b559d 100644 --- a/gmod/override_view.cpp +++ b/cheat/gmod/override_view.cpp diff --git a/gmod/paint.cpp b/cheat/gmod/paint.cpp index d744d9d..d744d9d 100644 --- a/gmod/paint.cpp +++ b/cheat/gmod/paint.cpp diff --git a/gmod/paint_traverse.cpp b/cheat/gmod/paint_traverse.cpp index c3dd47e..c3dd47e 100644 --- a/gmod/paint_traverse.cpp +++ b/cheat/gmod/paint_traverse.cpp diff --git a/gmod/pattern.hpp b/cheat/gmod/pattern.hpp index 0bc4b1b..0bc4b1b 100644 --- a/gmod/pattern.hpp +++ b/cheat/gmod/pattern.hpp diff --git a/gmod/play_sound.cpp b/cheat/gmod/play_sound.cpp index 7a701ad..7a701ad 100644 --- a/gmod/play_sound.cpp +++ b/cheat/gmod/play_sound.cpp diff --git a/gmod/player_manager.cpp b/cheat/gmod/player_manager.cpp index a531965..a531965 100644 --- a/gmod/player_manager.cpp +++ b/cheat/gmod/player_manager.cpp diff --git a/gmod/player_manager.hpp b/cheat/gmod/player_manager.hpp index 6a89b36..6a89b36 100644 --- a/gmod/player_manager.hpp +++ b/cheat/gmod/player_manager.hpp diff --git a/gmod/playerlist.cpp b/cheat/gmod/playerlist.cpp index 10f7d82..10f7d82 100644 --- a/gmod/playerlist.cpp +++ b/cheat/gmod/playerlist.cpp diff --git a/gmod/playerlist.hpp b/cheat/gmod/playerlist.hpp index 56eac50..56eac50 100644 --- a/gmod/playerlist.hpp +++ b/cheat/gmod/playerlist.hpp diff --git a/gmod/prediction.cpp b/cheat/gmod/prediction.cpp index ebfea5b..ebfea5b 100644 --- a/gmod/prediction.cpp +++ b/cheat/gmod/prediction.cpp diff --git a/gmod/prediction.hpp b/cheat/gmod/prediction.hpp index ca0fb93..ca0fb93 100644 --- a/gmod/prediction.hpp +++ b/cheat/gmod/prediction.hpp diff --git a/gmod/proxies.cpp b/cheat/gmod/proxies.cpp index 200a370..200a370 100644 --- a/gmod/proxies.cpp +++ b/cheat/gmod/proxies.cpp diff --git a/gmod/ragebot_antiaim.cpp b/cheat/gmod/ragebot_antiaim.cpp index 1cb9af9..1cb9af9 100644 --- a/gmod/ragebot_antiaim.cpp +++ b/cheat/gmod/ragebot_antiaim.cpp diff --git a/gmod/ragebot_lagcomp.cpp b/cheat/gmod/ragebot_lagcomp.cpp index 0fe3a0b..0fe3a0b 100644 --- a/gmod/ragebot_lagcomp.cpp +++ b/cheat/gmod/ragebot_lagcomp.cpp diff --git a/gmod/ragebot_resolver.cpp b/cheat/gmod/ragebot_resolver.cpp index 0de8f13..0de8f13 100644 --- a/gmod/ragebot_resolver.cpp +++ b/cheat/gmod/ragebot_resolver.cpp diff --git a/gmod/render_view.cpp b/cheat/gmod/render_view.cpp index c68a244..c68a244 100644 --- a/gmod/render_view.cpp +++ b/cheat/gmod/render_view.cpp diff --git a/gmod/renderer.cpp b/cheat/gmod/renderer.cpp index 82b6432..82b6432 100644 --- a/gmod/renderer.cpp +++ b/cheat/gmod/renderer.cpp diff --git a/gmod/renderer.hpp b/cheat/gmod/renderer.hpp index 1ae0c00..1ae0c00 100644 --- a/gmod/renderer.hpp +++ b/cheat/gmod/renderer.hpp diff --git a/gmod/run_command.cpp b/cheat/gmod/run_command.cpp index fad382d..fad382d 100644 --- a/gmod/run_command.cpp +++ b/cheat/gmod/run_command.cpp diff --git a/gmod/scene_end.cpp b/cheat/gmod/scene_end.cpp index 1e42543..1e42543 100644 --- a/gmod/scene_end.cpp +++ b/cheat/gmod/scene_end.cpp diff --git a/gmod/sdk.hpp b/cheat/gmod/sdk.hpp index fbed28a..fbed28a 100644 --- a/gmod/sdk.hpp +++ b/cheat/gmod/sdk.hpp diff --git a/gmod/send_datagram.cpp b/cheat/gmod/send_datagram.cpp index dc55887..dc55887 100644 --- a/gmod/send_datagram.cpp +++ b/cheat/gmod/send_datagram.cpp diff --git a/gmod/settings.hpp b/cheat/gmod/settings.hpp index 0033391..0033391 100644 --- a/gmod/settings.hpp +++ b/cheat/gmod/settings.hpp diff --git a/gmod/simple_settings.cpp b/cheat/gmod/simple_settings.cpp index 156151a..156151a 100644 --- a/gmod/simple_settings.cpp +++ b/cheat/gmod/simple_settings.cpp diff --git a/gmod/simple_settings.hpp b/cheat/gmod/simple_settings.hpp index e3a8655..e3a8655 100644 --- a/gmod/simple_settings.hpp +++ b/cheat/gmod/simple_settings.hpp diff --git a/gmod/skins.cpp b/cheat/gmod/skins.cpp index 9564abf..9564abf 100644 --- a/gmod/skins.cpp +++ b/cheat/gmod/skins.cpp diff --git a/gmod/skins.hpp b/cheat/gmod/skins.hpp index 4ce5971..4ce5971 100644 --- a/gmod/skins.hpp +++ b/cheat/gmod/skins.hpp diff --git a/gmod/strings.hpp b/cheat/gmod/strings.hpp index dfdeb8b..dfdeb8b 100644 --- a/gmod/strings.hpp +++ b/cheat/gmod/strings.hpp diff --git a/gmod/ui.h b/cheat/gmod/ui.h index b25a98d..b25a98d 100644 --- a/gmod/ui.h +++ b/cheat/gmod/ui.h diff --git a/gmod/ui_base_item.h b/cheat/gmod/ui_base_item.h index 68c2198..68c2198 100644 --- a/gmod/ui_base_item.h +++ b/cheat/gmod/ui_base_item.h diff --git a/gmod/ui_button.h b/cheat/gmod/ui_button.h index 022fc67..022fc67 100644 --- a/gmod/ui_button.h +++ b/cheat/gmod/ui_button.h diff --git a/gmod/ui_checkbox.h b/cheat/gmod/ui_checkbox.h index 50cad1c..50cad1c 100644 --- a/gmod/ui_checkbox.h +++ b/cheat/gmod/ui_checkbox.h diff --git a/gmod/ui_color_picker.h b/cheat/gmod/ui_color_picker.h index 2711d29..2711d29 100644 --- a/gmod/ui_color_picker.h +++ b/cheat/gmod/ui_color_picker.h diff --git a/gmod/ui_draw.h b/cheat/gmod/ui_draw.h index 336c4fa..336c4fa 100644 --- a/gmod/ui_draw.h +++ b/cheat/gmod/ui_draw.h diff --git a/gmod/ui_dropdown.h b/cheat/gmod/ui_dropdown.h index 0c4e990..0c4e990 100644 --- a/gmod/ui_dropdown.h +++ b/cheat/gmod/ui_dropdown.h diff --git a/gmod/ui_dropdown_item.h b/cheat/gmod/ui_dropdown_item.h index 4723af8..4723af8 100644 --- a/gmod/ui_dropdown_item.h +++ b/cheat/gmod/ui_dropdown_item.h diff --git a/gmod/ui_form.h b/cheat/gmod/ui_form.h index 0791528..0791528 100644 --- a/gmod/ui_form.h +++ b/cheat/gmod/ui_form.h diff --git a/gmod/ui_key_picker.h b/cheat/gmod/ui_key_picker.h index 03aed84..03aed84 100644 --- a/gmod/ui_key_picker.h +++ b/cheat/gmod/ui_key_picker.h diff --git a/gmod/ui_label.h b/cheat/gmod/ui_label.h index 9df46b5..9df46b5 100644 --- a/gmod/ui_label.h +++ b/cheat/gmod/ui_label.h diff --git a/gmod/ui_menu.h b/cheat/gmod/ui_menu.h index 53a17a0..53a17a0 100644 --- a/gmod/ui_menu.h +++ b/cheat/gmod/ui_menu.h diff --git a/gmod/ui_render.h b/cheat/gmod/ui_render.h index f67f16b..f67f16b 100644 --- a/gmod/ui_render.h +++ b/cheat/gmod/ui_render.h diff --git a/gmod/ui_slider.h b/cheat/gmod/ui_slider.h index 0e55a73..0e55a73 100644 --- a/gmod/ui_slider.h +++ b/cheat/gmod/ui_slider.h diff --git a/gmod/ui_tab_manager.h b/cheat/gmod/ui_tab_manager.h index b771470..b771470 100644 --- a/gmod/ui_tab_manager.h +++ b/cheat/gmod/ui_tab_manager.h diff --git a/gmod/ui_text_input.h b/cheat/gmod/ui_text_input.h index f486106..f486106 100644 --- a/gmod/ui_text_input.h +++ b/cheat/gmod/ui_text_input.h diff --git a/gmod/util.cpp b/cheat/gmod/util.cpp index a038871..a038871 100644 --- a/gmod/util.cpp +++ b/cheat/gmod/util.cpp diff --git a/gmod/util.hpp b/cheat/gmod/util.hpp index 0013611..0013611 100644 --- a/gmod/util.hpp +++ b/cheat/gmod/util.hpp diff --git a/gmod/vector.hpp b/cheat/gmod/vector.hpp index a917bb8..a917bb8 100644 --- a/gmod/vector.hpp +++ b/cheat/gmod/vector.hpp diff --git a/gmod/visual.hpp b/cheat/gmod/visual.hpp index 748497f..748497f 100644 --- a/gmod/visual.hpp +++ b/cheat/gmod/visual.hpp diff --git a/gmod/visual_draw.cpp b/cheat/gmod/visual_draw.cpp index db282a7..db282a7 100644 --- a/gmod/visual_draw.cpp +++ b/cheat/gmod/visual_draw.cpp diff --git a/gmod/visual_local.cpp b/cheat/gmod/visual_local.cpp index 94de96b..94de96b 100644 --- a/gmod/visual_local.cpp +++ b/cheat/gmod/visual_local.cpp diff --git a/gmod/visual_player.cpp b/cheat/gmod/visual_player.cpp index fb65458..fb65458 100644 --- a/gmod/visual_player.cpp +++ b/cheat/gmod/visual_player.cpp diff --git a/gmod/visual_world.cpp b/cheat/gmod/visual_world.cpp index 1f504bd..1f504bd 100644 --- a/gmod/visual_world.cpp +++ b/cheat/gmod/visual_world.cpp diff --git a/gmod/vmt.hpp b/cheat/gmod/vmt.hpp index 0665e17..0665e17 100644 --- a/gmod/vmt.hpp +++ b/cheat/gmod/vmt.hpp diff --git a/gmod/window_procedure.cpp b/cheat/gmod/window_procedure.cpp index f47027b..f47027b 100644 --- a/gmod/window_procedure.cpp +++ b/cheat/gmod/window_procedure.cpp diff --git a/gmod/x86.hpp b/cheat/gmod/x86.hpp index e96c469..e96c469 100644 --- a/gmod/x86.hpp +++ b/cheat/gmod/x86.hpp diff --git a/internal_rewrite/CHLClient.hpp b/cheat/internal_rewrite/CHLClient.hpp index 94d209f..94d209f 100644 --- a/internal_rewrite/CHLClient.hpp +++ b/cheat/internal_rewrite/CHLClient.hpp diff --git a/internal_rewrite/CInput.hpp b/cheat/internal_rewrite/CInput.hpp index 84802d3..84802d3 100644 --- a/internal_rewrite/CInput.hpp +++ b/cheat/internal_rewrite/CInput.hpp diff --git a/internal_rewrite/CUtlVector.hpp b/cheat/internal_rewrite/CUtlVector.hpp index 6e43505..6e43505 100644 --- a/internal_rewrite/CUtlVector.hpp +++ b/cheat/internal_rewrite/CUtlVector.hpp diff --git a/internal_rewrite/ClientClass.hpp b/cheat/internal_rewrite/ClientClass.hpp index fc1f140..fc1f140 100644 --- a/internal_rewrite/ClientClass.hpp +++ b/cheat/internal_rewrite/ClientClass.hpp diff --git a/internal_rewrite/GlobalVars_t.hpp b/cheat/internal_rewrite/GlobalVars_t.hpp index 4cfcfb4..4cfcfb4 100644 --- a/internal_rewrite/GlobalVars_t.hpp +++ b/cheat/internal_rewrite/GlobalVars_t.hpp diff --git a/internal_rewrite/IAppSystem.hpp b/cheat/internal_rewrite/IAppSystem.hpp index 61a6c8e..61a6c8e 100644 --- a/internal_rewrite/IAppSystem.hpp +++ b/cheat/internal_rewrite/IAppSystem.hpp diff --git a/internal_rewrite/IClientEntityList.hpp b/cheat/internal_rewrite/IClientEntityList.hpp index d6a65e4..d6a65e4 100644 --- a/internal_rewrite/IClientEntityList.hpp +++ b/cheat/internal_rewrite/IClientEntityList.hpp diff --git a/internal_rewrite/IClientMode.hpp b/cheat/internal_rewrite/IClientMode.hpp index dc7d15d..dc7d15d 100644 --- a/internal_rewrite/IClientMode.hpp +++ b/cheat/internal_rewrite/IClientMode.hpp diff --git a/internal_rewrite/ICvar.hpp b/cheat/internal_rewrite/ICvar.hpp index 9e8040f..9e8040f 100644 --- a/internal_rewrite/ICvar.hpp +++ b/cheat/internal_rewrite/ICvar.hpp diff --git a/internal_rewrite/IEngineTrace.hpp b/cheat/internal_rewrite/IEngineTrace.hpp index 681d64b..681d64b 100644 --- a/internal_rewrite/IEngineTrace.hpp +++ b/cheat/internal_rewrite/IEngineTrace.hpp diff --git a/internal_rewrite/IGameEventManager.hpp b/cheat/internal_rewrite/IGameEventManager.hpp index ec37320..ec37320 100644 --- a/internal_rewrite/IGameEventManager.hpp +++ b/cheat/internal_rewrite/IGameEventManager.hpp diff --git a/internal_rewrite/IMaterialSystem.hpp b/cheat/internal_rewrite/IMaterialSystem.hpp index 7fc1bc1..7fc1bc1 100644 --- a/internal_rewrite/IMaterialSystem.hpp +++ b/cheat/internal_rewrite/IMaterialSystem.hpp diff --git a/internal_rewrite/IMemAlloc.hpp b/cheat/internal_rewrite/IMemAlloc.hpp index 580104c..580104c 100644 --- a/internal_rewrite/IMemAlloc.hpp +++ b/cheat/internal_rewrite/IMemAlloc.hpp diff --git a/internal_rewrite/IPanel.hpp b/cheat/internal_rewrite/IPanel.hpp index bbae705..bbae705 100644 --- a/internal_rewrite/IPanel.hpp +++ b/cheat/internal_rewrite/IPanel.hpp diff --git a/internal_rewrite/IPhysicsSurfaceProps.hpp b/cheat/internal_rewrite/IPhysicsSurfaceProps.hpp index 8e4f10f..8e4f10f 100644 --- a/internal_rewrite/IPhysicsSurfaceProps.hpp +++ b/cheat/internal_rewrite/IPhysicsSurfaceProps.hpp diff --git a/internal_rewrite/IPrediction.hpp b/cheat/internal_rewrite/IPrediction.hpp index 35fb6b2..35fb6b2 100644 --- a/internal_rewrite/IPrediction.hpp +++ b/cheat/internal_rewrite/IPrediction.hpp diff --git a/internal_rewrite/ISteamClient.hpp b/cheat/internal_rewrite/ISteamClient.hpp index 190607f..190607f 100644 --- a/internal_rewrite/ISteamClient.hpp +++ b/cheat/internal_rewrite/ISteamClient.hpp diff --git a/internal_rewrite/ISurface.hpp b/cheat/internal_rewrite/ISurface.hpp index 2845eaa..2845eaa 100644 --- a/internal_rewrite/ISurface.hpp +++ b/cheat/internal_rewrite/ISurface.hpp diff --git a/internal_rewrite/IVEngineClient.hpp b/cheat/internal_rewrite/IVEngineClient.hpp index fb39e08..fb39e08 100644 --- a/internal_rewrite/IVEngineClient.hpp +++ b/cheat/internal_rewrite/IVEngineClient.hpp diff --git a/internal_rewrite/IVModelInfoClient.hpp b/cheat/internal_rewrite/IVModelInfoClient.hpp index 3cc418b..3cc418b 100644 --- a/internal_rewrite/IVModelInfoClient.hpp +++ b/cheat/internal_rewrite/IVModelInfoClient.hpp diff --git a/internal_rewrite/IVRenderView.hpp b/cheat/internal_rewrite/IVRenderView.hpp index a8396f5..a8396f5 100644 --- a/internal_rewrite/IVRenderView.hpp +++ b/cheat/internal_rewrite/IVRenderView.hpp diff --git a/internal_rewrite/KeyValues.cpp b/cheat/internal_rewrite/KeyValues.cpp index 300b6f1..300b6f1 100644 --- a/internal_rewrite/KeyValues.cpp +++ b/cheat/internal_rewrite/KeyValues.cpp diff --git a/internal_rewrite/KeyValues.hpp b/cheat/internal_rewrite/KeyValues.hpp index 94eb6ca..94eb6ca 100644 --- a/internal_rewrite/KeyValues.hpp +++ b/cheat/internal_rewrite/KeyValues.hpp diff --git a/internal_rewrite/Source.cpp b/cheat/internal_rewrite/Source.cpp index 0b63051..0b63051 100644 --- a/internal_rewrite/Source.cpp +++ b/cheat/internal_rewrite/Source.cpp diff --git a/internal_rewrite/Valve/checksum_crc.cpp b/cheat/internal_rewrite/Valve/checksum_crc.cpp index bc7b433..bc7b433 100644 --- a/internal_rewrite/Valve/checksum_crc.cpp +++ b/cheat/internal_rewrite/Valve/checksum_crc.cpp diff --git a/internal_rewrite/Valve/checksum_crc.h b/cheat/internal_rewrite/Valve/checksum_crc.h index 356de67..356de67 100644 --- a/internal_rewrite/Valve/checksum_crc.h +++ b/cheat/internal_rewrite/Valve/checksum_crc.h diff --git a/internal_rewrite/Valve/dt_common.h b/cheat/internal_rewrite/Valve/dt_common.h index ff0f7b7..ff0f7b7 100644 --- a/internal_rewrite/Valve/dt_common.h +++ b/cheat/internal_rewrite/Valve/dt_common.h diff --git a/internal_rewrite/Valve/dt_recv.h b/cheat/internal_rewrite/Valve/dt_recv.h index 6e73bdb..6e73bdb 100644 --- a/internal_rewrite/Valve/dt_recv.h +++ b/cheat/internal_rewrite/Valve/dt_recv.h diff --git a/internal_rewrite/autowall.cpp b/cheat/internal_rewrite/autowall.cpp index 603f94e..603f94e 100644 --- a/internal_rewrite/autowall.cpp +++ b/cheat/internal_rewrite/autowall.cpp diff --git a/internal_rewrite/autowall.hpp b/cheat/internal_rewrite/autowall.hpp index 5e433e0..5e433e0 100644 --- a/internal_rewrite/autowall.hpp +++ b/cheat/internal_rewrite/autowall.hpp diff --git a/internal_rewrite/base_cheat.cpp b/cheat/internal_rewrite/base_cheat.cpp index d21888d..d21888d 100644 --- a/internal_rewrite/base_cheat.cpp +++ b/cheat/internal_rewrite/base_cheat.cpp diff --git a/internal_rewrite/base_cheat.hpp b/cheat/internal_rewrite/base_cheat.hpp index 07d3588..07d3588 100644 --- a/internal_rewrite/base_cheat.hpp +++ b/cheat/internal_rewrite/base_cheat.hpp diff --git a/internal_rewrite/begin_lock.cpp b/cheat/internal_rewrite/begin_lock.cpp index 5312eec..5312eec 100644 --- a/internal_rewrite/begin_lock.cpp +++ b/cheat/internal_rewrite/begin_lock.cpp diff --git a/internal_rewrite/bf_write.hpp b/cheat/internal_rewrite/bf_write.hpp index 7d759b2..7d759b2 100644 --- a/internal_rewrite/bf_write.hpp +++ b/cheat/internal_rewrite/bf_write.hpp diff --git a/internal_rewrite/c_base_player.cpp b/cheat/internal_rewrite/c_base_player.cpp index 11882ea..11882ea 100644 --- a/internal_rewrite/c_base_player.cpp +++ b/cheat/internal_rewrite/c_base_player.cpp diff --git a/internal_rewrite/c_base_player.hpp b/cheat/internal_rewrite/c_base_player.hpp index 30bafde..30bafde 100644 --- a/internal_rewrite/c_base_player.hpp +++ b/cheat/internal_rewrite/c_base_player.hpp diff --git a/internal_rewrite/c_base_weapon.cpp b/cheat/internal_rewrite/c_base_weapon.cpp index ec6d420..ec6d420 100644 --- a/internal_rewrite/c_base_weapon.cpp +++ b/cheat/internal_rewrite/c_base_weapon.cpp diff --git a/internal_rewrite/c_base_weapon.hpp b/cheat/internal_rewrite/c_base_weapon.hpp index f56770e..f56770e 100644 --- a/internal_rewrite/c_base_weapon.hpp +++ b/cheat/internal_rewrite/c_base_weapon.hpp diff --git a/internal_rewrite/chams.cpp b/cheat/internal_rewrite/chams.cpp index 1d46bb2..1d46bb2 100644 --- a/internal_rewrite/chams.cpp +++ b/cheat/internal_rewrite/chams.cpp diff --git a/internal_rewrite/chams.hpp b/cheat/internal_rewrite/chams.hpp index d7eb023..d7eb023 100644 --- a/internal_rewrite/chams.hpp +++ b/cheat/internal_rewrite/chams.hpp diff --git a/internal_rewrite/color.hpp b/cheat/internal_rewrite/color.hpp index 5ffd2a0..5ffd2a0 100644 --- a/internal_rewrite/color.hpp +++ b/cheat/internal_rewrite/color.hpp diff --git a/internal_rewrite/con_alias.hpp b/cheat/internal_rewrite/con_alias.hpp index 62812f1..62812f1 100644 --- a/internal_rewrite/con_alias.hpp +++ b/cheat/internal_rewrite/con_alias.hpp diff --git a/internal_rewrite/con_fn.hpp b/cheat/internal_rewrite/con_fn.hpp index c71cc08..c71cc08 100644 --- a/internal_rewrite/con_fn.hpp +++ b/cheat/internal_rewrite/con_fn.hpp diff --git a/internal_rewrite/console.cpp b/cheat/internal_rewrite/console.cpp index d922af3..d922af3 100644 --- a/internal_rewrite/console.cpp +++ b/cheat/internal_rewrite/console.cpp diff --git a/internal_rewrite/console.hpp b/cheat/internal_rewrite/console.hpp index 5226607..5226607 100644 --- a/internal_rewrite/console.hpp +++ b/cheat/internal_rewrite/console.hpp diff --git a/internal_rewrite/context.cpp b/cheat/internal_rewrite/context.cpp index 26af64c..26af64c 100644 --- a/internal_rewrite/context.cpp +++ b/cheat/internal_rewrite/context.cpp diff --git a/internal_rewrite/context.hpp b/cheat/internal_rewrite/context.hpp index 27f1a42..27f1a42 100644 --- a/internal_rewrite/context.hpp +++ b/cheat/internal_rewrite/context.hpp diff --git a/internal_rewrite/create_move.cpp b/cheat/internal_rewrite/create_move.cpp index a59930e..a59930e 100644 --- a/internal_rewrite/create_move.cpp +++ b/cheat/internal_rewrite/create_move.cpp diff --git a/internal_rewrite/csm_shadows.cpp b/cheat/internal_rewrite/csm_shadows.cpp index b0aa5ed..b0aa5ed 100644 --- a/internal_rewrite/csm_shadows.cpp +++ b/cheat/internal_rewrite/csm_shadows.cpp diff --git a/internal_rewrite/d3d.cpp b/cheat/internal_rewrite/d3d.cpp index e807776..e807776 100644 --- a/internal_rewrite/d3d.cpp +++ b/cheat/internal_rewrite/d3d.cpp diff --git a/internal_rewrite/d3d.hpp b/cheat/internal_rewrite/d3d.hpp index 36babe2..36babe2 100644 --- a/internal_rewrite/d3d.hpp +++ b/cheat/internal_rewrite/d3d.hpp diff --git a/internal_rewrite/d3d_sprite.cpp b/cheat/internal_rewrite/d3d_sprite.cpp index 8c26c37..8c26c37 100644 --- a/internal_rewrite/d3d_sprite.cpp +++ b/cheat/internal_rewrite/d3d_sprite.cpp diff --git a/internal_rewrite/d3d_sprite.hpp b/cheat/internal_rewrite/d3d_sprite.hpp index 3cf46a6..3cf46a6 100644 --- a/internal_rewrite/d3d_sprite.hpp +++ b/cheat/internal_rewrite/d3d_sprite.hpp diff --git a/internal_rewrite/debug_show_spread.cpp b/cheat/internal_rewrite/debug_show_spread.cpp index 54da769..54da769 100644 --- a/internal_rewrite/debug_show_spread.cpp +++ b/cheat/internal_rewrite/debug_show_spread.cpp diff --git a/internal_rewrite/detours.cpp b/cheat/internal_rewrite/detours.cpp index a12520c..a12520c 100644 --- a/internal_rewrite/detours.cpp +++ b/cheat/internal_rewrite/detours.cpp diff --git a/internal_rewrite/detours.h b/cheat/internal_rewrite/detours.h index d4998b5..d4998b5 100644 --- a/internal_rewrite/detours.h +++ b/cheat/internal_rewrite/detours.h diff --git a/internal_rewrite/directx.cpp b/cheat/internal_rewrite/directx.cpp index fa40fb3..fa40fb3 100644 --- a/internal_rewrite/directx.cpp +++ b/cheat/internal_rewrite/directx.cpp diff --git a/internal_rewrite/do_post_screen_space_effects.cpp b/cheat/internal_rewrite/do_post_screen_space_effects.cpp index 1cdd00c..1cdd00c 100644 --- a/internal_rewrite/do_post_screen_space_effects.cpp +++ b/cheat/internal_rewrite/do_post_screen_space_effects.cpp diff --git a/internal_rewrite/draw_model_execute.cpp b/cheat/internal_rewrite/draw_model_execute.cpp index 49825f6..49825f6 100644 --- a/internal_rewrite/draw_model_execute.cpp +++ b/cheat/internal_rewrite/draw_model_execute.cpp diff --git a/internal_rewrite/draw_small_entities.cpp b/cheat/internal_rewrite/draw_small_entities.cpp index 2f88c74..2f88c74 100644 --- a/internal_rewrite/draw_small_entities.cpp +++ b/cheat/internal_rewrite/draw_small_entities.cpp diff --git a/internal_rewrite/emit_sound.cpp b/cheat/internal_rewrite/emit_sound.cpp index 13ae28a..13ae28a 100644 --- a/internal_rewrite/emit_sound.cpp +++ b/cheat/internal_rewrite/emit_sound.cpp diff --git a/internal_rewrite/end_lock.cpp b/cheat/internal_rewrite/end_lock.cpp index ee81d7a..ee81d7a 100644 --- a/internal_rewrite/end_lock.cpp +++ b/cheat/internal_rewrite/end_lock.cpp diff --git a/internal_rewrite/extra.cpp b/cheat/internal_rewrite/extra.cpp index 2408e7f..2408e7f 100644 --- a/internal_rewrite/extra.cpp +++ b/cheat/internal_rewrite/extra.cpp diff --git a/internal_rewrite/extra.hpp b/cheat/internal_rewrite/extra.hpp index 7f0ac98..7f0ac98 100644 --- a/internal_rewrite/extra.hpp +++ b/cheat/internal_rewrite/extra.hpp diff --git a/internal_rewrite/factory.cpp b/cheat/internal_rewrite/factory.cpp index 0e7bc03..0e7bc03 100644 --- a/internal_rewrite/factory.cpp +++ b/cheat/internal_rewrite/factory.cpp diff --git a/internal_rewrite/factory.hpp b/cheat/internal_rewrite/factory.hpp index d197951..d197951 100644 --- a/internal_rewrite/factory.hpp +++ b/cheat/internal_rewrite/factory.hpp diff --git a/internal_rewrite/fire_event_clientside.cpp b/cheat/internal_rewrite/fire_event_clientside.cpp index 10233a2..10233a2 100644 --- a/internal_rewrite/fire_event_clientside.cpp +++ b/cheat/internal_rewrite/fire_event_clientside.cpp diff --git a/internal_rewrite/fnv.hpp b/cheat/internal_rewrite/fnv.hpp index 08a478b..08a478b 100644 --- a/internal_rewrite/fnv.hpp +++ b/cheat/internal_rewrite/fnv.hpp diff --git a/internal_rewrite/frame_stage_notify.cpp b/cheat/internal_rewrite/frame_stage_notify.cpp index 91cd7aa..91cd7aa 100644 --- a/internal_rewrite/frame_stage_notify.cpp +++ b/cheat/internal_rewrite/frame_stage_notify.cpp diff --git a/internal_rewrite/get_player_info.cpp b/cheat/internal_rewrite/get_player_info.cpp index 0cd121a..0cd121a 100644 --- a/internal_rewrite/get_player_info.cpp +++ b/cheat/internal_rewrite/get_player_info.cpp diff --git a/internal_rewrite/get_screen_size.cpp b/cheat/internal_rewrite/get_screen_size.cpp index be7e245..be7e245 100644 --- a/internal_rewrite/get_screen_size.cpp +++ b/cheat/internal_rewrite/get_screen_size.cpp diff --git a/internal_rewrite/get_viewmodel_fov.cpp b/cheat/internal_rewrite/get_viewmodel_fov.cpp index be48dd3..be48dd3 100644 --- a/internal_rewrite/get_viewmodel_fov.cpp +++ b/cheat/internal_rewrite/get_viewmodel_fov.cpp diff --git a/internal_rewrite/hde32.cpp b/cheat/internal_rewrite/hde32.cpp index 8569287..8569287 100644 --- a/internal_rewrite/hde32.cpp +++ b/cheat/internal_rewrite/hde32.cpp diff --git a/internal_rewrite/hde32.h b/cheat/internal_rewrite/hde32.h index dd2ef6d..dd2ef6d 100644 --- a/internal_rewrite/hde32.h +++ b/cheat/internal_rewrite/hde32.h diff --git a/internal_rewrite/hooks.cpp b/cheat/internal_rewrite/hooks.cpp index e786a2b..e786a2b 100644 --- a/internal_rewrite/hooks.cpp +++ b/cheat/internal_rewrite/hooks.cpp diff --git a/internal_rewrite/hooks.hpp b/cheat/internal_rewrite/hooks.hpp index ab28545..ab28545 100644 --- a/internal_rewrite/hooks.hpp +++ b/cheat/internal_rewrite/hooks.hpp diff --git a/internal_rewrite/icons.hpp b/cheat/internal_rewrite/icons.hpp index 840a413..840a413 100644 --- a/internal_rewrite/icons.hpp +++ b/cheat/internal_rewrite/icons.hpp diff --git a/internal_rewrite/icons/config.hpp b/cheat/internal_rewrite/icons/config.hpp index d488e6a..d488e6a 100644 --- a/internal_rewrite/icons/config.hpp +++ b/cheat/internal_rewrite/icons/config.hpp diff --git a/internal_rewrite/icons/legit.hpp b/cheat/internal_rewrite/icons/legit.hpp index 13a06f4..13a06f4 100644 --- a/internal_rewrite/icons/legit.hpp +++ b/cheat/internal_rewrite/icons/legit.hpp diff --git a/internal_rewrite/icons/misc.hpp b/cheat/internal_rewrite/icons/misc.hpp index a955fe0..a955fe0 100644 --- a/internal_rewrite/icons/misc.hpp +++ b/cheat/internal_rewrite/icons/misc.hpp diff --git a/internal_rewrite/icons/rage.hpp b/cheat/internal_rewrite/icons/rage.hpp index 0bc349b..0bc349b 100644 --- a/internal_rewrite/icons/rage.hpp +++ b/cheat/internal_rewrite/icons/rage.hpp diff --git a/internal_rewrite/icons/visuals.hpp b/cheat/internal_rewrite/icons/visuals.hpp index 3bd8c7b..3bd8c7b 100644 --- a/internal_rewrite/icons/visuals.hpp +++ b/cheat/internal_rewrite/icons/visuals.hpp diff --git a/internal_rewrite/identity.cpp b/cheat/internal_rewrite/identity.cpp index b58e75b..b58e75b 100644 --- a/internal_rewrite/identity.cpp +++ b/cheat/internal_rewrite/identity.cpp diff --git a/internal_rewrite/identity.hpp b/cheat/internal_rewrite/identity.hpp index aecba35..aecba35 100644 --- a/internal_rewrite/identity.hpp +++ b/cheat/internal_rewrite/identity.hpp diff --git a/internal_rewrite/iface_dllmain_impl.hpp b/cheat/internal_rewrite/iface_dllmain_impl.hpp index f8209ec..f8209ec 100644 --- a/internal_rewrite/iface_dllmain_impl.hpp +++ b/cheat/internal_rewrite/iface_dllmain_impl.hpp diff --git a/internal_rewrite/in_prediction.cpp b/cheat/internal_rewrite/in_prediction.cpp index 3123d06..3123d06 100644 --- a/internal_rewrite/in_prediction.cpp +++ b/cheat/internal_rewrite/in_prediction.cpp diff --git a/internal_rewrite/input_system.cpp b/cheat/internal_rewrite/input_system.cpp index 6040cca..6040cca 100644 --- a/internal_rewrite/input_system.cpp +++ b/cheat/internal_rewrite/input_system.cpp diff --git a/internal_rewrite/input_system.hpp b/cheat/internal_rewrite/input_system.hpp index 338c493..338c493 100644 --- a/internal_rewrite/input_system.hpp +++ b/cheat/internal_rewrite/input_system.hpp diff --git a/internal_rewrite/interface.cpp b/cheat/internal_rewrite/interface.cpp index e424c0f..e424c0f 100644 --- a/internal_rewrite/interface.cpp +++ b/cheat/internal_rewrite/interface.cpp diff --git a/internal_rewrite/interface.hpp b/cheat/internal_rewrite/interface.hpp index 332971a..332971a 100644 --- a/internal_rewrite/interface.hpp +++ b/cheat/internal_rewrite/interface.hpp diff --git a/internal_rewrite/internal_rewrite.vcxproj b/cheat/internal_rewrite/internal_rewrite.vcxproj index ec68f0f..a531095 100644 --- a/internal_rewrite/internal_rewrite.vcxproj +++ b/cheat/internal_rewrite/internal_rewrite.vcxproj @@ -47,7 +47,7 @@ <ProjectGuid>{140DEC51-B0E7-4289-BB6F-79686422318E}</ProjectGuid>
<RootNamespace>internal_rewrite</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
- <ProjectName>moneybot</ProjectName>
+ <ProjectName>csgo</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
diff --git a/internal_rewrite/internal_rewrite.vcxproj.filters b/cheat/internal_rewrite/internal_rewrite.vcxproj.filters index a871845..a871845 100644 --- a/internal_rewrite/internal_rewrite.vcxproj.filters +++ b/cheat/internal_rewrite/internal_rewrite.vcxproj.filters diff --git a/internal_rewrite/is_connected.cpp b/cheat/internal_rewrite/is_connected.cpp index 159d036..159d036 100644 --- a/internal_rewrite/is_connected.cpp +++ b/cheat/internal_rewrite/is_connected.cpp diff --git a/internal_rewrite/lag_mgr.cpp b/cheat/internal_rewrite/lag_mgr.cpp index 0233e4a..0233e4a 100644 --- a/internal_rewrite/lag_mgr.cpp +++ b/cheat/internal_rewrite/lag_mgr.cpp diff --git a/internal_rewrite/lag_mgr.hpp b/cheat/internal_rewrite/lag_mgr.hpp index d495210..d495210 100644 --- a/internal_rewrite/lag_mgr.hpp +++ b/cheat/internal_rewrite/lag_mgr.hpp diff --git a/internal_rewrite/legitbot.cpp b/cheat/internal_rewrite/legitbot.cpp index c3c0010..c3c0010 100644 --- a/internal_rewrite/legitbot.cpp +++ b/cheat/internal_rewrite/legitbot.cpp diff --git a/internal_rewrite/legitbot.hpp b/cheat/internal_rewrite/legitbot.hpp index f543fd4..f543fd4 100644 --- a/internal_rewrite/legitbot.hpp +++ b/cheat/internal_rewrite/legitbot.hpp diff --git a/internal_rewrite/legitbot_lagcomp.cpp b/cheat/internal_rewrite/legitbot_lagcomp.cpp index c80bcbd..c80bcbd 100644 --- a/internal_rewrite/legitbot_lagcomp.cpp +++ b/cheat/internal_rewrite/legitbot_lagcomp.cpp diff --git a/internal_rewrite/level_init_pre_entity.cpp b/cheat/internal_rewrite/level_init_pre_entity.cpp index c4d8c38..c4d8c38 100644 --- a/internal_rewrite/level_init_pre_entity.cpp +++ b/cheat/internal_rewrite/level_init_pre_entity.cpp diff --git a/internal_rewrite/listener.cpp b/cheat/internal_rewrite/listener.cpp index eb5caf4..eb5caf4 100644 --- a/internal_rewrite/listener.cpp +++ b/cheat/internal_rewrite/listener.cpp diff --git a/internal_rewrite/listener.hpp b/cheat/internal_rewrite/listener.hpp index 5e18879..5e18879 100644 --- a/internal_rewrite/listener.hpp +++ b/cheat/internal_rewrite/listener.hpp diff --git a/internal_rewrite/lock_cursor.cpp b/cheat/internal_rewrite/lock_cursor.cpp index 6edb52a..6edb52a 100644 --- a/internal_rewrite/lock_cursor.cpp +++ b/cheat/internal_rewrite/lock_cursor.cpp diff --git a/internal_rewrite/match_framework.h b/cheat/internal_rewrite/match_framework.h index f63efb1..f63efb1 100644 --- a/internal_rewrite/match_framework.h +++ b/cheat/internal_rewrite/match_framework.h diff --git a/internal_rewrite/materialsystem_config.cpp b/cheat/internal_rewrite/materialsystem_config.cpp index 102d09b..102d09b 100644 --- a/internal_rewrite/materialsystem_config.cpp +++ b/cheat/internal_rewrite/materialsystem_config.cpp diff --git a/internal_rewrite/math.cpp b/cheat/internal_rewrite/math.cpp index 79389a9..79389a9 100644 --- a/internal_rewrite/math.cpp +++ b/cheat/internal_rewrite/math.cpp diff --git a/internal_rewrite/math.hpp b/cheat/internal_rewrite/math.hpp index b965600..b965600 100644 --- a/internal_rewrite/math.hpp +++ b/cheat/internal_rewrite/math.hpp diff --git a/internal_rewrite/mem.hpp b/cheat/internal_rewrite/mem.hpp index 37db3ad..37db3ad 100644 --- a/internal_rewrite/mem.hpp +++ b/cheat/internal_rewrite/mem.hpp diff --git a/internal_rewrite/modules.hpp b/cheat/internal_rewrite/modules.hpp index 6e78bf3..6e78bf3 100644 --- a/internal_rewrite/modules.hpp +++ b/cheat/internal_rewrite/modules.hpp diff --git a/internal_rewrite/movement.cpp b/cheat/internal_rewrite/movement.cpp index 3793e1b..3793e1b 100644 --- a/internal_rewrite/movement.cpp +++ b/cheat/internal_rewrite/movement.cpp diff --git a/internal_rewrite/movement.hpp b/cheat/internal_rewrite/movement.hpp index 0c0b1a6..0c0b1a6 100644 --- a/internal_rewrite/movement.hpp +++ b/cheat/internal_rewrite/movement.hpp diff --git a/internal_rewrite/movement_recorder.cpp b/cheat/internal_rewrite/movement_recorder.cpp index 6e9245c..6e9245c 100644 --- a/internal_rewrite/movement_recorder.cpp +++ b/cheat/internal_rewrite/movement_recorder.cpp diff --git a/internal_rewrite/movement_recorder.hpp b/cheat/internal_rewrite/movement_recorder.hpp index 03bcf8c..03bcf8c 100644 --- a/internal_rewrite/movement_recorder.hpp +++ b/cheat/internal_rewrite/movement_recorder.hpp diff --git a/internal_rewrite/net_showfragments.cpp b/cheat/internal_rewrite/net_showfragments.cpp index 93e5db0..93e5db0 100644 --- a/internal_rewrite/net_showfragments.cpp +++ b/cheat/internal_rewrite/net_showfragments.cpp diff --git a/internal_rewrite/netvar_proxy.hpp b/cheat/internal_rewrite/netvar_proxy.hpp index 113f212..113f212 100644 --- a/internal_rewrite/netvar_proxy.hpp +++ b/cheat/internal_rewrite/netvar_proxy.hpp diff --git a/internal_rewrite/netvars.cpp b/cheat/internal_rewrite/netvars.cpp index eb2d8fd..eb2d8fd 100644 --- a/internal_rewrite/netvars.cpp +++ b/cheat/internal_rewrite/netvars.cpp diff --git a/internal_rewrite/netvars.hpp b/cheat/internal_rewrite/netvars.hpp index ca50ed9..ca50ed9 100644 --- a/internal_rewrite/netvars.hpp +++ b/cheat/internal_rewrite/netvars.hpp diff --git a/internal_rewrite/on_screen_size_changed.cpp b/cheat/internal_rewrite/on_screen_size_changed.cpp index 731835e..731835e 100644 --- a/internal_rewrite/on_screen_size_changed.cpp +++ b/cheat/internal_rewrite/on_screen_size_changed.cpp diff --git a/internal_rewrite/override_mouse_input.cpp b/cheat/internal_rewrite/override_mouse_input.cpp index 84e3f57..84e3f57 100644 --- a/internal_rewrite/override_mouse_input.cpp +++ b/cheat/internal_rewrite/override_mouse_input.cpp diff --git a/internal_rewrite/override_view.cpp b/cheat/internal_rewrite/override_view.cpp index 579f83f..579f83f 100644 --- a/internal_rewrite/override_view.cpp +++ b/cheat/internal_rewrite/override_view.cpp diff --git a/internal_rewrite/packet_start.cpp b/cheat/internal_rewrite/packet_start.cpp index a5c9db4..a5c9db4 100644 --- a/internal_rewrite/packet_start.cpp +++ b/cheat/internal_rewrite/packet_start.cpp diff --git a/internal_rewrite/paint_traverse.cpp b/cheat/internal_rewrite/paint_traverse.cpp index 8376cdd..8376cdd 100644 --- a/internal_rewrite/paint_traverse.cpp +++ b/cheat/internal_rewrite/paint_traverse.cpp diff --git a/internal_rewrite/pattern.hpp b/cheat/internal_rewrite/pattern.hpp index 8b4e17e..8b4e17e 100644 --- a/internal_rewrite/pattern.hpp +++ b/cheat/internal_rewrite/pattern.hpp diff --git a/internal_rewrite/play_sound.cpp b/cheat/internal_rewrite/play_sound.cpp index 542be24..542be24 100644 --- a/internal_rewrite/play_sound.cpp +++ b/cheat/internal_rewrite/play_sound.cpp diff --git a/internal_rewrite/player_manager.cpp b/cheat/internal_rewrite/player_manager.cpp index f76b363..f76b363 100644 --- a/internal_rewrite/player_manager.cpp +++ b/cheat/internal_rewrite/player_manager.cpp diff --git a/internal_rewrite/player_manager.hpp b/cheat/internal_rewrite/player_manager.hpp index 440ddf3..440ddf3 100644 --- a/internal_rewrite/player_manager.hpp +++ b/cheat/internal_rewrite/player_manager.hpp diff --git a/internal_rewrite/prediction.cpp b/cheat/internal_rewrite/prediction.cpp index 2f6f606..2f6f606 100644 --- a/internal_rewrite/prediction.cpp +++ b/cheat/internal_rewrite/prediction.cpp diff --git a/internal_rewrite/prediction.hpp b/cheat/internal_rewrite/prediction.hpp index d6adb44..d6adb44 100644 --- a/internal_rewrite/prediction.hpp +++ b/cheat/internal_rewrite/prediction.hpp diff --git a/internal_rewrite/proxies.cpp b/cheat/internal_rewrite/proxies.cpp index 287970b..287970b 100644 --- a/internal_rewrite/proxies.cpp +++ b/cheat/internal_rewrite/proxies.cpp diff --git a/internal_rewrite/ragebot.cpp b/cheat/internal_rewrite/ragebot.cpp index 4a85078..4a85078 100644 --- a/internal_rewrite/ragebot.cpp +++ b/cheat/internal_rewrite/ragebot.cpp diff --git a/internal_rewrite/ragebot.hpp b/cheat/internal_rewrite/ragebot.hpp index 7bc6c24..7bc6c24 100644 --- a/internal_rewrite/ragebot.hpp +++ b/cheat/internal_rewrite/ragebot.hpp diff --git a/internal_rewrite/ragebot_antiaim.cpp b/cheat/internal_rewrite/ragebot_antiaim.cpp index beff445..beff445 100644 --- a/internal_rewrite/ragebot_antiaim.cpp +++ b/cheat/internal_rewrite/ragebot_antiaim.cpp diff --git a/internal_rewrite/ragebot_lagcomp.cpp b/cheat/internal_rewrite/ragebot_lagcomp.cpp index 5014143..5014143 100644 --- a/internal_rewrite/ragebot_lagcomp.cpp +++ b/cheat/internal_rewrite/ragebot_lagcomp.cpp diff --git a/internal_rewrite/ragebot_resolver.cpp b/cheat/internal_rewrite/ragebot_resolver.cpp index 1b29305..1b29305 100644 --- a/internal_rewrite/ragebot_resolver.cpp +++ b/cheat/internal_rewrite/ragebot_resolver.cpp diff --git a/internal_rewrite/renderer.cpp b/cheat/internal_rewrite/renderer.cpp index 3d22805..3d22805 100644 --- a/internal_rewrite/renderer.cpp +++ b/cheat/internal_rewrite/renderer.cpp diff --git a/internal_rewrite/renderer.hpp b/cheat/internal_rewrite/renderer.hpp index 59e4dd1..59e4dd1 100644 --- a/internal_rewrite/renderer.hpp +++ b/cheat/internal_rewrite/renderer.hpp diff --git a/internal_rewrite/run_command.cpp b/cheat/internal_rewrite/run_command.cpp index d8df083..d8df083 100644 --- a/internal_rewrite/run_command.cpp +++ b/cheat/internal_rewrite/run_command.cpp diff --git a/internal_rewrite/scene_end.cpp b/cheat/internal_rewrite/scene_end.cpp index 997ed21..997ed21 100644 --- a/internal_rewrite/scene_end.cpp +++ b/cheat/internal_rewrite/scene_end.cpp diff --git a/internal_rewrite/sdk.hpp b/cheat/internal_rewrite/sdk.hpp index 91f9bba..91f9bba 100644 --- a/internal_rewrite/sdk.hpp +++ b/cheat/internal_rewrite/sdk.hpp diff --git a/internal_rewrite/send_datagram.cpp b/cheat/internal_rewrite/send_datagram.cpp index 7a86842..7a86842 100644 --- a/internal_rewrite/send_datagram.cpp +++ b/cheat/internal_rewrite/send_datagram.cpp diff --git a/internal_rewrite/settings.hpp b/cheat/internal_rewrite/settings.hpp index 6880bff..6880bff 100644 --- a/internal_rewrite/settings.hpp +++ b/cheat/internal_rewrite/settings.hpp diff --git a/internal_rewrite/shut_down.cpp b/cheat/internal_rewrite/shut_down.cpp index c3d2a95..c3d2a95 100644 --- a/internal_rewrite/shut_down.cpp +++ b/cheat/internal_rewrite/shut_down.cpp diff --git a/internal_rewrite/simple_settings.cpp b/cheat/internal_rewrite/simple_settings.cpp index b6b3281..b6b3281 100644 --- a/internal_rewrite/simple_settings.cpp +++ b/cheat/internal_rewrite/simple_settings.cpp diff --git a/internal_rewrite/simple_settings.hpp b/cheat/internal_rewrite/simple_settings.hpp index e3187ba..e3187ba 100644 --- a/internal_rewrite/simple_settings.hpp +++ b/cheat/internal_rewrite/simple_settings.hpp diff --git a/internal_rewrite/simulate.cpp b/cheat/internal_rewrite/simulate.cpp index 28ec687..28ec687 100644 --- a/internal_rewrite/simulate.cpp +++ b/cheat/internal_rewrite/simulate.cpp diff --git a/internal_rewrite/skins.cpp b/cheat/internal_rewrite/skins.cpp index 4abef06..4abef06 100644 --- a/internal_rewrite/skins.cpp +++ b/cheat/internal_rewrite/skins.cpp diff --git a/internal_rewrite/skins.hpp b/cheat/internal_rewrite/skins.hpp index f60deef..f60deef 100644 --- a/internal_rewrite/skins.hpp +++ b/cheat/internal_rewrite/skins.hpp diff --git a/internal_rewrite/strings.hpp b/cheat/internal_rewrite/strings.hpp index f34c082..f34c082 100644 --- a/internal_rewrite/strings.hpp +++ b/cheat/internal_rewrite/strings.hpp diff --git a/internal_rewrite/suppress_lists.cpp b/cheat/internal_rewrite/suppress_lists.cpp index 01036ea..01036ea 100644 --- a/internal_rewrite/suppress_lists.cpp +++ b/cheat/internal_rewrite/suppress_lists.cpp diff --git a/internal_rewrite/table32.h b/cheat/internal_rewrite/table32.h index 2bd19d8..2bd19d8 100644 --- a/internal_rewrite/table32.h +++ b/cheat/internal_rewrite/table32.h diff --git a/internal_rewrite/ui.h b/cheat/internal_rewrite/ui.h index 968a969..968a969 100644 --- a/internal_rewrite/ui.h +++ b/cheat/internal_rewrite/ui.h diff --git a/internal_rewrite/ui_base_item.h b/cheat/internal_rewrite/ui_base_item.h index 482481a..482481a 100644 --- a/internal_rewrite/ui_base_item.h +++ b/cheat/internal_rewrite/ui_base_item.h diff --git a/internal_rewrite/ui_button.h b/cheat/internal_rewrite/ui_button.h index 0472360..0472360 100644 --- a/internal_rewrite/ui_button.h +++ b/cheat/internal_rewrite/ui_button.h diff --git a/internal_rewrite/ui_checkbox.h b/cheat/internal_rewrite/ui_checkbox.h index 3b0c251..3b0c251 100644 --- a/internal_rewrite/ui_checkbox.h +++ b/cheat/internal_rewrite/ui_checkbox.h diff --git a/internal_rewrite/ui_color_picker.h b/cheat/internal_rewrite/ui_color_picker.h index 8404e19..8404e19 100644 --- a/internal_rewrite/ui_color_picker.h +++ b/cheat/internal_rewrite/ui_color_picker.h diff --git a/internal_rewrite/ui_draw.h b/cheat/internal_rewrite/ui_draw.h index d95b1c2..d95b1c2 100644 --- a/internal_rewrite/ui_draw.h +++ b/cheat/internal_rewrite/ui_draw.h diff --git a/internal_rewrite/ui_dropdown.h b/cheat/internal_rewrite/ui_dropdown.h index 12a9e98..12a9e98 100644 --- a/internal_rewrite/ui_dropdown.h +++ b/cheat/internal_rewrite/ui_dropdown.h diff --git a/internal_rewrite/ui_dropdown_item.h b/cheat/internal_rewrite/ui_dropdown_item.h index 2774013..2774013 100644 --- a/internal_rewrite/ui_dropdown_item.h +++ b/cheat/internal_rewrite/ui_dropdown_item.h diff --git a/internal_rewrite/ui_form.h b/cheat/internal_rewrite/ui_form.h index 9dbe68e..9dbe68e 100644 --- a/internal_rewrite/ui_form.h +++ b/cheat/internal_rewrite/ui_form.h diff --git a/internal_rewrite/ui_itemlist.h b/cheat/internal_rewrite/ui_itemlist.h index e692746..e692746 100644 --- a/internal_rewrite/ui_itemlist.h +++ b/cheat/internal_rewrite/ui_itemlist.h diff --git a/internal_rewrite/ui_itemlist_def.h b/cheat/internal_rewrite/ui_itemlist_def.h index fd64f12..fd64f12 100644 --- a/internal_rewrite/ui_itemlist_def.h +++ b/cheat/internal_rewrite/ui_itemlist_def.h diff --git a/internal_rewrite/ui_key_picker.h b/cheat/internal_rewrite/ui_key_picker.h index dea681c..dea681c 100644 --- a/internal_rewrite/ui_key_picker.h +++ b/cheat/internal_rewrite/ui_key_picker.h diff --git a/internal_rewrite/ui_label.h b/cheat/internal_rewrite/ui_label.h index 712b547..712b547 100644 --- a/internal_rewrite/ui_label.h +++ b/cheat/internal_rewrite/ui_label.h diff --git a/internal_rewrite/ui_menu.h b/cheat/internal_rewrite/ui_menu.h index 37b16f9..37b16f9 100644 --- a/internal_rewrite/ui_menu.h +++ b/cheat/internal_rewrite/ui_menu.h diff --git a/internal_rewrite/ui_render.h b/cheat/internal_rewrite/ui_render.h index 1f10223..1f10223 100644 --- a/internal_rewrite/ui_render.h +++ b/cheat/internal_rewrite/ui_render.h diff --git a/internal_rewrite/ui_slider.h b/cheat/internal_rewrite/ui_slider.h index 8f54b3c..8f54b3c 100644 --- a/internal_rewrite/ui_slider.h +++ b/cheat/internal_rewrite/ui_slider.h diff --git a/internal_rewrite/ui_tab_manager.h b/cheat/internal_rewrite/ui_tab_manager.h index 293d48b..293d48b 100644 --- a/internal_rewrite/ui_tab_manager.h +++ b/cheat/internal_rewrite/ui_tab_manager.h diff --git a/internal_rewrite/ui_text_input.cpp b/cheat/internal_rewrite/ui_text_input.cpp index f2c3530..f2c3530 100644 --- a/internal_rewrite/ui_text_input.cpp +++ b/cheat/internal_rewrite/ui_text_input.cpp diff --git a/internal_rewrite/ui_text_input.h b/cheat/internal_rewrite/ui_text_input.h index 243c40b..243c40b 100644 --- a/internal_rewrite/ui_text_input.h +++ b/cheat/internal_rewrite/ui_text_input.h diff --git a/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp index 201d100..201d100 100644 --- a/internal_rewrite/update_clientside_animation.cpp +++ b/cheat/internal_rewrite/update_clientside_animation.cpp diff --git a/internal_rewrite/util.cpp b/cheat/internal_rewrite/util.cpp index 1d19f9a..1d19f9a 100644 --- a/internal_rewrite/util.cpp +++ b/cheat/internal_rewrite/util.cpp diff --git a/internal_rewrite/util.hpp b/cheat/internal_rewrite/util.hpp index ba7c779..ba7c779 100644 --- a/internal_rewrite/util.hpp +++ b/cheat/internal_rewrite/util.hpp diff --git a/internal_rewrite/vector.hpp b/cheat/internal_rewrite/vector.hpp index 4fef1b7..4fef1b7 100644 --- a/internal_rewrite/vector.hpp +++ b/cheat/internal_rewrite/vector.hpp diff --git a/internal_rewrite/visual.hpp b/cheat/internal_rewrite/visual.hpp index 4d0e996..4d0e996 100644 --- a/internal_rewrite/visual.hpp +++ b/cheat/internal_rewrite/visual.hpp diff --git a/internal_rewrite/visual_draw.cpp b/cheat/internal_rewrite/visual_draw.cpp index 8636af2..8636af2 100644 --- a/internal_rewrite/visual_draw.cpp +++ b/cheat/internal_rewrite/visual_draw.cpp diff --git a/internal_rewrite/visual_local.cpp b/cheat/internal_rewrite/visual_local.cpp index 119c352..119c352 100644 --- a/internal_rewrite/visual_local.cpp +++ b/cheat/internal_rewrite/visual_local.cpp diff --git a/internal_rewrite/visual_player.cpp b/cheat/internal_rewrite/visual_player.cpp index f14a0d7..f14a0d7 100644 --- a/internal_rewrite/visual_player.cpp +++ b/cheat/internal_rewrite/visual_player.cpp diff --git a/internal_rewrite/visual_world.cpp b/cheat/internal_rewrite/visual_world.cpp index ea3d31d..ea3d31d 100644 --- a/internal_rewrite/visual_world.cpp +++ b/cheat/internal_rewrite/visual_world.cpp diff --git a/internal_rewrite/vmt.hpp b/cheat/internal_rewrite/vmt.hpp index 03409ce..03409ce 100644 --- a/internal_rewrite/vmt.hpp +++ b/cheat/internal_rewrite/vmt.hpp diff --git a/internal_rewrite/window_procedure.cpp b/cheat/internal_rewrite/window_procedure.cpp index ffe9ccb..ffe9ccb 100644 --- a/internal_rewrite/window_procedure.cpp +++ b/cheat/internal_rewrite/window_procedure.cpp diff --git a/internal_rewrite/wipe.hpp b/cheat/internal_rewrite/wipe.hpp index dfb72a8..dfb72a8 100644 --- a/internal_rewrite/wipe.hpp +++ b/cheat/internal_rewrite/wipe.hpp diff --git a/internal_rewrite/x86.hpp b/cheat/internal_rewrite/x86.hpp index e737013..e737013 100644 --- a/internal_rewrite/x86.hpp +++ b/cheat/internal_rewrite/x86.hpp diff --git a/tf2/ButtonCode_t.h b/cheat/tf2/ButtonCode_t.h index 1d11c19..1d11c19 100644 --- a/tf2/ButtonCode_t.h +++ b/cheat/tf2/ButtonCode_t.h diff --git a/tf2/CAttribute.h b/cheat/tf2/CAttribute.h index a7dd944..a7dd944 100644 --- a/tf2/CAttribute.h +++ b/cheat/tf2/CAttribute.h diff --git a/tf2/CBasePlayer.cpp b/cheat/tf2/CBasePlayer.cpp index a5860ac..a5860ac 100644 --- a/tf2/CBasePlayer.cpp +++ b/cheat/tf2/CBasePlayer.cpp diff --git a/tf2/CBasePlayer.h b/cheat/tf2/CBasePlayer.h index dbce5cd..dbce5cd 100644 --- a/tf2/CBasePlayer.h +++ b/cheat/tf2/CBasePlayer.h diff --git a/tf2/CBaseWeapon.cpp b/cheat/tf2/CBaseWeapon.cpp index b9881d1..b9881d1 100644 --- a/tf2/CBaseWeapon.cpp +++ b/cheat/tf2/CBaseWeapon.cpp diff --git a/tf2/CBaseWeapon.h b/cheat/tf2/CBaseWeapon.h index 213a576..213a576 100644 --- a/tf2/CBaseWeapon.h +++ b/cheat/tf2/CBaseWeapon.h diff --git a/tf2/CGlobalVarsBase.h b/cheat/tf2/CGlobalVarsBase.h index 9b0d79f..9b0d79f 100644 --- a/tf2/CGlobalVarsBase.h +++ b/cheat/tf2/CGlobalVarsBase.h diff --git a/tf2/CHLClient.h b/cheat/tf2/CHLClient.h index 7eadb50..7eadb50 100644 --- a/tf2/CHLClient.h +++ b/cheat/tf2/CHLClient.h diff --git a/tf2/CInput.hpp b/cheat/tf2/CInput.hpp index 3fb8bff..3fb8bff 100644 --- a/tf2/CInput.hpp +++ b/cheat/tf2/CInput.hpp diff --git a/tf2/CUserCmd.h b/cheat/tf2/CUserCmd.h index f9dd746..f9dd746 100644 --- a/tf2/CUserCmd.h +++ b/cheat/tf2/CUserCmd.h diff --git a/tf2/ClientClass.h b/cheat/tf2/ClientClass.h index 56a1103..56a1103 100644 --- a/tf2/ClientClass.h +++ b/cheat/tf2/ClientClass.h diff --git a/tf2/GlowObject.h b/cheat/tf2/GlowObject.h index 00dce81..00dce81 100644 --- a/tf2/GlowObject.h +++ b/cheat/tf2/GlowObject.h diff --git a/tf2/IAppSystem.h b/cheat/tf2/IAppSystem.h index 84af8c2..84af8c2 100644 --- a/tf2/IAppSystem.h +++ b/cheat/tf2/IAppSystem.h diff --git a/tf2/IClientEntity.h b/cheat/tf2/IClientEntity.h index 0ba0807..0ba0807 100644 --- a/tf2/IClientEntity.h +++ b/cheat/tf2/IClientEntity.h diff --git a/tf2/IClientEntityList.h b/cheat/tf2/IClientEntityList.h index 18b4371..18b4371 100644 --- a/tf2/IClientEntityList.h +++ b/cheat/tf2/IClientEntityList.h diff --git a/tf2/IClientMode.h b/cheat/tf2/IClientMode.h index f528f3d..f528f3d 100644 --- a/tf2/IClientMode.h +++ b/cheat/tf2/IClientMode.h diff --git a/tf2/ICvar.h b/cheat/tf2/ICvar.h index 19cb55f..19cb55f 100644 --- a/tf2/ICvar.h +++ b/cheat/tf2/ICvar.h diff --git a/tf2/IEngineTrace.h b/cheat/tf2/IEngineTrace.h index 7fb317d..7fb317d 100644 --- a/tf2/IEngineTrace.h +++ b/cheat/tf2/IEngineTrace.h diff --git a/tf2/IEngineVGui.h b/cheat/tf2/IEngineVGui.h index 091c565..091c565 100644 --- a/tf2/IEngineVGui.h +++ b/cheat/tf2/IEngineVGui.h diff --git a/tf2/IGameEventManager.h b/cheat/tf2/IGameEventManager.h index f2e7c25..f2e7c25 100644 --- a/tf2/IGameEventManager.h +++ b/cheat/tf2/IGameEventManager.h diff --git a/tf2/IGameMovement.h b/cheat/tf2/IGameMovement.h index 26b5244..26b5244 100644 --- a/tf2/IGameMovement.h +++ b/cheat/tf2/IGameMovement.h diff --git a/tf2/IInputSystem.h b/cheat/tf2/IInputSystem.h index 10f8168..10f8168 100644 --- a/tf2/IInputSystem.h +++ b/cheat/tf2/IInputSystem.h diff --git a/tf2/IMaterialSystem.hpp b/cheat/tf2/IMaterialSystem.hpp index a8a6a9e..a8a6a9e 100644 --- a/tf2/IMaterialSystem.hpp +++ b/cheat/tf2/IMaterialSystem.hpp diff --git a/tf2/IPanel.h b/cheat/tf2/IPanel.h index 5252642..5252642 100644 --- a/tf2/IPanel.h +++ b/cheat/tf2/IPanel.h diff --git a/tf2/IPlayerInfoManager.h b/cheat/tf2/IPlayerInfoManager.h index 13406b1..13406b1 100644 --- a/tf2/IPlayerInfoManager.h +++ b/cheat/tf2/IPlayerInfoManager.h diff --git a/tf2/ISurface.h b/cheat/tf2/ISurface.h index 3dbff15..3dbff15 100644 --- a/tf2/ISurface.h +++ b/cheat/tf2/ISurface.h diff --git a/tf2/IVDebugOverlay.h b/cheat/tf2/IVDebugOverlay.h index 664b356..664b356 100644 --- a/tf2/IVDebugOverlay.h +++ b/cheat/tf2/IVDebugOverlay.h diff --git a/tf2/IVEngineClient.h b/cheat/tf2/IVEngineClient.h index a45e839..a45e839 100644 --- a/tf2/IVEngineClient.h +++ b/cheat/tf2/IVEngineClient.h diff --git a/tf2/IVModelInfo.h b/cheat/tf2/IVModelInfo.h index 08df897..08df897 100644 --- a/tf2/IVModelInfo.h +++ b/cheat/tf2/IVModelInfo.h diff --git a/tf2/IVRenderView.h b/cheat/tf2/IVRenderView.h index b85b82d..b85b82d 100644 --- a/tf2/IVRenderView.h +++ b/cheat/tf2/IVRenderView.h diff --git a/tf2/KeyValues.cpp b/cheat/tf2/KeyValues.cpp index 16ccf6e..16ccf6e 100644 --- a/tf2/KeyValues.cpp +++ b/cheat/tf2/KeyValues.cpp diff --git a/tf2/KeyValues.h b/cheat/tf2/KeyValues.h index 1d8ed41..1d8ed41 100644 --- a/tf2/KeyValues.h +++ b/cheat/tf2/KeyValues.h diff --git a/tf2/README.md b/cheat/tf2/README.md index fa73fb9..fa73fb9 100644 --- a/tf2/README.md +++ b/cheat/tf2/README.md diff --git a/tf2/ScreenSpaceEffects.h b/cheat/tf2/ScreenSpaceEffects.h index ec0b6e8..ec0b6e8 100644 --- a/tf2/ScreenSpaceEffects.h +++ b/cheat/tf2/ScreenSpaceEffects.h diff --git a/tf2/Source.cpp b/cheat/tf2/Source.cpp index 3bd44af..3bd44af 100644 --- a/tf2/Source.cpp +++ b/cheat/tf2/Source.cpp diff --git a/tf2/UtlMem.h b/cheat/tf2/UtlMem.h index df4574f..df4574f 100644 --- a/tf2/UtlMem.h +++ b/cheat/tf2/UtlMem.h diff --git a/tf2/VFunc.h b/cheat/tf2/VFunc.h index f5e09af..f5e09af 100644 --- a/tf2/VFunc.h +++ b/cheat/tf2/VFunc.h diff --git a/tf2/aim.cpp b/cheat/tf2/aim.cpp index 15c5e16..15c5e16 100644 --- a/tf2/aim.cpp +++ b/cheat/tf2/aim.cpp diff --git a/tf2/aim.h b/cheat/tf2/aim.h index 82e4943..82e4943 100644 --- a/tf2/aim.h +++ b/cheat/tf2/aim.h diff --git a/tf2/aim_lagcomp.cpp b/cheat/tf2/aim_lagcomp.cpp index e3b5486..e3b5486 100644 --- a/tf2/aim_lagcomp.cpp +++ b/cheat/tf2/aim_lagcomp.cpp diff --git a/tf2/base_cheat.h b/cheat/tf2/base_cheat.h index 832386c..832386c 100644 --- a/tf2/base_cheat.h +++ b/cheat/tf2/base_cheat.h diff --git a/tf2/chams.cpp b/cheat/tf2/chams.cpp index fc5c060..fc5c060 100644 --- a/tf2/chams.cpp +++ b/cheat/tf2/chams.cpp diff --git a/tf2/chams.h b/cheat/tf2/chams.h index 4fdc74b..4fdc74b 100644 --- a/tf2/chams.h +++ b/cheat/tf2/chams.h diff --git a/tf2/checksum_crc.cpp b/cheat/tf2/checksum_crc.cpp index a2ac9e8..a2ac9e8 100644 --- a/tf2/checksum_crc.cpp +++ b/cheat/tf2/checksum_crc.cpp diff --git a/tf2/checksum_crc.h b/cheat/tf2/checksum_crc.h index d95b4c5..d95b4c5 100644 --- a/tf2/checksum_crc.h +++ b/cheat/tf2/checksum_crc.h diff --git a/tf2/chl_createmove.cpp b/cheat/tf2/chl_createmove.cpp index 581ed25..581ed25 100644 --- a/tf2/chl_createmove.cpp +++ b/cheat/tf2/chl_createmove.cpp diff --git a/tf2/clientmode_createmove.cpp b/cheat/tf2/clientmode_createmove.cpp index f86471e..f86471e 100644 --- a/tf2/clientmode_createmove.cpp +++ b/cheat/tf2/clientmode_createmove.cpp diff --git a/tf2/color.hpp b/cheat/tf2/color.hpp index 5ea9454..5ea9454 100644 --- a/tf2/color.hpp +++ b/cheat/tf2/color.hpp diff --git a/tf2/con_alias.hpp b/cheat/tf2/con_alias.hpp index c943c24..c943c24 100644 --- a/tf2/con_alias.hpp +++ b/cheat/tf2/con_alias.hpp diff --git a/tf2/con_fn.hpp b/cheat/tf2/con_fn.hpp index 3c06e9b..3c06e9b 100644 --- a/tf2/con_fn.hpp +++ b/cheat/tf2/con_fn.hpp diff --git a/tf2/conditions.h b/cheat/tf2/conditions.h index 331ad6d..331ad6d 100644 --- a/tf2/conditions.h +++ b/cheat/tf2/conditions.h diff --git a/tf2/console.cpp b/cheat/tf2/console.cpp index 121c57a..121c57a 100644 --- a/tf2/console.cpp +++ b/cheat/tf2/console.cpp diff --git a/tf2/console.hpp b/cheat/tf2/console.hpp index a16ad0f..a16ad0f 100644 --- a/tf2/console.hpp +++ b/cheat/tf2/console.hpp diff --git a/tf2/console_log.hpp b/cheat/tf2/console_log.hpp index 4659ea1..4659ea1 100644 --- a/tf2/console_log.hpp +++ b/cheat/tf2/console_log.hpp diff --git a/tf2/ctx.cpp b/cheat/tf2/ctx.cpp index 37e192f..37e192f 100644 --- a/tf2/ctx.cpp +++ b/cheat/tf2/ctx.cpp diff --git a/tf2/ctx.hpp b/cheat/tf2/ctx.hpp index 8243a19..8243a19 100644 --- a/tf2/ctx.hpp +++ b/cheat/tf2/ctx.hpp diff --git a/tf2/d3d.cpp b/cheat/tf2/d3d.cpp index a35f613..a35f613 100644 --- a/tf2/d3d.cpp +++ b/cheat/tf2/d3d.cpp diff --git a/tf2/d3d.hpp b/cheat/tf2/d3d.hpp index a927ee3..a927ee3 100644 --- a/tf2/d3d.hpp +++ b/cheat/tf2/d3d.hpp diff --git a/tf2/d3d_sprite.cpp b/cheat/tf2/d3d_sprite.cpp index 37bbde1..37bbde1 100644 --- a/tf2/d3d_sprite.cpp +++ b/cheat/tf2/d3d_sprite.cpp diff --git a/tf2/d3d_sprite.hpp b/cheat/tf2/d3d_sprite.hpp index 0d26f4c..0d26f4c 100644 --- a/tf2/d3d_sprite.hpp +++ b/cheat/tf2/d3d_sprite.hpp diff --git a/tf2/directx.cpp b/cheat/tf2/directx.cpp index db2d62f..db2d62f 100644 --- a/tf2/directx.cpp +++ b/cheat/tf2/directx.cpp diff --git a/tf2/do_post_screen_space_effects.cpp b/cheat/tf2/do_post_screen_space_effects.cpp index 401b05e..401b05e 100644 --- a/tf2/do_post_screen_space_effects.cpp +++ b/cheat/tf2/do_post_screen_space_effects.cpp diff --git a/tf2/draw_model_execute.cpp b/cheat/tf2/draw_model_execute.cpp index 1191a90..1191a90 100644 --- a/tf2/draw_model_execute.cpp +++ b/cheat/tf2/draw_model_execute.cpp diff --git a/tf2/dt_common.h b/cheat/tf2/dt_common.h index 7f86418..7f86418 100644 --- a/tf2/dt_common.h +++ b/cheat/tf2/dt_common.h diff --git a/tf2/dt_recv.h b/cheat/tf2/dt_recv.h index 47f945b..47f945b 100644 --- a/tf2/dt_recv.h +++ b/cheat/tf2/dt_recv.h diff --git a/tf2/emit_sound.cpp b/cheat/tf2/emit_sound.cpp index b311b84..b311b84 100644 --- a/tf2/emit_sound.cpp +++ b/cheat/tf2/emit_sound.cpp diff --git a/tf2/extra.cpp b/cheat/tf2/extra.cpp index 894c957..894c957 100644 --- a/tf2/extra.cpp +++ b/cheat/tf2/extra.cpp diff --git a/tf2/extra.h b/cheat/tf2/extra.h index d25131c..d25131c 100644 --- a/tf2/extra.h +++ b/cheat/tf2/extra.h diff --git a/tf2/factory.cpp b/cheat/tf2/factory.cpp index f8dfd42..f8dfd42 100644 --- a/tf2/factory.cpp +++ b/cheat/tf2/factory.cpp diff --git a/tf2/factory.h b/cheat/tf2/factory.h index d1e8027..d1e8027 100644 --- a/tf2/factory.h +++ b/cheat/tf2/factory.h diff --git a/tf2/factory.hpp b/cheat/tf2/factory.hpp index 4615c34..4615c34 100644 --- a/tf2/factory.hpp +++ b/cheat/tf2/factory.hpp diff --git a/tf2/fnv.hpp b/cheat/tf2/fnv.hpp index a3f2dc9..a3f2dc9 100644 --- a/tf2/fnv.hpp +++ b/cheat/tf2/fnv.hpp diff --git a/tf2/framestagenotify.cpp b/cheat/tf2/framestagenotify.cpp index 87e91d9..87e91d9 100644 --- a/tf2/framestagenotify.cpp +++ b/cheat/tf2/framestagenotify.cpp diff --git a/tf2/get_viewmodel_fov.cpp b/cheat/tf2/get_viewmodel_fov.cpp index 96c4a1e..96c4a1e 100644 --- a/tf2/get_viewmodel_fov.cpp +++ b/cheat/tf2/get_viewmodel_fov.cpp diff --git a/tf2/graphics.cpp b/cheat/tf2/graphics.cpp index 9670bf9..9670bf9 100644 --- a/tf2/graphics.cpp +++ b/cheat/tf2/graphics.cpp diff --git a/tf2/graphics.h b/cheat/tf2/graphics.h index c9c2ef7..c9c2ef7 100644 --- a/tf2/graphics.h +++ b/cheat/tf2/graphics.h diff --git a/tf2/hooks.cpp b/cheat/tf2/hooks.cpp index 0472c6e..0472c6e 100644 --- a/tf2/hooks.cpp +++ b/cheat/tf2/hooks.cpp diff --git a/tf2/hooks.h b/cheat/tf2/hooks.h index c34d71f..c34d71f 100644 --- a/tf2/hooks.h +++ b/cheat/tf2/hooks.h diff --git a/tf2/icons.hpp b/cheat/tf2/icons.hpp index bffd94e..bffd94e 100644 --- a/tf2/icons.hpp +++ b/cheat/tf2/icons.hpp diff --git a/tf2/icons/config.hpp b/cheat/tf2/icons/config.hpp index e47c75b..e47c75b 100644 --- a/tf2/icons/config.hpp +++ b/cheat/tf2/icons/config.hpp diff --git a/tf2/icons/legit.hpp b/cheat/tf2/icons/legit.hpp index 8e5523e..8e5523e 100644 --- a/tf2/icons/legit.hpp +++ b/cheat/tf2/icons/legit.hpp diff --git a/tf2/icons/misc.hpp b/cheat/tf2/icons/misc.hpp index d15e736..d15e736 100644 --- a/tf2/icons/misc.hpp +++ b/cheat/tf2/icons/misc.hpp diff --git a/tf2/icons/rage.hpp b/cheat/tf2/icons/rage.hpp index 00dff07..00dff07 100644 --- a/tf2/icons/rage.hpp +++ b/cheat/tf2/icons/rage.hpp diff --git a/tf2/icons/visuals.hpp b/cheat/tf2/icons/visuals.hpp index 4d50ae3..4d50ae3 100644 --- a/tf2/icons/visuals.hpp +++ b/cheat/tf2/icons/visuals.hpp diff --git a/tf2/identity.h b/cheat/tf2/identity.h index 0b3906a..0b3906a 100644 --- a/tf2/identity.h +++ b/cheat/tf2/identity.h diff --git a/tf2/input_system.cpp b/cheat/tf2/input_system.cpp index 881fa02..881fa02 100644 --- a/tf2/input_system.cpp +++ b/cheat/tf2/input_system.cpp diff --git a/tf2/input_system.hpp b/cheat/tf2/input_system.hpp index 6631a09..6631a09 100644 --- a/tf2/input_system.hpp +++ b/cheat/tf2/input_system.hpp diff --git a/tf2/interfaces.cpp b/cheat/tf2/interfaces.cpp index 8ca7ff3..8ca7ff3 100644 --- a/tf2/interfaces.cpp +++ b/cheat/tf2/interfaces.cpp diff --git a/tf2/interfaces.h b/cheat/tf2/interfaces.h index 96e3be1..96e3be1 100644 --- a/tf2/interfaces.h +++ b/cheat/tf2/interfaces.h diff --git a/tf2/listener.cpp b/cheat/tf2/listener.cpp index c48b900..c48b900 100644 --- a/tf2/listener.cpp +++ b/cheat/tf2/listener.cpp diff --git a/tf2/listener.hpp b/cheat/tf2/listener.hpp index 1ee442f..1ee442f 100644 --- a/tf2/listener.hpp +++ b/cheat/tf2/listener.hpp diff --git a/tf2/math.cpp b/cheat/tf2/math.cpp index e3e7436..e3e7436 100644 --- a/tf2/math.cpp +++ b/cheat/tf2/math.cpp diff --git a/tf2/math.h b/cheat/tf2/math.h index c5a107f..c5a107f 100644 --- a/tf2/math.h +++ b/cheat/tf2/math.h diff --git a/tf2/mem.hpp b/cheat/tf2/mem.hpp index 22e8fbf..22e8fbf 100644 --- a/tf2/mem.hpp +++ b/cheat/tf2/mem.hpp diff --git a/tf2/movement.cpp b/cheat/tf2/movement.cpp index e1dd335..e1dd335 100644 --- a/tf2/movement.cpp +++ b/cheat/tf2/movement.cpp diff --git a/tf2/movement.h b/cheat/tf2/movement.h index d32fb2b..d32fb2b 100644 --- a/tf2/movement.h +++ b/cheat/tf2/movement.h diff --git a/tf2/netvar_proxy.hpp b/cheat/tf2/netvar_proxy.hpp index ea18a4d..ea18a4d 100644 --- a/tf2/netvar_proxy.hpp +++ b/cheat/tf2/netvar_proxy.hpp diff --git a/tf2/netvars.cpp b/cheat/tf2/netvars.cpp index 2a064bd..2a064bd 100644 --- a/tf2/netvars.cpp +++ b/cheat/tf2/netvars.cpp diff --git a/tf2/netvars.h b/cheat/tf2/netvars.h index 54b92be..54b92be 100644 --- a/tf2/netvars.h +++ b/cheat/tf2/netvars.h diff --git a/tf2/on_screen_size_changed.cpp b/cheat/tf2/on_screen_size_changed.cpp index 580e2db..580e2db 100644 --- a/tf2/on_screen_size_changed.cpp +++ b/cheat/tf2/on_screen_size_changed.cpp diff --git a/tf2/override_mouse_input.cpp b/cheat/tf2/override_mouse_input.cpp index d3a4b9b..d3a4b9b 100644 --- a/tf2/override_mouse_input.cpp +++ b/cheat/tf2/override_mouse_input.cpp diff --git a/tf2/override_view.cpp b/cheat/tf2/override_view.cpp index 2e22e58..2e22e58 100644 --- a/tf2/override_view.cpp +++ b/cheat/tf2/override_view.cpp diff --git a/tf2/paint.cpp b/cheat/tf2/paint.cpp index 144847b..144847b 100644 --- a/tf2/paint.cpp +++ b/cheat/tf2/paint.cpp diff --git a/tf2/pattern.hpp b/cheat/tf2/pattern.hpp index 0bc4b1b..0bc4b1b 100644 --- a/tf2/pattern.hpp +++ b/cheat/tf2/pattern.hpp diff --git a/tf2/prediction.cpp b/cheat/tf2/prediction.cpp index c9e2493..c9e2493 100644 --- a/tf2/prediction.cpp +++ b/cheat/tf2/prediction.cpp diff --git a/tf2/prediction.h b/cheat/tf2/prediction.h index e71ac24..e71ac24 100644 --- a/tf2/prediction.h +++ b/cheat/tf2/prediction.h diff --git a/tf2/process_movement.cpp b/cheat/tf2/process_movement.cpp index c6f186e..c6f186e 100644 --- a/tf2/process_movement.cpp +++ b/cheat/tf2/process_movement.cpp diff --git a/tf2/projectile_pred.cpp b/cheat/tf2/projectile_pred.cpp index c54f712..c54f712 100644 --- a/tf2/projectile_pred.cpp +++ b/cheat/tf2/projectile_pred.cpp diff --git a/tf2/projectile_pred.h b/cheat/tf2/projectile_pred.h index bd1b3d8..bd1b3d8 100644 --- a/tf2/projectile_pred.h +++ b/cheat/tf2/projectile_pred.h diff --git a/tf2/renderer.cpp b/cheat/tf2/renderer.cpp index 8f5e8e7..8f5e8e7 100644 --- a/tf2/renderer.cpp +++ b/cheat/tf2/renderer.cpp diff --git a/tf2/renderer.hpp b/cheat/tf2/renderer.hpp index 1c86511..1c86511 100644 --- a/tf2/renderer.hpp +++ b/cheat/tf2/renderer.hpp diff --git a/tf2/scene_end.cpp b/cheat/tf2/scene_end.cpp index bb88311..bb88311 100644 --- a/tf2/scene_end.cpp +++ b/cheat/tf2/scene_end.cpp diff --git a/tf2/sdk.h b/cheat/tf2/sdk.h index 4db8a8f..4db8a8f 100644 --- a/tf2/sdk.h +++ b/cheat/tf2/sdk.h diff --git a/tf2/settings.cpp b/cheat/tf2/settings.cpp index 144c74a..144c74a 100644 --- a/tf2/settings.cpp +++ b/cheat/tf2/settings.cpp diff --git a/tf2/settings.h b/cheat/tf2/settings.h index 3f9fbac..3f9fbac 100644 --- a/tf2/settings.h +++ b/cheat/tf2/settings.h diff --git a/tf2/shut_down.cpp b/cheat/tf2/shut_down.cpp index 149fbf6..149fbf6 100644 --- a/tf2/shut_down.cpp +++ b/cheat/tf2/shut_down.cpp diff --git a/tf2/simple_settings.cpp b/cheat/tf2/simple_settings.cpp index 9d1d1de..9d1d1de 100644 --- a/tf2/simple_settings.cpp +++ b/cheat/tf2/simple_settings.cpp diff --git a/tf2/simple_settings.h b/cheat/tf2/simple_settings.h index db9b814..db9b814 100644 --- a/tf2/simple_settings.h +++ b/cheat/tf2/simple_settings.h diff --git a/tf2/strings.hpp b/cheat/tf2/strings.hpp index dfdeb8b..dfdeb8b 100644 --- a/tf2/strings.hpp +++ b/cheat/tf2/strings.hpp diff --git a/tf2/test_cso2.vcxproj b/cheat/tf2/test_cso2.vcxproj index 52b6d12..ec2ff5b 100644 --- a/tf2/test_cso2.vcxproj +++ b/cheat/tf2/test_cso2.vcxproj @@ -30,8 +30,8 @@ <ProjectGuid>{DD486C1B-C911-42B8-AB24-A9102A23DC02}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>test_cso2</RootNamespace>
- <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
- <ProjectName>tf2_base</ProjectName>
+ <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
+ <ProjectName>tf2</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
diff --git a/tf2/test_cso2.vcxproj.filters b/cheat/tf2/test_cso2.vcxproj.filters index d9d322d..d9d322d 100644 --- a/tf2/test_cso2.vcxproj.filters +++ b/cheat/tf2/test_cso2.vcxproj.filters diff --git a/tf2/ui.h b/cheat/tf2/ui.h index bafb2ce..bafb2ce 100644 --- a/tf2/ui.h +++ b/cheat/tf2/ui.h diff --git a/tf2/ui_base_item.h b/cheat/tf2/ui_base_item.h index 68c2198..68c2198 100644 --- a/tf2/ui_base_item.h +++ b/cheat/tf2/ui_base_item.h diff --git a/tf2/ui_button.h b/cheat/tf2/ui_button.h index 022fc67..022fc67 100644 --- a/tf2/ui_button.h +++ b/cheat/tf2/ui_button.h diff --git a/tf2/ui_checkbox.h b/cheat/tf2/ui_checkbox.h index 50cad1c..50cad1c 100644 --- a/tf2/ui_checkbox.h +++ b/cheat/tf2/ui_checkbox.h diff --git a/tf2/ui_color_picker.h b/cheat/tf2/ui_color_picker.h index 2711d29..2711d29 100644 --- a/tf2/ui_color_picker.h +++ b/cheat/tf2/ui_color_picker.h diff --git a/tf2/ui_draw.h b/cheat/tf2/ui_draw.h index 4686bf0..4686bf0 100644 --- a/tf2/ui_draw.h +++ b/cheat/tf2/ui_draw.h diff --git a/tf2/ui_dropdown.h b/cheat/tf2/ui_dropdown.h index 0c4e990..0c4e990 100644 --- a/tf2/ui_dropdown.h +++ b/cheat/tf2/ui_dropdown.h diff --git a/tf2/ui_dropdown_item.h b/cheat/tf2/ui_dropdown_item.h index f77a732..f77a732 100644 --- a/tf2/ui_dropdown_item.h +++ b/cheat/tf2/ui_dropdown_item.h diff --git a/tf2/ui_form.h b/cheat/tf2/ui_form.h index 0791528..0791528 100644 --- a/tf2/ui_form.h +++ b/cheat/tf2/ui_form.h diff --git a/tf2/ui_key_picker.h b/cheat/tf2/ui_key_picker.h index 03aed84..03aed84 100644 --- a/tf2/ui_key_picker.h +++ b/cheat/tf2/ui_key_picker.h diff --git a/tf2/ui_label.h b/cheat/tf2/ui_label.h index 9df46b5..9df46b5 100644 --- a/tf2/ui_label.h +++ b/cheat/tf2/ui_label.h diff --git a/tf2/ui_menu.h b/cheat/tf2/ui_menu.h index aae68a9..aae68a9 100644 --- a/tf2/ui_menu.h +++ b/cheat/tf2/ui_menu.h diff --git a/tf2/ui_render.h b/cheat/tf2/ui_render.h index f67f16b..f67f16b 100644 --- a/tf2/ui_render.h +++ b/cheat/tf2/ui_render.h diff --git a/tf2/ui_slider.h b/cheat/tf2/ui_slider.h index 0e55a73..0e55a73 100644 --- a/tf2/ui_slider.h +++ b/cheat/tf2/ui_slider.h diff --git a/tf2/ui_tab_manager.h b/cheat/tf2/ui_tab_manager.h index 76258c8..76258c8 100644 --- a/tf2/ui_tab_manager.h +++ b/cheat/tf2/ui_tab_manager.h diff --git a/tf2/ui_text_input.h b/cheat/tf2/ui_text_input.h index f486106..f486106 100644 --- a/tf2/ui_text_input.h +++ b/cheat/tf2/ui_text_input.h diff --git a/tf2/util.cpp b/cheat/tf2/util.cpp index 424df71..424df71 100644 --- a/tf2/util.cpp +++ b/cheat/tf2/util.cpp diff --git a/tf2/util.hpp b/cheat/tf2/util.hpp index 7aaa007..7aaa007 100644 --- a/tf2/util.hpp +++ b/cheat/tf2/util.hpp diff --git a/tf2/vector.hpp b/cheat/tf2/vector.hpp index af24136..af24136 100644 --- a/tf2/vector.hpp +++ b/cheat/tf2/vector.hpp diff --git a/tf2/visuals.hpp b/cheat/tf2/visuals.hpp index 2f8e9f3..2f8e9f3 100644 --- a/tf2/visuals.hpp +++ b/cheat/tf2/visuals.hpp diff --git a/tf2/visuals_draw.cpp b/cheat/tf2/visuals_draw.cpp index 87c476b..87c476b 100644 --- a/tf2/visuals_draw.cpp +++ b/cheat/tf2/visuals_draw.cpp diff --git a/tf2/visuals_local.cpp b/cheat/tf2/visuals_local.cpp index 7f549d9..7f549d9 100644 --- a/tf2/visuals_local.cpp +++ b/cheat/tf2/visuals_local.cpp diff --git a/tf2/visuals_objects.cpp b/cheat/tf2/visuals_objects.cpp index e69de29..e69de29 100644 --- a/tf2/visuals_objects.cpp +++ b/cheat/tf2/visuals_objects.cpp diff --git a/tf2/visuals_players.cpp b/cheat/tf2/visuals_players.cpp index 8b9aaf9..8b9aaf9 100644 --- a/tf2/visuals_players.cpp +++ b/cheat/tf2/visuals_players.cpp diff --git a/tf2/visuals_world.cpp b/cheat/tf2/visuals_world.cpp index b727798..b727798 100644 --- a/tf2/visuals_world.cpp +++ b/cheat/tf2/visuals_world.cpp diff --git a/tf2/vmt.h b/cheat/tf2/vmt.h index f2a39ac..f2a39ac 100644 --- a/tf2/vmt.h +++ b/cheat/tf2/vmt.h diff --git a/tf2/window_procedure.cpp b/cheat/tf2/window_procedure.cpp index b67f9bb..b67f9bb 100644 --- a/tf2/window_procedure.cpp +++ b/cheat/tf2/window_procedure.cpp diff --git a/tf2/x86.hpp b/cheat/tf2/x86.hpp index e96c469..e96c469 100644 --- a/tf2/x86.hpp +++ b/cheat/tf2/x86.hpp diff --git a/client/client.vcxproj.filters b/client/client.vcxproj.filters deleted file mode 100644 index a0e485b..0000000 --- a/client/client.vcxproj.filters +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="client_windows.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="connect.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="err.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="strings.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="util.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project>
\ No newline at end of file diff --git a/enc_file/enc_file.vcxproj b/legacy/enc_file/enc_file.vcxproj index f6f6299..0df84b6 100644 --- a/enc_file/enc_file.vcxproj +++ b/legacy/enc_file/enc_file.vcxproj @@ -30,7 +30,7 @@ <VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}</ProjectGuid>
<RootNamespace>encfile</RootNamespace>
- <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
+ <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
diff --git a/enc_file/enc_file.vcxproj.filters b/legacy/enc_file/enc_file.vcxproj.filters index 9fa84c5..9fa84c5 100644 --- a/enc_file/enc_file.vcxproj.filters +++ b/legacy/enc_file/enc_file.vcxproj.filters diff --git a/enc_file/source.cpp b/legacy/enc_file/source.cpp index 9056764..9056764 100644 --- a/enc_file/source.cpp +++ b/legacy/enc_file/source.cpp diff --git a/injector/injector.vcxproj b/legacy/injector/injector.vcxproj index c769a6c..b376272 100644 --- a/injector/injector.vcxproj +++ b/legacy/injector/injector.vcxproj @@ -30,7 +30,7 @@ <VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{0CD36550-BDEB-4967-9AC1-9AB1AE778C64}</ProjectGuid>
<RootNamespace>injector</RootNamespace>
- <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
+ <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
diff --git a/injector/injector.vcxproj.filters b/legacy/injector/injector.vcxproj.filters index d81baf0..d81baf0 100644 --- a/injector/injector.vcxproj.filters +++ b/legacy/injector/injector.vcxproj.filters diff --git a/injector/main.cpp b/legacy/injector/main.cpp index f3d3511..f3d3511 100644 --- a/injector/main.cpp +++ b/legacy/injector/main.cpp diff --git a/injector/pe.h b/legacy/injector/pe.h index f67e46d..f67e46d 100644 --- a/injector/pe.h +++ b/legacy/injector/pe.h diff --git a/injector/util.h b/legacy/injector/util.h index 61b18dc..61b18dc 100644 --- a/injector/util.h +++ b/legacy/injector/util.h diff --git a/injector/winapi.h b/legacy/injector/winapi.h index 6fceeb7..6fceeb7 100644 --- a/injector/winapi.h +++ b/legacy/injector/winapi.h diff --git a/legacy/legacy.sln b/legacy/legacy.sln new file mode 100644 index 0000000..60d7aa5 --- /dev/null +++ b/legacy/legacy.sln @@ -0,0 +1,65 @@ +
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.106
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "enc_file", "enc_file\enc_file.vcxproj", "{9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "injector", "injector\injector.vcxproj", "{0CD36550-BDEB-4967-9AC1-9AB1AE778C64}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loader", "loader\loader.vcxproj", "{C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ pHit|x64 = pHit|x64
+ pHit|x86 = pHit|x86
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x64.ActiveCfg = Debug|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x64.Build.0 = Debug|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x86.ActiveCfg = Debug|Win32
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x86.Build.0 = Debug|Win32
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x64.ActiveCfg = pHit|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x64.Build.0 = pHit|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x86.ActiveCfg = pHit|Win32
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x86.Build.0 = pHit|Win32
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x64.ActiveCfg = Release|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x64.Build.0 = Release|x64
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x86.ActiveCfg = Release|Win32
+ {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x86.Build.0 = Release|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x64.ActiveCfg = Debug|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x64.Build.0 = Debug|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x86.ActiveCfg = Debug|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x86.Build.0 = Debug|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x64.ActiveCfg = pHit|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x64.Build.0 = pHit|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x86.ActiveCfg = pHit|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x86.Build.0 = pHit|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x64.ActiveCfg = Release|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x64.Build.0 = Release|x64
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x86.ActiveCfg = Release|Win32
+ {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x86.Build.0 = Release|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x64.ActiveCfg = Debug|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x64.Build.0 = Debug|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x86.ActiveCfg = Debug|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x86.Build.0 = Debug|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x64.ActiveCfg = pHit|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x64.Build.0 = pHit|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x86.ActiveCfg = pHit|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x86.Build.0 = pHit|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x64.ActiveCfg = Release|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x64.Build.0 = Release|x64
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x86.ActiveCfg = Release|Win32
+ {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {85DF5E86-C3F3-431C-BFC6-95E3F13530E5}
+ EndGlobalSection
+EndGlobal
diff --git a/legacy/loader/Source.cpp b/legacy/loader/Source.cpp new file mode 100644 index 0000000..8d72c2b --- /dev/null +++ b/legacy/loader/Source.cpp @@ -0,0 +1,190 @@ +#include <thread> +#include <fstream> +#include "d3d_sprite.hpp" +#include "window.hpp" +#include "ui.h" + +#include "http.h" + +#include "manualmap.hpp" +#include "iface.hpp" + +bool g_in_inject = false; + +void on_frame( ) { + if( g_d3d.run_frame( g_window.m_d3d_device ) ) { + g_d3d.begin( ); + for( auto& it : d3d::sprites ) { + it->begin( g_window.m_d3d_device ); + } + + static auto last_time = GetTickCount( ) * 0.001f; + auto cur_time = GetTickCount( ) * 0.001f; + + auto deltatime = cur_time - last_time; + + last_time = cur_time; + + constexpr float anim_step = 1.0f / 15.f; + static float anim_time = 0.f; + static bool flip = false; + if( anim_time == 1.0f ) { + flip = true; + } + if( anim_time == 0.f ) { + flip = false; + } + + if( flip ) anim_time = std::clamp( anim_time - anim_step * deltatime, 0.f, 1.0f ); + else anim_time = std::clamp( anim_time + anim_step * deltatime, 0.f, 1.0f ); + + ui::set_animtime( anim_time ); + ui::render( ); + + RECT cur_rect{ }; + GetWindowRect( g_window.get_hwnd( ), &cur_rect ); + + g_d3d.end( ); + for( auto& it : d3d::sprites ) { + it->end( ); + } + } +} + +void decrypt_file( std::vector< uint8_t >& file, uint8_t key ) { + for( size_t i{ }; i < file.size( ); ++i ) { + file.data( )[ i ] ^= key; + } +} + +int find_process( std::string name ) { + auto window = FindWindowA( 0, name.c_str( ) ); + if( !window ) return -1; + + ulong_t pid{ }; + GetWindowThreadProcessId( window, &pid ); + + return pid; +} + +void thread_fn( ) { + if( g_in_inject ) return; + + g_in_inject = true; + ulong_t hwid{ }; + GetVolumeInformationA( xors( "C:\\" ), 0, 0, &hwid, 0, 0, 0, 0 ); + + g_progress = 0.1f; + + std::string game{ }; + switch( g_game ) { + case 1: + game = xors( "Counter-Strike: Global Offensive" ); + break; + case 2: + game = xors( "Team Fortress 2" ); + break; + case 3: + game = xors( "Counter-Strike: Global Offensive" ); + break; + case 4: + game = xors( "Garry's Mod" ); + break; + default: + MessageBoxA( 0, xors( "unknown error" ), xors( "error" ), MB_OK ); + exit( 0 ); + break; + } + + auto pid = find_process( game ); + if( pid == -1 ) { + MessageBoxA( 0, xors( "game must be running" ), xors( "error" ), MB_OK ); + g_progress = 0.f; + g_in_inject = false; + return; + } + + auto h = OpenProcess( PROCESS_ALL_ACCESS, 0, pid ); + iface::manager mgr( h ); + + mgr.dump_all_modules( pid ); + if( !mgr.count( ) ) { + MessageBoxA( 0, xors( "unknown error" ), xors( "error" ), MB_OK ); + exit( 0 ); + } + + g_progress = 0.3f; + + //enter a new scope to run cleanup after we're done, epic life hack + { + auto result = http::send_request( g_login, hwid, g_game ); + + if( result.empty( ) ) { + MessageBoxA( 0, xors( "unknown error" ), xors( "error" ), MB_OK ); + exit( 0 ); + return; + } + + if( result[ 0 ] == '1' ) { + char str[ 256 ]; + strenc::w_sprintf_s( str, 256, xors( "hwid mismatch, request change: %08x" ), hwid ); + MessageBoxA( 0, str, xors( "error" ), MB_OK ); + exit( 0 ); + } + if( result[ 0 ] == '2' ) { + MessageBoxA( 0, xors( "user unknown" ), xors( "error" ), MB_OK ); + exit( 0 ); + } + if( result[ 0 ] == '3' ) { + MessageBoxA( 0, xors( "coming soon" ), xors( "error" ), MB_OK ); + g_progress = 0.f; + g_in_inject = false; + return; + } + + g_progress = 0.5f; + + //to meme whoever decides to reverse this + decrypt_file( result, [ ]( ) { + constexpr auto key_sqr = 49 * 49; + return 49; + }( ) ); + + inject::c_map map( result ); + g_progress = 0.7f; + + map.initialize( pid ); + std::this_thread::sleep_for( std::chrono::milliseconds( 300 ) ); + g_progress = 0.8f; + map.inject( mgr.write_to_process( ) ); + g_progress = 1.0f; + } + + MessageBoxA( 0, xors( "injection successful" ), xors( "success" ), MB_OK ); + exit( 0 ); + g_in_inject = false; +} + +void execute_login( ) { + std::thread t( thread_fn ); + + t.detach( ); +} + +int __stdcall WinMain( HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow ) { + std::thread window_thread( [ & ]( ) { + g_window.create( ); + std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) ); + g_window.add_on_frame( &on_frame ); + for( ;; ) { + g_window.on_frame( ); + + std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) ); + exit( -1 ); + } + } ); + + window_thread.detach( ); + + while( 1 ) { if( GetAsyncKeyState( VK_END ) & 0x8000 ) break; Sleep( 1 ); } +}
\ No newline at end of file diff --git a/legacy/loader/color.hpp b/legacy/loader/color.hpp new file mode 100644 index 0000000..f28d35c --- /dev/null +++ b/legacy/loader/color.hpp @@ -0,0 +1,287 @@ +#pragma once
+
+#include <cmath>
+#include <cinttypes>
+
+//this is a fucking mess
+
+class fclr_t {
+ float R, G, B, A;
+public:
+ fclr_t( ) : R( 0 ), G( 0 ), B( 0 ), A( 0 ) { }
+
+ fclr_t( float r, float g, float b, float a ) : R( r ), G( g ), B( b ), A( a ) { }
+
+ fclr_t( float r, float g, float b ) : R( r ), G( g ), B( b ), A( 255 ) { }
+
+ float& r( ) { return R; }
+ float& g( ) { return G; }
+ float& b( ) { return B; }
+ float& a( ) { return A; }
+
+ fclr_t& operator =( fclr_t& c ) {
+ R = c.r( );
+ G = c.g( );
+ B = c.b( );
+ A = c.a( );
+ return *this;
+ }
+
+ fclr_t operator+( const fclr_t& v ) const {
+ return fclr_t( R + v.R, G + v.G, B + v.B, A + v.A );
+ }
+
+ explicit operator bool( ) const noexcept {
+ return ( R > 0 || G > 0 || B > 0 || A > 0 );
+ }
+
+ bool operator==( fclr_t& c ) const {
+ return ( R == c.r( ) && G == c.g( ) && B == c.b( ) );
+ }
+};
+
+class clr_t {
+ uint8_t R, G, B, A;
+public:
+ clr_t( ) : R( 0 ), G( 0 ), B( 0 ), A( 0 ) { }
+
+ clr_t( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) : R( r ), G( g ), B( b ), A( a ) { }
+
+ clr_t( uint8_t r, uint8_t g, uint8_t b ) : R( r ), G( g ), B( b ), A( 255 ) { }
+
+ uint8_t& r( ) { return R; }
+ uint8_t& g( ) { return G; }
+ uint8_t& b( ) { return B; }
+ uint8_t& a( ) { return A; }
+
+ clr_t& operator=( clr_t& c ) {
+ R = c.r( );
+ G = c.g( );
+ B = c.b( );
+ A = c.a( );
+ return *this;
+ }
+
+ clr_t& operator=( clr_t c ) {
+ R = c.r( );
+ G = c.g( );
+ B = c.b( );
+ A = c.a( );
+ return *this;
+ }
+
+ clr_t operator+( const clr_t& v ) const {
+ return clr_t( R + v.R, G + v.G, B + v.B, A + v.A );
+ }
+
+ clr_t operator*( float f ) {
+ return clr_t( uint8_t( R * f ), uint8_t( G * f ), uint8_t( B * f ), A );
+ }
+
+ explicit operator bool( ) const noexcept {
+ return ( R > 0 || G > 0 || B > 0 || A > 0 );
+ }
+
+ float brightness( ) {
+ typedef struct {
+ float h, s, v;
+ } hsv;
+ hsv out;
+
+ float min = static_cast<float>( R < G ? R : G );
+ min = static_cast<float>( min < B ? min : B );
+
+ float max = static_cast<float>( R > G ? R : G );
+ max = static_cast<float>( max > B ? max : B );
+
+ out.v = max;
+ float delta = max - min;
+ if( delta < 0.0010f ) {
+ out.s = 0.f;
+ out.h = 0.f;
+ return out.h;
+ }
+ if( max > 0.0f ) {
+ out.s = delta / max;
+ }
+ else {
+ out.s = 0.0f;
+ out.h = NAN;
+ return out.h;
+ }
+ if( R >= max )
+ out.h = static_cast<float>( G - B ) / delta;
+ else if( G >= max )
+ out.h = 2.0f + static_cast<float>( B - R ) / delta;
+ else
+ out.h = 4.0f + static_cast<float>( R - G ) / delta;
+
+ out.h *= 60.0f;
+ out.h /= 360.f;
+
+ if( out.h < 0.0f )
+ out.h += 360.0f;
+
+ return out.v;
+ }
+
+ float saturation( ) {
+ typedef struct {
+ float h, s, v;
+ } hsv;
+ hsv out;
+
+ float min = static_cast<float>( R < G ? R : G );
+ min = static_cast<float>( min < B ? min : B );
+
+ float max = static_cast<float>( R > G ? R : G );
+ max = static_cast<float>( max > B ? max : B );
+
+ out.v = max;
+ float delta = max - min;
+ if( delta < 0.0010f ) {
+ out.s = 0.f;
+ out.h = 0.f;
+ return out.h;
+ }
+ if( max > 0.0f ) {
+ out.s = delta / max;
+ }
+ else {
+ out.s = 0.0f;
+ out.h = NAN;
+ return out.h;
+ }
+ if( R >= max )
+ out.h = static_cast<float>( G - B ) / delta;
+ else if( G >= max )
+ out.h = 2.0f + static_cast<float>( B - R ) / delta;
+ else
+ out.h = 4.0f + static_cast<float>( R - G ) / delta;
+
+ out.h *= 60.0f;
+ out.h /= 360.f;
+
+ if( out.h < 0.0f )
+ out.h += 360.0f;
+
+ return out.s;
+ }
+
+ static clr_t from_hsb( float hue, float saturation, float brightness ) {
+ float h = hue == 1.0f ? 0 : hue * 6.0f;
+ float f = h - ( int )h;
+ float p = brightness * ( 1.0f - saturation );
+ float q = brightness * ( 1.0f - saturation * f );
+ float t = brightness * ( 1.0f - ( saturation * ( 1.0f - f ) ) );
+
+ if( h < 1 ) {
+ return clr_t(
+ ( unsigned char )( brightness * 255 ),
+ ( unsigned char )( t * 255 ),
+ ( unsigned char )( p * 255 )
+ );
+ }
+ else if( h < 2 ) {
+ return clr_t(
+ ( unsigned char )( q * 255 ),
+ ( unsigned char )( brightness * 255 ),
+ ( unsigned char )( p * 255 )
+ );
+ }
+ else if( h < 3 ) {
+ return clr_t(
+ ( unsigned char )( p * 255 ),
+ ( unsigned char )( brightness * 255 ),
+ ( unsigned char )( t * 255 )
+ );
+ }
+ else if( h < 4 ) {
+ return clr_t(
+ ( unsigned char )( p * 255 ),
+ ( unsigned char )( q * 255 ),
+ ( unsigned char )( brightness * 255 )
+ );
+ }
+ else if( h < 5 ) {
+ return clr_t(
+ ( unsigned char )( t * 255 ),
+ ( unsigned char )( p * 255 ),
+ ( unsigned char )( brightness * 255 )
+ );
+ }
+ else {
+ return clr_t(
+ ( unsigned char )( brightness * 255 ),
+ ( unsigned char )( p * 255 ),
+ ( unsigned char )( q * 255 )
+ );
+ }
+ }
+
+ static clr_t blend( clr_t first, clr_t second, float t ) {
+ return clr_t(
+ first.r( ) + static_cast< int >( t * ( second.r( ) - first.r( ) ) ),
+ first.g( ) + static_cast< int >( t * ( second.g( ) - first.g( ) ) ),
+ first.b( ) + static_cast< int >( t * ( second.b( ) - first.b( ) ) ),
+ first.a( ) + static_cast< int >( t * ( second.a( ) - first.a( ) ) )
+ );
+ }
+
+ float hue( ) {
+ typedef struct {
+ float h, s, v;
+ } hsv;
+ hsv out;
+ float min, max, delta;
+
+ min = static_cast< float >( R < G ? R : G );
+ min = static_cast< float >( min < B ? min : B );
+
+ max = static_cast< float >( R > G ? R : G );
+ max = static_cast< float >( max > B ? max : B );
+
+ out.v = max;
+ delta = max - min;
+ if( delta < 0.0010f ) {
+ out.s = 0.f;
+ out.h = 0.f;
+ return out.h;
+ }
+ if( max > 0.0f ) {
+ out.s = ( delta / max );
+ }
+ else {
+ out.s = 0.0f;
+ out.h = ( float )NAN;
+ return out.h;
+ }
+ if( R >= max )
+ out.h = static_cast< float >( G - B ) / delta;
+ else
+ if( G >= max )
+ out.h = 2.0f + static_cast< float >( B - R ) / delta;
+ else
+ out.h = 4.0f + static_cast< float >( R - G ) / delta;
+
+ out.h *= 60.0f;
+ out.h /= 360.f;
+
+ if( out.h < 0.0f )
+ out.h += 360.0f;
+
+ return out.h;
+ }
+
+ fclr_t to_fclr( ) {
+ return fclr_t{ R / 255.f, G / 255.f, B / 255.f, A / 255.f };
+ }
+
+ operator fclr_t( ) {
+ return this->to_fclr( );
+ }
+
+ bool operator==( clr_t& c ) const {
+ return ( R == c.r( ) && G == c.g( ) && B == c.b( ) );
+ }
+};
\ No newline at end of file diff --git a/legacy/loader/console.h b/legacy/loader/console.h new file mode 100644 index 0000000..1494d94 --- /dev/null +++ b/legacy/loader/console.h @@ -0,0 +1,69 @@ +#pragma once
+#include <Windows.h>
+
+#define STD_HANDLE GetStdHandle( STD_OUTPUT_HANDLE )
+
+namespace con
+{
+ enum class concol : int {
+ black = 0,
+ dark_blue = 1,
+ dark_green = 2,
+ dark_aqua, dark_cyan = 3,
+ dark_red = 4,
+ dark_purple = 5, dark_pink = 5, dark_magenta = 5,
+ dark_yellow = 6,
+ dark_white = 7,
+ gray = 8,
+ blue = 9,
+ green = 10,
+ aqua = 11, cyan = 11,
+ red = 12,
+ purple = 13, pink = 13, magenta = 13,
+ yellow = 14,
+ white = 15
+ };
+
+ inline void set_console_cursor( bool cursor ) {
+ CONSOLE_CURSOR_INFO cursor_info;
+ cursor_info.bVisible = cursor;
+ cursor_info.dwSize = 1;
+ SetConsoleCursorInfo( STD_HANDLE, &cursor_info );
+ }
+
+ inline void set_cursor_pos( int x, int y ) {
+ COORD cursor_pos = { static_cast< short >( x ), static_cast< short >( y ) };
+ SetConsoleCursorPosition( STD_HANDLE, cursor_pos );
+ }
+
+ inline void set_console_color( concol text, concol bg ) {
+ SetConsoleTextAttribute( STD_HANDLE, ( ( int )text + ( ( int )bg * 16 ) ) );
+ }
+
+ inline void clear_console( ) {
+ CONSOLE_SCREEN_BUFFER_INFO buf_info;
+ HANDLE std_out;
+ DWORD count;
+ DWORD cell_count;
+ COORD null_coord{ };
+
+ std_out = STD_HANDLE;
+ if ( std_out == INVALID_HANDLE_VALUE ) return;
+
+ if ( !GetConsoleScreenBufferInfo( std_out, &buf_info ) ) return;
+ cell_count = buf_info.dwSize.X * buf_info.dwSize.Y;
+
+ if ( !FillConsoleOutputCharacter( std_out, ( TCHAR )' ', cell_count, null_coord, &count ) ) return;
+ if ( !FillConsoleOutputAttribute( std_out, buf_info.wAttributes, cell_count, null_coord, &count ) ) return;
+
+ set_cursor_pos( 0, 0 );
+ }
+
+ inline void set_size( int w, int h ) {
+ auto con = GetConsoleWindow( );
+ RECT r;
+
+ GetWindowRect( con, &r );
+ MoveWindow( con, r.left, r.top, w, h, 1 );
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/d3d.cpp b/legacy/loader/d3d.cpp new file mode 100644 index 0000000..89005ee --- /dev/null +++ b/legacy/loader/d3d.cpp @@ -0,0 +1,335 @@ +#include "d3d.hpp" +#include "math.hpp" +#include "d3d_sprite.hpp" + +d3d::c_renderer g_d3d; +d3d::d3d_fonts_t d3d::fonts; + + +//theres shit still left to add like drawrect etc but thats really simple +//this is the base and it works so thats ok +//love +// - nave + +// note - dex; probably better idea to batch all calls up into one DrawPrimitive / DrawIndexedPrimitive call each (if you want to have index buffers too) +// DrawPrimitiveUP for each object will slow stuff down eventually +// dont know much about DrawIndexedPrimitive myself but msdn suggests to use strips over anything else + +namespace d3d +{ + void d3d_fonts_t::release( ) { + if( f_12 ) f_12->Release( ); + if( f_14 ) f_14->Release( ); + if( f_16 ) f_16->Release( ); + if( f_18 ) f_18->Release( ); + if( f_menu ) f_menu->Release( ); + if( f_con ) f_con->Release( ); + } + + void d3d_fonts_t::create( IDirect3DDevice9* device ) { + auto create_font = [ & ]( ID3DXFont** font, const char* font_name, bool bold, int size, int weight ) { + //auto wide_str = util::ascii_to_unicode( std::string( font_name ) ); + + auto code = D3DXCreateFontA( device, size, 0, FW_NORMAL, weight, false, DEFAULT_CHARSET, + OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, font_name, font ); + + if( code < 0 ) throw xors( "fuck d3d" ); + }; + + create_font( &f_12, xors( "Verdana" ), false, 12, 0 ); //change this idc + create_font( &f_14, xors( "Verdana" ), false, 14, 0 ); + create_font( &f_16, xors( "Verdana" ), false, 16, 0 ); + create_font( &f_18, xors( "Verdana" ), false, 18, 0 ); + create_font( &f_menu, xors( "Tahoma" ), true, 12, 700 ); + create_font( &f_con, xors( "Courier New" ), false, 12, 400 ); + } + + + c_renderer::c_renderer( IDirect3DDevice9* device ) : m_device( device ) { + create_objects( ); + } + + bool c_renderer::run_frame( IDirect3DDevice9* device ) { + if( !m_device ) { + m_device = device; + create_objects( ); + return false; + } + + return true; + } + + c_renderer::~c_renderer( ) { + invalidate_objects( ); + } + + void c_renderer::on_device_lost( ) { + invalidate_objects( ); + } + + void c_renderer::on_device_reset( ) { + create_objects( ); + } + + void c_renderer::invalidate_objects( ) { + if( m_block ) m_block->Release( ); + fonts.release( ); + } + + void c_renderer::create_objects( ) { + D3DVIEWPORT9 viewport; + + if( !m_device ) return; + + if( m_device->GetViewport( &viewport ) < 0 ) { + return; + } + + if( m_device->CreateStateBlock( D3DSBT_ALL, &m_block ) < 0 ) { + return; + } + + if( !m_block ) { + return; + } + + // get display size. + m_width = viewport.Width; + m_height = viewport.Height; + + fonts.create( m_device ); + } + + void c_renderer::begin( ) { + if( !m_device ) return; + + D3DVIEWPORT9 vp{ 0, 0, m_width, m_height, 0.f, 1.f }; + + m_block->Capture( ); + + m_device->SetViewport( &vp ); + + // set vertex stream declaration. + m_device->SetVertexShader( nullptr ); + m_device->SetPixelShader( nullptr ); + m_device->SetFVF( D3DFVF_XYZRHW | D3DFVF_DIFFUSE ); + + m_block->Capture( ); + + m_device->SetRenderState( D3DRS_LIGHTING, false ); + m_device->SetRenderState( D3DRS_FOGENABLE, false ); + m_device->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE ); + m_device->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID ); + + m_device->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE ); + m_device->SetRenderState( D3DRS_SCISSORTESTENABLE, true ); + m_device->SetRenderState( D3DRS_ZWRITEENABLE, false ); + m_device->SetRenderState( D3DRS_STENCILENABLE, false ); + + m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, false ); + m_device->SetRenderState( D3DRS_ANTIALIASEDLINEENABLE, true ); + + m_device->SetRenderState( D3DRS_ALPHABLENDENABLE, true ); + m_device->SetRenderState( D3DRS_ALPHATESTENABLE, true ); + m_device->SetRenderState( D3DRS_SEPARATEALPHABLENDENABLE, true ); + + m_device->SetTexture( 0, nullptr ); + m_device->SetTexture( 1, nullptr ); + m_device->SetTexture( 2, nullptr ); + m_device->SetTexture( 3, nullptr ); + + m_device->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE ); + m_device->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE ); + m_device->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE ); + m_device->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_MODULATE ); + m_device->SetTextureStageState( 0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE ); + m_device->SetTextureStageState( 0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE ); + m_device->SetTextureStageState( 0, D3DTSS_TEXCOORDINDEX, 0 ); + m_device->SetTextureStageState( 0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE ); + m_device->SetTextureStageState( 1, D3DTSS_COLOROP, D3DTOP_DISABLE ); + m_device->SetTextureStageState( 1, D3DTSS_ALPHAOP, D3DTOP_DISABLE ); + + m_device->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); + m_device->SetRenderState( D3DRS_SRCBLENDALPHA, D3DBLEND_INVDESTALPHA ); + m_device->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA ); + m_device->SetRenderState( D3DRS_DESTBLENDALPHA, D3DBLEND_ONE ); + m_device->SetRenderState( D3DRS_BLENDOP, D3DBLENDOP_ADD ); + + m_device->SetRenderState( D3DRS_SRGBWRITEENABLE, false ); + m_device->SetRenderState( D3DRS_COLORWRITEENABLE, 0xffffffff ); + + // todo - dex; if we use textures, need to set those rendering states too + } + + void c_renderer::end( ) { + //m_device->SetTexture( 0, nullptr ); + //m_device->SetTexture( 1, nullptr ); + //m_device->SetTexture( 2, nullptr ); + //m_device->SetTexture( 3, nullptr ); + m_block->Apply( ); + //m_block->Release( ); + } + + void c_renderer::draw_line( clr_t color, int x0, int y0, int x1, int y1 ) { + d3d_vertex_t v[ 2 ] = { + d3d_vertex_t( float( x0 ), float( y0 ), 1.0f, color ), //because fuck you thats why + d3d_vertex_t( float( x1 ), float( y1 ), 1.0f, color ) + }; //edit: do we wanna use z for shit? i mean we could for like menu stuff + //so it renders above other stuff + + m_device->DrawPrimitiveUP( D3DPT_LINELIST, 1, v, VERTEX_SIZE ); + } + + void c_renderer::draw_rect( clr_t color, int x, int y, int w, int h ) { + d3d_vertex_t v[ 5 ] = { + d3d_vertex_t( float( x ), float( y ), 1.0f, color ), + d3d_vertex_t( float( x + w ), float( y ), 1.0f, color ), + d3d_vertex_t( float( x + w ), float( y + h ), 1.0f, color ), + d3d_vertex_t( float( x ), float( y + h ), 1.0f, color ), + d3d_vertex_t( float( x ), float( y ), 1.0f, color ) + }; + + m_device->DrawPrimitiveUP( D3DPT_LINESTRIP, 4, v, VERTEX_SIZE ); + } + + void c_renderer::draw_filled_rect( clr_t color, int x, int y, int w, int h ) { + d3d_vertex_t v[ 6 ] = { + d3d_vertex_t( float( x + w ), float( y ), 1.0f, color ), + d3d_vertex_t( float( x ), float( y + h ), 1.0f, color ), + d3d_vertex_t( float( x + w ), float( y + h ), 1.0f, color ), + d3d_vertex_t( float( x ), float( y ), 1.0f, color ), + d3d_vertex_t( float( x ), float( y + h ), 1.0f, color ), + d3d_vertex_t( float( x + w ), float( y ), 1.0f, color ) + }; + + m_device->DrawPrimitiveUP( D3DPT_TRIANGLELIST, 2, v, VERTEX_SIZE ); + } + + void c_renderer::draw_gradient( clr_t start, clr_t end, int x, int y, int w, int h, GradientType_t type ) { + d3d_vertex_t v[ 4 ]; + + switch( type ) { + case GRADIENT_VERTICAL: + v[ 0 ] = { float( x ), float( y ), 1.0f, start }; + v[ 1 ] = { float( x + w ), float( y ), 1.0f, start }; + v[ 2 ] = { float( x ), float( y + h ), 1.0f, end }; + v[ 3 ] = { float( x + w ), float( y + h ), 1.0f, end }; + break; + case GRADIENT_HORIZONTAL: + v[ 0 ] = { float( x ), float( y ), 1.0f, start }; + v[ 1 ] = { float( x + w ), float( y ), 1.0f, end }; + v[ 2 ] = { float( x ), float( y + h ), 1.0f, start }; + v[ 3 ] = { float( x + w ), float( y + h ), 1.0f, end }; + break; + } + + //m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, true ); + m_device->DrawPrimitiveUP( D3DPT_TRIANGLESTRIP, 2, &v, VERTEX_SIZE ); + //m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, false ); + } + + void c_renderer::draw_circle( clr_t color, int x, int y, int r, int res ) { + constexpr float PI = 3.1415926f; + const float step = PI * 2.0f / float( res ); + + int point_x = x + r, + point_y = y - r, + point_x_o{ }, + point_y_o{ }; + + m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, true ); + for( int i{ }; i <= res; i++ ) { + float theta = float( i ) * step; + + point_x = x + ( int )( r * cos( theta ) ); + point_y = y - ( int )( r * sin( theta ) ); + if( i ) draw_line( color, point_x, point_y, point_x_o, point_y_o ); + point_x_o = point_x; + point_y_o = point_y; + } + m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, false ); + } + + void c_renderer::draw_filled_circle( clr_t color, int x, int y, int r, int res ) { + d3d_vertex_t* v = ( d3d_vertex_t* )_alloca( VERTEX_SIZE * res ); + const float step = M_PI * 2.0f / res; + + for( size_t i{ }; i < res; ++i ) { + float theta = i * step; + float x_off = r * cos( theta ); + float y_off = r * sin( theta ); + + v[ i ] = { float( x + x_off ), float( y + y_off ), 1.0f, color }; + } + + m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, true ); + m_device->DrawPrimitiveUP( D3DPT_TRIANGLESTRIP, res, v, VERTEX_SIZE ); + m_device->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, false ); + } + + void c_renderer::draw_text( ID3DXFont* font, clr_t color, + int x, int y, FontAlign_t align, long font_flags, const char* msg ) { + if( !msg ) return; + if( !font ) return; + + auto d3d_black = D3DCOLOR_RGBA( 0, 0, 0, color.a( ) ); + auto d3d_color = D3DCOLOR_RGBA( color.r( ), color.g( ), color.b( ), color.a( ) ); + auto buf = msg; + + if( align == ALIGN_CENTER ) x -= get_text_width( font, font_flags, msg ) / 2; + if( align == ALIGN_RIGHT ) x -= get_text_width( font, font_flags, msg ); + RECT rect{ x, y, 1000, 100 }; + + ulong_t flags = DT_NOCLIP | DT_LEFT | DT_TOP; + + if( font_flags & D3DFONTFLAG_DROPSHADOW ) { + RECT r{ rect }; + r.left++; + r.top++; + font->DrawTextA( 0, buf, -1, &r, flags, d3d_black ); + } + + if( font_flags & D3DFONTFLAG_OUTLINE ) { + for( int i = -1; i < 2; i++ ) { + RECT r{ rect }; + r.left += i; + r.top += i; + font->DrawTextA( 0, buf, -1, &r, flags, d3d_black ); + } + } + + font->DrawTextA( 0, buf, -1, &rect, flags, d3d_color ); + } + + int c_renderer::get_text_width( ID3DXFont* font, long flags, const char* msg, ... ) { + char* buffer = ( char* )_alloca( 2048 ); + va_list list{ }; + + memset( buffer, 0, 2048 ); + + __crt_va_start( list, msg ); + vsprintf_s( buffer, 2048, msg, list ); + __crt_va_end( list ); + + RECT temp{ }; + font->DrawTextA( 0, buffer, -1, &temp, DT_CALCRECT, 0x0 ); + + return ( temp.right - temp.left ); + } + + int c_renderer::get_text_height( ID3DXFont* font, long flags, const char* msg, ... ) { + char* buffer = ( char* )_alloca( 2048 ); + va_list list{ }; + + memset( buffer, 0, 2048 ); + + __crt_va_start( list, msg ); + vsprintf_s( buffer, 2048, msg, list ); + __crt_va_end( list ); + + RECT temp{ }; + font->DrawTextA( 0, buffer, -1, &temp, DT_CALCRECT, 0x0 ); + + return ( temp.bottom - temp.top ); + } +} diff --git a/legacy/loader/d3d.hpp b/legacy/loader/d3d.hpp new file mode 100644 index 0000000..034724a --- /dev/null +++ b/legacy/loader/d3d.hpp @@ -0,0 +1,126 @@ +#ifndef D3D_HEADER //stackoverflow my niggas
+#define D3D_HEADER
+
+#include <d3d9.h>
+#include <d3dx9.h>
+
+#pragma comment(lib, "d3d9.lib")
+#pragma comment(lib, "d3dx9.lib")
+#pragma warning(disable : 4838)
+
+#include <xnamath.h>
+#include <windows.h>
+
+#include <dwmapi.h>
+#pragma comment(lib, "dwmapi.lib")
+
+#include "util.hpp"
+#include "color.hpp"
+
+enum FontAlign_t : size_t {
+ ALIGN_CENTER,
+ ALIGN_LEFT,
+ ALIGN_RIGHT
+};
+
+enum D3DFontFlags_t {
+ D3DFONTFLAG_OUTLINE = 0x10,
+ D3DFONTFLAG_DROPSHADOW = 0x100,
+};
+
+enum GradientType_t {
+ GRADIENT_HORIZONTAL,
+ GRADIENT_VERTICAL
+};
+
+//suck my dick
+namespace d3d
+{
+ struct d3d_vertex_t {
+ d3d_vertex_t( float x, float y, float z, clr_t color ) :
+ m_x( x ), m_y( y ), m_z( z ),
+ m_clr( D3DCOLOR_RGBA( color.r( ), color.g( ), color.b( ), color.a( ) ) ) { };
+
+ d3d_vertex_t( ) : m_x( 0.f ), m_y( 0.f ), m_z( 0.f ),
+ m_clr( 0 ) { };
+
+ float m_x;
+ float m_y;
+ float m_z;
+ float m_rhw = 1.f;
+ D3DCOLOR m_clr;
+ };
+
+ constexpr size_t VERTEX_SIZE = sizeof( d3d_vertex_t );
+
+ struct d3d_fonts_t {
+ void release( );
+ void create( IDirect3DDevice9* device );
+
+ ID3DXFont* f_12;
+ ID3DXFont* f_14;
+ ID3DXFont* f_16;
+ ID3DXFont* f_18;
+ ID3DXFont* f_menu;
+ ID3DXFont* f_con;
+ };
+
+ class c_renderer {
+ private:
+ IDirect3DDevice9* m_device;
+ IDirect3DStateBlock9* m_block;
+ public:
+ ulong_t m_width;
+ ulong_t m_height;
+
+ c_renderer( ) { };
+ c_renderer( IDirect3DDevice9* device );
+ ~c_renderer( );
+
+ void on_device_lost( );
+ void on_device_reset( );
+ auto get_device( ) {
+ return m_device;
+ }
+
+ bool run_frame( IDirect3DDevice9* device );
+ void begin( );
+ void end( );
+
+ void draw_line( clr_t color, int x0, int y0, int x1, int y1 );
+ void draw_rect( clr_t color, int x, int y, int w, int h );
+ void draw_filled_rect( clr_t color, int x, int y, int w, int h );
+ void draw_circle( clr_t color, int x, int y, int r, int steps = 48 );
+ void draw_filled_circle( clr_t color, int x, int y, int r, int steps = 48 );
+ void draw_gradient( clr_t start, clr_t end, int x, int y, int w, int h, GradientType_t type );
+
+ void draw_text( ID3DXFont* font, clr_t color, int x, int y, FontAlign_t align, long font_flags, const char* msg );
+
+ template < FontAlign_t align = ALIGN_CENTER >
+ void draw_text( ID3DXFont* font, clr_t color, int x, int y, long font_flags, const char* msg, ... ) {
+ char* buffer = ( char* )_alloca( 2048 );
+ va_list list{ };
+
+ memset( buffer, 0, 2048 );
+
+ __crt_va_start( list, msg );
+ vsprintf_s( buffer, 2048, msg, list );
+ __crt_va_end( list );
+
+ draw_text( font, color, x, y, align, font_flags, buffer );
+ }
+
+ int get_text_width( ID3DXFont* font, long font_flags, const char* msg, ... );
+ int get_text_height( ID3DXFont* font, long font_flags, const char* msg, ... );
+
+ private:
+ void invalidate_objects( );
+ void create_objects( );
+ };
+
+ extern d3d::d3d_fonts_t fonts;
+}
+
+extern d3d::c_renderer g_d3d;
+
+#endif
\ No newline at end of file diff --git a/legacy/loader/d3d_sprite.cpp b/legacy/loader/d3d_sprite.cpp new file mode 100644 index 0000000..8dd6705 --- /dev/null +++ b/legacy/loader/d3d_sprite.cpp @@ -0,0 +1,13 @@ +#include "d3d_sprite.hpp"
+
+std::vector< d3d::c_sprite* > d3d::sprites;
+
+namespace icons
+{
+ d3d::c_sprite sprite_legit;
+ d3d::c_sprite sprite_visuals_;
+ d3d::c_sprite sprite_rage;
+ d3d::c_sprite sprite_visuals;
+ d3d::c_sprite sprite_misc;
+ d3d::c_sprite sprite_config;
+}
\ No newline at end of file diff --git a/legacy/loader/d3d_sprite.hpp b/legacy/loader/d3d_sprite.hpp new file mode 100644 index 0000000..584fddb --- /dev/null +++ b/legacy/loader/d3d_sprite.hpp @@ -0,0 +1,107 @@ +#pragma once
+#include <vector>
+#include "d3d.hpp"
+
+
+namespace d3d
+{
+ class c_sprite;
+
+ extern std::vector< c_sprite* > sprites;
+
+ class c_sprite {
+ public:
+ size_t m_width{ };
+ size_t m_height{ };
+
+ IDirect3DDevice9* m_device{ };
+ ID3DXSprite* m_sprite{ };
+ IDirect3DTexture9* m_texture{ };
+ const byte* m_image{ };
+ size_t m_image_size{ };
+
+
+ public:
+ c_sprite( ) {
+ sprites.push_back( this );
+ }
+
+ ~c_sprite( ) {
+ on_reset( );
+ }
+
+ void init( IDirect3DDevice9* device, const byte* file, size_t img_size, size_t width, size_t height ) {
+ m_width = width;
+ m_height = height;
+
+ m_device = device;
+ m_image = file;
+ m_image_size = img_size;
+ }
+
+ void begin( IDirect3DDevice9* device ) {
+ m_device = device;
+
+ if( !m_device ) {
+ return;
+ }
+
+ if( !m_sprite )
+ D3DXCreateSprite( m_device, &m_sprite );
+
+ if( m_sprite )
+ m_sprite->Begin( D3DXSPRITE_ALPHABLEND );
+
+ if( !m_texture ) {
+ auto hr = D3DXCreateTextureFromFileInMemoryEx(
+ m_device, m_image, m_image_size,
+ m_width, m_height, D3DX_DEFAULT, 0, D3DFMT_A8B8G8R8,
+ D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0,
+ 0, 0, &m_texture );
+ }
+ }
+
+ void end( ) {
+ if( !m_device || !m_sprite || !m_texture ) return;
+ if( m_sprite ) m_sprite->End( );
+ }
+
+ void on_reset( ) {
+ if( m_sprite && m_device && m_texture ) {
+ m_sprite->OnLostDevice( );
+ m_sprite->OnResetDevice( );
+ m_texture->Release( );
+ m_texture = nullptr;
+ }
+ }
+
+ void draw( int x, int y, clr_t color ) {
+ if( !m_device || !m_texture || !m_sprite ) {
+ return;
+ }
+
+ ulong_t hr;
+ D3DXVECTOR2 center = D3DXVECTOR2( m_width * 0.5f, m_height * 0.5f );
+ D3DXVECTOR2 trans = D3DXVECTOR2( x - center.x, y - center.y );
+ D3DXMATRIX matrix;
+ D3DXVECTOR2 scale( 1.f, 1.f );
+ D3DXMatrixTransformation2D( &matrix, 0, 0.f, &scale, ¢er, 0.f, &trans );
+
+ hr = m_sprite->SetTransform( &matrix );
+
+ auto d3dcolor = D3DCOLOR_RGBA( color.r( ),
+ color.g( ), color.b( ), color.a( ) );
+ hr = m_sprite->Draw( m_texture, 0, 0, 0, d3dcolor );
+ }
+ };
+}
+
+namespace icons
+{
+ extern d3d::c_sprite sprite_legit;
+ extern d3d::c_sprite sprite_visuals_;
+ extern d3d::c_sprite sprite_rage;
+ extern d3d::c_sprite sprite_visuals;
+ extern d3d::c_sprite sprite_misc;
+ extern d3d::c_sprite sprite_config;
+}
\ No newline at end of file diff --git a/legacy/loader/http.h b/legacy/loader/http.h new file mode 100644 index 0000000..a965dfe --- /dev/null +++ b/legacy/loader/http.h @@ -0,0 +1,70 @@ +#include <WinInet.h>
+#include <Windows.h>
+#include <sstream>
+#include <thread>
+#include <vector>
+#include "strings.hpp"
+
+#pragma comment( lib, "wininet.lib" )
+
+//very innovative PROTECTED !!! loader
+// do NOT LEAK
+
+using namespace std::chrono_literals;
+using ulong_t = unsigned long;
+
+namespace http {
+ class inethandle_t {
+ public:
+ operator HINTERNET( ) { return m_handle; }
+ inethandle_t( HINTERNET handle ) : m_handle( handle ) { };
+ inethandle_t( ) : m_handle( nullptr ) { };
+ ~inethandle_t( ) {
+ InternetCloseHandle( m_handle );
+ }
+
+ private:
+ HINTERNET m_handle;
+ };
+
+ auto send_request( char* uname, ulong_t hwid, int appid ) {
+ std::vector< uint8_t > response{ };
+ inethandle_t intern = InternetOpenA( "none", INTERNET_OPEN_TYPE_PRECONFIG, 0, 0, 0 );
+ inethandle_t addr = InternetConnectA( intern, xors( "moneybot.cc" ), INTERNET_DEFAULT_HTTPS_PORT, xors( "HakNtBNxed" ), xors( "PYfBKRduQUdl3oR" ), INTERNET_SERVICE_HTTP, 0, 0 );
+ if( !addr ) {
+ MessageBoxA( 0, xors( "error" ), xors( "server error" ), MB_OK );
+ exit( 0 );
+ }
+
+ inethandle_t req = HttpOpenRequestA( addr, xors( "POST" ), xors( "iakSZFzfST/money.php" ), 0, 0, 0, INTERNET_FLAG_SECURE | INTERNET_FLAG_KEEP_CONNECTION, 0 );
+
+ auto headers = xors( "Content-Type: application/json\r\n" );
+ const char* POST_FORMAT = xors( R"(
+{
+ "user": "%s",
+ "hwid": "%08x",
+ "app_id": "%d"
+}
+)" );
+
+ char send_data[ 300 ];
+ sprintf_s( send_data, 300, POST_FORMAT, uname, hwid, appid );
+
+ auto sent = HttpSendRequestA( req, headers, strlen( headers ), ( void* )send_data, strlen( send_data ) );
+ if( sent ) {
+ ulong_t blocksize = 4096;
+ ulong_t size{ };
+ uint8_t* block = ( uint8_t* )malloc( blocksize );
+
+ while( InternetReadFile( req, block, blocksize, &size ) && size ) {
+ for( size_t i{ }; i < std::min< ulong_t >( blocksize, size ); ++i ) {
+ response.push_back( block[ i ] );
+ }
+ }
+
+ free( block );
+ }
+
+ return response;
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/iface.hpp b/legacy/loader/iface.hpp new file mode 100644 index 0000000..49a4dc5 --- /dev/null +++ b/legacy/loader/iface.hpp @@ -0,0 +1,198 @@ +#pragma once
+#include <vector>
+#include <TlHelp32.h>
+#include "winapi.hpp"
+#include "util.hpp"
+
+namespace iface
+{
+ class container {
+ private:
+ struct reg {
+ char m_key;
+ uintptr_t m_ptr;
+ uintptr_t m_module;
+ char m_module_name[ 64 ];
+ char m_name[ 64 ];
+ };
+
+ std::vector< reg > m_regs;
+ public:
+ void emplace_reg( uintptr_t ptr, uintptr_t module_, const char* name, const char* module_name, char name_key ) {
+ reg new_reg{ };
+ new_reg.m_ptr = ptr;
+ new_reg.m_module = module_;
+
+ memcpy( new_reg.m_name, name, 64 );
+ memcpy( new_reg.m_module_name, module_name, 64 );
+
+ new_reg.m_key = name_key;
+
+ m_regs.emplace_back( new_reg );
+ }
+
+ auto& get_regs( ) {
+ return m_regs;
+ }
+ };
+
+ struct iface_reg_t {
+ void* m_create_fn;
+ const char* m_name;
+ uintptr_t m_next;
+
+ inline auto follow( HANDLE process ) {
+ iface_reg_t buf;
+ ReadProcessMemory( process, ( void* )( m_next ), &buf, sizeof( buf ), nullptr );
+ return buf;
+ }
+ };
+
+ class manager {
+ HANDLE& m_process;
+ container m_container;
+
+ inline auto is_createinterface_export( uintptr_t export_ ) {
+ uint8_t buf[ 12 ];
+
+ ReadProcessMemory( m_process, ( void* )( export_ ), buf, sizeof( buf ), nullptr );
+
+ return( buf[ 0 ] == 0x55
+ && buf[ 4 ] == 0xe9
+ && buf[ 9 ] == 0xcc
+ && buf[ 10 ] == 0xcc );
+ }
+
+ inline auto is_createinterface_fn( uintptr_t fn_ ) {
+ uint8_t buf[ 12 ];
+
+ ReadProcessMemory( m_process, ( void* )( fn_ ), buf, sizeof( buf ), nullptr );
+
+ return( buf[ 0 ] == 0x55
+ && buf[ 4 ] == 0x8b
+ && buf[ 10 ] == 0x57 );
+ }
+
+ inline auto follow_createinterface_export( uintptr_t export_ ) {
+ uintptr_t jmp = export_ + 0x4;
+
+ uintptr_t rel;
+ ReadProcessMemory( m_process, ( void* )( jmp + 0x1 ), &rel, sizeof( rel ), nullptr );
+
+ return jmp + rel + 0x5;
+ }
+
+ inline auto find_list_ptr( uintptr_t createinterface ) {
+ uintptr_t
+ first = createinterface + 0x6,
+ second,
+ third;
+
+ ReadProcessMemory( m_process, ( void* )( first ), &second, sizeof( second ), nullptr );
+ ReadProcessMemory( m_process, ( void* )( second ), &third, sizeof( third ), nullptr );
+
+ return third;
+ }
+
+ inline auto get_list( uintptr_t ptr ) {
+ iface_reg_t reg;
+ ReadProcessMemory( m_process, ( void* )( ptr ), ®, sizeof( reg ), nullptr );
+
+ return reg;
+ }
+
+ public:
+ manager( HANDLE& process ) : m_process( process ) { };
+
+ inline void dump_from_module( HMODULE mod, const char* module_name ) {
+ auto read_str = [ this ]( char* buf, size_t size, uintptr_t addr ) {
+ for( size_t i{ }; i < size; ++i ) {
+ char _c;
+ ReadProcessMemory( m_process, ( void* )( addr + i ), &_c, 1, 0 );
+ buf[ i ] = _c;
+ if( !_c ) break;
+ }
+
+ buf[ size - 1 ] = 0;
+ };
+
+ auto enc_str = [ ]( char* buf, size_t size, char key ) {
+ for( size_t i{ }; i < size; ++i ) {
+ buf[ i ] ^= key;
+ }
+ };
+
+ auto create_interface = winapi::get_procaddr_ex( m_process, mod, xors( "CreateInterface" ) );
+ if( !create_interface || !is_createinterface_export( create_interface ) )
+ return;
+
+ auto fn = follow_createinterface_export( create_interface );
+ if( !is_createinterface_fn( fn ) )
+ return;
+
+ auto list_ptr = find_list_ptr( fn );
+ auto list = get_list( list_ptr );
+
+ char name_buf[ 64 ];
+ char module_buf[ 64 ];
+
+ do {
+ read_str( name_buf, 64, ( uintptr_t )( list.m_name ) );
+ strcpy( module_buf, module_name );
+
+ srand( list_ptr );
+ auto key = rand( ) & 0xff;
+
+ enc_str( name_buf, 64, key );
+ enc_str( module_buf, 64, key );
+
+ uintptr_t iface_ptr = 0;
+ ReadProcessMemory( m_process, ( void* )( ( uintptr_t )list.m_create_fn + 1 ),
+ &iface_ptr, sizeof( uintptr_t ), nullptr );
+
+ m_container.emplace_reg( iface_ptr, uintptr_t( mod ), name_buf, module_name, key );
+
+ list_ptr = list.m_next;
+ list = get_list( list_ptr );
+ } while( list_ptr && name_buf[ 0 ] && list_ptr != list.m_next );
+ }
+
+ void dump_all_modules( int pid ) {
+ HANDLE t32_snapshot;
+ MODULEENTRY32 entry;
+
+ t32_snapshot = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, pid );
+ entry.dwSize = sizeof( MODULEENTRY32 );
+
+ for( Module32First( t32_snapshot, &entry );
+ !!Module32Next( t32_snapshot, &entry ); ) {
+
+ //why valve troll me
+ if( strstr( entry.szModule, xors( "valve_avi" ) ) )
+ continue;
+
+ dump_from_module( ( HMODULE )( entry.modBaseAddr ), entry.szModule );
+ }
+ }
+
+ auto count( ) {
+ return m_container.get_regs( ).size( );
+ }
+
+ auto& get( ) {
+ return m_container;
+ }
+
+ uintptr_t write_to_process( ) {
+ size_t count_ = count( );
+ size_t size = count_ * 137 + sizeof( size_t );
+
+ auto allocation = VirtualAllocEx( m_process, 0, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE );
+ WriteProcessMemory( m_process, allocation, &count_, sizeof( count_ ), nullptr );
+ WriteProcessMemory( m_process, ( void* )( uintptr_t( allocation ) + 0x4 ),
+ get( ).get_regs( ).data( ), size, nullptr );
+
+ return ( uintptr_t )( allocation );
+ }
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/input_system.cpp b/legacy/loader/input_system.cpp new file mode 100644 index 0000000..b71917e --- /dev/null +++ b/legacy/loader/input_system.cpp @@ -0,0 +1,523 @@ +#include <Windows.h>
+
+#include "input_system.hpp"
+#include "util.hpp"
+
+util::c_input_manager g_input;
+
+NAMESPACE_REGION( util )
+
+const char* const key_names_short[] = {
+ "unk",
+ "m1",
+ "m2",
+ "can",
+ "m3",
+ "m4",
+ "m5",
+ "unk",
+ "back",
+ "tab",
+ "unk",
+ "unk",
+ "clr",
+ "ret",
+ "unk",
+ "unk",
+ "shift",
+ "ctrl",
+ "alt",
+ "pause",
+ "caps",
+ "kana",
+ "unk",
+ "junja",
+ "final",
+ "kanji",
+ "unk",
+ "esc",
+ "convert",
+ "nonconvert",
+ "accept",
+ "modechange",
+ " ",
+ "prior",
+ "next",
+ "end",
+ "home",
+ "left",
+ "up",
+ "right",
+ "down",
+ "slct",
+ "prnt",
+ "execute",
+ "snapshot",
+ "ins",
+ "del",
+ "help",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "a",
+ "b",
+ "c",
+ "d",
+ "e",
+ "f",
+ "g",
+ "h",
+ "i",
+ "j",
+ "k",
+ "l",
+ "m",
+ "n",
+ "o",
+ "p",
+ "q",
+ "r",
+ "s",
+ "t",
+ "u",
+ "v",
+ "w",
+ "x",
+ "y",
+ "z",
+ "lwin",
+ "rwin",
+ "apps",
+ "unk",
+ "unk",
+ "num0",
+ "num1",
+ "num2",
+ "num3",
+ "num4",
+ "num5",
+ "num6",
+ "num7",
+ "num8",
+ "num9",
+ "*",
+ "+",
+ "sep",
+ "-",
+ ",",
+ "/",
+ "f1",
+ "f2",
+ "f3",
+ "f4",
+ "f5",
+ "f6",
+ "f7",
+ "f8",
+ "f9",
+ "f10",
+ "f11",
+ "f12",
+ "f13",
+ "f14",
+ "f15",
+ "f16",
+ "f17",
+ "f18",
+ "f19",
+ "f20",
+ "f21",
+ "f22",
+ "f23",
+ "f24",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "numlock",
+ "scroll",
+ "oem_nec_equal",
+ "oem_fj_masshou",
+ "oem_fj_touroku",
+ "oem_fj_loya",
+ "oem_fj_roya",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "unk",
+ "lshift",
+ "rshift",
+ "lctrl",
+ "rctrl",
+ "lalt",
+ "ralt",
+};
+
+const char* const key_names[] = {
+ "unknown",
+ "mouse_1",
+ "mouse_2",
+ "cancel",
+ "mouse_3",
+ "mouse_4",
+ "mouse_5",
+ "unknown",
+ "back",
+ "tab",
+ "unknown",
+ "unknown",
+ "clear",
+ "return",
+ "unknown",
+ "unknown",
+ "shift",
+ "control",
+ "alt",
+ "pause",
+ "capital",
+ "kana",
+ "unknown",
+ "junja",
+ "final",
+ "kanji",
+ "unknown",
+ "escape",
+ "convert",
+ "nonconvert",
+ "accept",
+ "modechange",
+ "space",
+ "prior",
+ "next",
+ "end",
+ "home",
+ "left",
+ "up",
+ "right",
+ "down",
+ "select",
+ "print",
+ "execute",
+ "snapshot",
+ "insert",
+ "delete",
+ "help",
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "a",
+ "b",
+ "c",
+ "d",
+ "e",
+ "f",
+ "g",
+ "h",
+ "i",
+ "j",
+ "k",
+ "l",
+ "m",
+ "n",
+ "o",
+ "p",
+ "q",
+ "r",
+ "s",
+ "t",
+ "u",
+ "v",
+ "w",
+ "x",
+ "y",
+ "z",
+ "lwin",
+ "rwin",
+ "apps",
+ "unknown",
+ "unknown",
+ "numpad0",
+ "numpad1",
+ "numpad2",
+ "numpad3",
+ "numpad4",
+ "numpad5",
+ "numpad6",
+ "numpad7",
+ "numpad8",
+ "numpad9",
+ "multiply",
+ "add",
+ "separator",
+ "subtract",
+ "decimal",
+ "divide",
+ "f1",
+ "f2",
+ "f3",
+ "f4",
+ "f5",
+ "f6",
+ "f7",
+ "f8",
+ "f9",
+ "f10",
+ "f11",
+ "f12",
+ "f13",
+ "f14",
+ "f15",
+ "f16",
+ "f17",
+ "f18",
+ "f19",
+ "f20",
+ "f21",
+ "f22",
+ "f23",
+ "f24",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "numlock",
+ "scroll",
+ "oem_nec_equal",
+ "oem_fj_masshou",
+ "oem_fj_touroku",
+ "oem_fj_loya",
+ "oem_fj_roya",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "lshift",
+ "rshift",
+ "lcontrol",
+ "rcontrol",
+ "lmenu",
+ "rmenu",
+};
+
+void c_input_manager::capture_mouse_move( ulong_t lparam ) {
+ m_mouse_pos[ 0 ] = LOWORD( lparam );
+ m_mouse_pos[ 1 ] = HIWORD( lparam );
+}
+
+bool c_input_manager::register_key_press( VirtualKeyEvents_t key_event, VirtualKeys_t key )
+{
+ switch ( key_event ) {
+ case KEYDOWN: {
+ if ( is_valid_key( key ) )
+ m_pressed_keys[ key ] = true;
+ return true;
+ }
+ case KEYUP: {
+ if ( is_valid_key( key ) )
+ m_pressed_keys[ key ] = false;
+ return true;
+ }
+ case SYSKEYDOWN: { //WTF IS THIS STUPID SHIT, WHY IS ALT LITERALLY THE ONLY FUCKING KEY UNDER SYSKEYDOWN OUT OF ALL THE MODIFIER KEYS?
+ if ( key == KEYS_ALT )
+ m_pressed_keys[ key ] = true;
+ break;
+ }
+ case SYSKEYUP: {
+ if ( key == KEYS_ALT )
+ m_pressed_keys[ key ] = false;
+ break;
+ }
+ case LBUTTONDOWN:
+ m_pressed_keys[ KEYS_MOUSE1 ] = true;
+ return true;
+ case LBUTTONUP:
+ m_pressed_keys[ KEYS_MOUSE1 ] = false;
+ return true;
+ case RBUTTONDOWN:
+ m_pressed_keys[ KEYS_MOUSE2 ] = true;
+ return true;
+ case RBUTTONUP:
+ m_pressed_keys[ KEYS_MOUSE2 ] = false;
+ return true;
+ case MBUTTONDOWN:
+ m_pressed_keys[ KEYS_MOUSE3 ] = true;
+ return true;
+ case MBUTTONUP:
+ m_pressed_keys[ KEYS_MOUSE3 ] = false;
+ return true;
+ case XBUTTONDOWN: {
+ bool pressed_xbutton = static_cast<bool>( HIWORD( key ) - 1 ); //should result in mouse4 as false, and mouse5 as true
+ m_pressed_keys[ pressed_xbutton ? KEYS_MOUSE5 : KEYS_MOUSE4 ] = true;
+ return true;
+ }
+ case XBUTTONUP: {
+ bool pressed_xbutton = static_cast<bool>( HIWORD( key ) - 1 ); //should result in mouse4 as false, and mouse5 as true
+ m_pressed_keys[ pressed_xbutton ? KEYS_MOUSE5 : KEYS_MOUSE4 ] = false;
+ return true;
+ }
+ case MOUSEWHEEL: {
+ short scroll_input = ( short )HIWORD( key );
+ m_scroll_wheel_state = scroll_input > 0 ? 1 : -1;
+ return true;
+ }
+ }
+
+ return key_event == 0x200 || key_event == 0x203 || key_event == 0x206 || key_event == 0x209; //gotta block WM_MOUSEFIST | WM_LBUTTONDBLCLK | WM_RBUTTONDBLCLK | WM_MBUTTONDBLCLK
+}
+
+bool c_input_manager::is_key_pressed( int key ) {
+ auto k = static_cast< VirtualKeys_t >( key );
+ return is_valid_key( k ) && m_pressed_keys[ k ];
+}
+
+const char* c_input_manager::get_key_name( VirtualKeys_t key ) {
+ if ( !is_valid_key( key ) )
+ return key_names[ KEYS_NONE ];
+
+ return key_names[ key ];
+}
+
+const char* c_input_manager::get_short_name( VirtualKeys_t key ) {
+ return key_names_short[ is_valid_key( key ) ? key : KEYS_NONE ];
+}
+
+VirtualKeys_t c_input_manager::is_any_key_pressed( ) {
+ for ( size_t i{ }; i < KEYS_MAX; ++i ) {
+ if ( m_pressed_keys[ i ] ) {
+ return VirtualKeys_t( i );
+ }
+ }
+
+ return KEYS_NONE;
+}
+
+int c_input_manager::get_scroll_state( ) {
+ int current_state = m_scroll_wheel_state;
+ m_scroll_wheel_state = 0;
+ return current_state;
+}
+
+char c_input_manager::get_pressed_char( VirtualKeys_t* out ) {
+ size_t pressed_character{ };
+ for ( size_t i{ }; i < KEYS_MAX; ++i ) {
+ if ( is_key_pressed( VirtualKeys_t( i ) ) ) {
+ if ( ( i >= KEYS_A && i <= KEYS_Z )
+ || ( i >= KEYS_N0 && i <= KEYS_N9 ) ) {
+ pressed_character = i;
+ }
+ }
+ }
+
+ if ( pressed_character ) {
+ if ( out ) {
+ *out = VirtualKeys_t( pressed_character );
+ }
+
+ if ( is_key_pressed( KEYS_SHIFT ) ) {
+ if ( pressed_character >= KEYS_A
+ && pressed_character <= KEYS_Z )
+ return char( pressed_character );
+
+ //gay way to shift it to symbols
+ if ( pressed_character >= KEYS_N0
+ && pressed_character <= KEYS_N9 ) {
+ switch ( pressed_character ) {
+ case KEYS_N0:
+ return ')';
+ case KEYS_N1:
+ return '!';
+ case KEYS_N2:
+ return '@';
+ case KEYS_N3:
+ return '#';
+ case KEYS_N4:
+ return '$';
+ case KEYS_N5:
+ return '%';
+ case KEYS_N6:
+ return '^';
+ case KEYS_N7:
+ return '&';
+ case KEYS_N8:
+ return '*';
+ case KEYS_N9:
+ return '(';
+ }
+ }
+ }
+ else {
+ if ( pressed_character >= KEYS_A
+ && pressed_character <= KEYS_Z )
+ return char( ::tolower( pressed_character ) );
+
+ if ( pressed_character >= KEYS_N0
+ && pressed_character <= KEYS_N9 )
+ return char( pressed_character );
+ }
+ }
+ else if ( is_key_pressed( KEYS_SPACE ) ) {
+ if ( out )
+ *out = KEYS_SPACE;
+
+ return ' ';
+ }
+ else if ( is_key_pressed( KEYS_BACK ) ) {
+ if ( out )
+ *out = KEYS_BACK;
+
+ return 0;
+ }
+
+ if ( out )
+ *out = KEYS_NONE;
+
+ return 0;
+}
+
+END_REGION
\ No newline at end of file diff --git a/legacy/loader/input_system.hpp b/legacy/loader/input_system.hpp new file mode 100644 index 0000000..c517f38 --- /dev/null +++ b/legacy/loader/input_system.hpp @@ -0,0 +1,177 @@ +#pragma once
+#include "util.hpp"
+
+enum VirtualKeyEvents_t {
+ KEYDOWN = 0x0100,
+ KEYUP = 0x0101,
+ SYSKEYDOWN = 0x104,
+ SYSKEYUP = 0x105,
+ LBUTTONDOWN = 0x0201,
+ LBUTTONUP = 0x0202,
+ RBUTTONDOWN = 0x0204,
+ RBUTTONUP = 0x0205,
+ MBUTTONDOWN = 0x0207,
+ MBUTTONUP = 0x0208,
+ MOUSEWHEEL = 0x020A,
+ XBUTTONDOWN = 0x020B,
+ XBUTTONUP = 0x020C,
+};
+
+enum VirtualKeys_t {
+ KEYS_NONE = 0,
+ KEYS_MOUSE1 = 0X01,
+ KEYS_MOUSE2 = 0X02,
+ KEYS_CANCEL = 0X03,
+ KEYS_MOUSE3 = 0X04,
+ KEYS_MOUSE4 = 0X05,
+ KEYS_MOUSE5 = 0X06,
+ KEYS_BACK = 0X08,
+ KEYS_TAB = 0X09,
+ KEYS_CLEAR = 0X0C,
+ KEYS_RETURN = 0X0D,
+ KEYS_SHIFT = 0X10,
+ KEYS_CONTROL = 0X11,
+ KEYS_ALT = 0X12,
+ KEYS_PAUSE = 0X13,
+ KEYS_CAPSLOCK = 0X14,
+ KEYS_ESCAPE = 0X1B,
+ KEYS_CONVERT = 0X1C,
+ KEYS_NONCONVERT = 0X1D,
+ KEYS_ACCEPT = 0X1E,
+ KEYS_MODECHANGE = 0X1F,
+ KEYS_SPACE = 0X20,
+ KEYS_PRIOR = 0X21,
+ KEYS_NEXT = 0X22,
+ KEYS_END = 0X23,
+ KEYS_HOME = 0X24,
+ KEYS_LEFT = 0X25,
+ KEYS_UP = 0X26,
+ KEYS_RIGHT = 0X27,
+ KEYS_DOWN = 0X28,
+ KEYS_SELECT = 0X29,
+ KEYS_PRINT = 0X2A,
+ KEYS_EXECUTE = 0X2B,
+ KEYS_SNAPSHOT = 0X2C,
+ KEYS_INSERT = 0X2D,
+ KEYS_DELETE = 0X2E,
+ KEYS_HELP = 0X2F,
+ KEYS_N0 = 0X30,
+ KEYS_N1 = 0X31,
+ KEYS_N2 = 0X32,
+ KEYS_N3 = 0X33,
+ KEYS_N4 = 0X34,
+ KEYS_N5 = 0X35,
+ KEYS_N6 = 0X36,
+ KEYS_N7 = 0X37,
+ KEYS_N8 = 0X38,
+ KEYS_N9 = 0X39,
+ KEYS_A = 0X41,
+ KEYS_B = 0X42,
+ KEYS_C = 0X43,
+ KEYS_D = 0X44,
+ KEYS_E = 0X45,
+ KEYS_F = 0X46,
+ KEYS_G = 0X47,
+ KEYS_H = 0X48,
+ KEYS_I = 0X49,
+ KEYS_J = 0X4A,
+ KEYS_K = 0X4B,
+ KEYS_L = 0X4C,
+ KEYS_M = 0X4D,
+ KEYS_N = 0X4E,
+ KEYS_O = 0X4F,
+ KEYS_P = 0X50,
+ KEYS_Q = 0X51,
+ KEYS_R = 0X52,
+ KEYS_S = 0X53,
+ KEYS_T = 0X54,
+ KEYS_U = 0X55,
+ KEYS_V = 0X56,
+ KEYS_W = 0X57,
+ KEYS_X = 0X58,
+ KEYS_Y = 0X59,
+ KEYS_Z = 0X5A,
+ KEYS_LEFTWINDOWS = 0X5B,
+ KEYS_RIGHTWINDOWS = 0X5C,
+ KEYS_APPLICATION = 0X5D,
+ KEYS_NUMPAD0 = 0X60,
+ KEYS_NUMPAD1 = 0X61,
+ KEYS_NUMPAD2 = 0X62,
+ KEYS_NUMPAD3 = 0X63,
+ KEYS_NUMPAD4 = 0X64,
+ KEYS_NUMPAD5 = 0X65,
+ KEYS_NUMPAD6 = 0X66,
+ KEYS_NUMPAD7 = 0X67,
+ KEYS_NUMPAD8 = 0X68,
+ KEYS_NUMPAD9 = 0X69,
+ KEYS_MULTIPLY = 0X6A,
+ KEYS_ADD = 0X6B,
+ KEYS_SEPARATOR = 0X6C,
+ KEYS_SUBTRACT = 0X6D,
+ KEYS_DECIMAL = 0X6E,
+ KEYS_DIVIDE = 0X6F,
+ KEYS_F1 = 0X70,
+ KEYS_F2 = 0X71,
+ KEYS_F3 = 0X72,
+ KEYS_F4 = 0X73,
+ KEYS_F5 = 0X74,
+ KEYS_F6 = 0X75,
+ KEYS_F7 = 0X76,
+ KEYS_F8 = 0X77,
+ KEYS_F9 = 0X78,
+ KEYS_F10 = 0X79,
+ KEYS_F11 = 0X7A,
+ KEYS_F12 = 0X7B,
+ KEYS_NUMLOCK = 0X90,
+ KEYS_SCROLLLOCK = 0X91,
+ KEYS_LEFTSHIFT = 0XA0,
+ KEYS_RIGHTSHIFT = 0XA1,
+ KEYS_LEFTCONTROL = 0XA2,
+ KEYS_RIGHTCONTROL = 0XA3,
+ KEYS_LEFTMENU = 0XA4,
+ KEYS_RIGHTMENU = 0XA5,
+ KEYS_PERIOD = 0xBE,
+ KEYS_MAX = 0XA6,
+ KEYS_LAST = 0xfe
+};
+
+namespace util
+{
+ class c_input_manager {
+ bool m_pressed_keys[ KEYS_MAX ];
+ int m_mouse_pos[ 2 ];
+ int m_scroll_wheel_state;
+ public:
+ void capture_mouse_move( ulong_t lparam );
+
+ //registers a key press from wndproc
+ bool register_key_press( VirtualKeyEvents_t key_event, VirtualKeys_t key );
+
+ //checks if the key is pressed
+ bool is_key_pressed( int key );
+
+ //returns the first found key pressed, or KEY_NONE if none are
+ VirtualKeys_t is_any_key_pressed( );
+
+ //returns the last scroll state and resets it to 0
+ int get_scroll_state( );
+
+ //returns the key's name
+ const char* get_key_name( VirtualKeys_t key );
+ const char* get_short_name( VirtualKeys_t key );
+
+ //returns the first found currently pressed key
+ char get_pressed_char( VirtualKeys_t* pressed_key = nullptr );
+
+ //check if a key is valid
+ inline bool is_valid_key( VirtualKeys_t key ) { return key > KEYS_NONE && key < KEYS_MAX; }
+
+ //get cursor pos
+ inline void get_cursor_pos( int& x, int& y ) {
+ x = m_mouse_pos[ 0 ];
+ y = m_mouse_pos[ 1 ];
+ }
+ };
+}
+
+extern util::c_input_manager g_input;
\ No newline at end of file diff --git a/client/client.vcxproj b/legacy/loader/loader.vcxproj index 12d3dc8..e8202b2 100644 --- a/client/client.vcxproj +++ b/legacy/loader/loader.vcxproj @@ -28,9 +28,8 @@ </ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
- <ProjectGuid>{E877E475-A428-4FBC-AF71-378AFB92B706}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>client</RootNamespace>
+ <ProjectGuid>{C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}</ProjectGuid>
+ <RootNamespace>loader</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
@@ -38,28 +37,27 @@ <ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- <SpectreMitigation>false</SpectreMitigation>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
@@ -67,14 +65,13 @@ <PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
- <SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -101,86 +98,79 @@ </ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
+ <IncludePath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)</IncludePath>
+ <LibraryPath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
+ <IncludePath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)</IncludePath>
+ <LibraryPath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'">
- <LinkIncremental>false</LinkIncremental>
+ <IncludePath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)</IncludePath>
+ <LibraryPath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)</LibraryPath>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
- <ConformanceMode>true</ConformanceMode>
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <ConformanceMode>true</ConformanceMode>
- </ClCompile>
- <Link>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>false</GenerateDebugInformation>
+ <FullProgramDatabaseFile>false</FullProgramDatabaseFile>
+ <AdditionalOptions>/NXCOMPAT:NO %(AdditionalOptions)</AdditionalOptions>
+ <ProgramDatabaseFile />
+ <UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions> _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <ConformanceMode>true</ConformanceMode>
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>false</GenerateDebugInformation>
+ <FullProgramDatabaseFile>false</FullProgramDatabaseFile>
+ <AdditionalOptions>/NXCOMPAT:NO %(AdditionalOptions)</AdditionalOptions>
+ <ProgramDatabaseFile>
+ </ProgramDatabaseFile>
+ <UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
+ <Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
</ClCompile>
<Link>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
+ <SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
@@ -188,15 +178,11 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
- <LanguageStandard>stdcpplatest</LanguageStandard>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'">
@@ -206,24 +192,52 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="client_windows.cpp" />
+ <ClCompile Include="d3d.cpp" />
+ <ClCompile Include="d3d_sprite.cpp" />
+ <ClCompile Include="input_system.cpp" />
+ <ClCompile Include="manualmap.cpp" />
+ <ClCompile Include="Source.cpp" />
+ <ClCompile Include="ui_text_input.cpp" />
+ <ClCompile Include="window.cpp" />
</ItemGroup>
<ItemGroup>
- <ClInclude Include="connect.hpp" />
- <ClInclude Include="err.hpp" />
+ <ClInclude Include="color.hpp" />
+ <ClInclude Include="d3d.hpp" />
+ <ClInclude Include="d3d_sprite.hpp" />
+ <ClInclude Include="http.h" />
+ <ClInclude Include="iface.hpp" />
+ <ClInclude Include="input_system.hpp" />
+ <ClInclude Include="manualmap.hpp" />
+ <ClInclude Include="math.hpp" />
<ClInclude Include="strings.hpp" />
+ <ClInclude Include="ui.h" />
+ <ClInclude Include="ui_base_item.h" />
+ <ClInclude Include="ui_button.h" />
+ <ClInclude Include="ui_checkbox.h" />
+ <ClInclude Include="ui_color_picker.h" />
+ <ClInclude Include="ui_draw.h" />
+ <ClInclude Include="ui_dropdown.h" />
+ <ClInclude Include="ui_dropdown_item.h" />
+ <ClInclude Include="ui_form.h" />
+ <ClInclude Include="ui_key_picker.h" />
+ <ClInclude Include="ui_label.h" />
+ <ClInclude Include="ui_menu.h" />
+ <ClInclude Include="ui_progressbar.h" />
+ <ClInclude Include="ui_render.h" />
+ <ClInclude Include="ui_slider.h" />
+ <ClInclude Include="ui_tab_manager.h" />
+ <ClInclude Include="ui_text_input.h" />
<ClInclude Include="util.hpp" />
+ <ClInclude Include="winapi.hpp" />
+ <ClInclude Include="window.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/legacy/loader/loader.vcxproj.filters b/legacy/loader/loader.vcxproj.filters new file mode 100644 index 0000000..7aeaacb --- /dev/null +++ b/legacy/loader/loader.vcxproj.filters @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> + </Filter> + <Filter Include="Source Files\ui"> + <UniqueIdentifier>{2a67ca5a-84ca-481c-b6dd-d35db109320e}</UniqueIdentifier> + </Filter> + <Filter Include="Source Files\util"> + <UniqueIdentifier>{0ae239aa-5489-4d37-9ca5-f5ed596b8364}</UniqueIdentifier> + </Filter> + <Filter Include="Source Files\manualmap"> + <UniqueIdentifier>{6f16eb64-7a39-4a36-84ed-a3ad1492b272}</UniqueIdentifier> + </Filter> + <Filter Include="Source Files\http"> + <UniqueIdentifier>{dc9e1541-2daf-4e48-b5fc-96803b1b5a26}</UniqueIdentifier> + </Filter> + <Filter Include="Source Files\enc"> + <UniqueIdentifier>{4f442dba-539b-4639-a710-b7a4ef78465b}</UniqueIdentifier> + </Filter> + <Filter Include="Source Files\iface"> + <UniqueIdentifier>{7a55fde6-06f2-45c5-bd1a-6a8a316739a8}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="Source.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="ui_text_input.cpp"> + <Filter>Source Files\ui</Filter> + </ClCompile> + <ClCompile Include="d3d.cpp"> + <Filter>Source Files\util</Filter> + </ClCompile> + <ClCompile Include="d3d_sprite.cpp"> + <Filter>Source Files\util</Filter> + </ClCompile> + <ClCompile Include="input_system.cpp"> + <Filter>Source Files\util</Filter> + </ClCompile> + <ClCompile Include="window.cpp"> + <Filter>Source Files\util</Filter> + </ClCompile> + <ClCompile Include="manualmap.cpp"> + <Filter>Source Files\manualmap</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="ui_base_item.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_button.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_checkbox.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_color_picker.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_draw.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_dropdown.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_dropdown_item.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_form.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_key_picker.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_label.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_menu.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_render.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_slider.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_tab_manager.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui_text_input.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="ui.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="window.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="color.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="d3d.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="d3d_sprite.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="input_system.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="math.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="util.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + <ClInclude Include="manualmap.hpp"> + <Filter>Source Files\manualmap</Filter> + </ClInclude> + <ClInclude Include="http.h"> + <Filter>Source Files\http</Filter> + </ClInclude> + <ClInclude Include="strings.hpp"> + <Filter>Source Files\enc</Filter> + </ClInclude> + <ClInclude Include="ui_progressbar.h"> + <Filter>Source Files\ui</Filter> + </ClInclude> + <ClInclude Include="iface.hpp"> + <Filter>Source Files\iface</Filter> + </ClInclude> + <ClInclude Include="winapi.hpp"> + <Filter>Source Files\util</Filter> + </ClInclude> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/legacy/loader/manualmap.cpp b/legacy/loader/manualmap.cpp new file mode 100644 index 0000000..da49a13 --- /dev/null +++ b/legacy/loader/manualmap.cpp @@ -0,0 +1,109 @@ +#include "manualmap.hpp"
+
+void inject::c_map::initialize( int pid ) {
+ m_handle = OpenProcess( PROCESS_ALL_ACCESS, 0, pid );
+}
+
+void inject::c_map::initialize( HANDLE process ) {
+ m_handle = process;
+}
+
+void inject::c_map::write( uintptr_t address, void* data, size_t size ) {
+ WriteProcessMemory( m_handle, ( void* )address, data, size, nullptr );
+}
+
+uintptr_t inject::c_map::allocate( size_t size ) {
+ void* allocation = VirtualAllocEx( m_handle, 0, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE );
+ m_allocations.push_back( allocation );
+
+ return uintptr_t( allocation );
+}
+
+void inject::c_map::free_allocated_regions( ) {
+ for( auto& it : m_allocations ) {
+ VirtualFreeEx( m_handle, it, 0, MEM_FREE );
+ }
+
+ m_allocations.clear( );
+}
+
+void inject::c_map::inject( uintptr_t interfaces ) {
+ HMODULE mod_data = ( HMODULE )m_inject_data.data( );
+
+ IMAGE_DOS_HEADER dos_hdr;
+ IMAGE_NT_HEADERS nt_hdrs;
+
+ dos_hdr = *( decltype( dos_hdr )* )( mod_data );
+ nt_hdrs = *( decltype( nt_hdrs )* )( uintptr_t( mod_data ) + dos_hdr.e_lfanew );
+
+ auto allocation = allocate( nt_hdrs.OptionalHeader.SizeOfImage );
+
+ auto size_of_headers = nt_hdrs.OptionalHeader.SizeOfHeaders;
+ auto num_of_sections = nt_hdrs.FileHeader.NumberOfSections;
+
+ m_allocation = malloc( nt_hdrs.OptionalHeader.SizeOfImage );
+ memset( m_allocation, 0, nt_hdrs.OptionalHeader.SizeOfImage );
+ memcpy( m_allocation, mod_data, size_of_headers );
+ write( allocation, m_allocation, size_of_headers );
+
+ auto sections = ( IMAGE_SECTION_HEADER* )( ( uintptr_t )( mod_data ) + dos_hdr.e_lfanew + sizeof( IMAGE_NT_HEADERS ) );
+ for( size_t i{ }; i < num_of_sections; ++i ) {
+ auto section = sections[ i ];
+ uintptr_t address = ( uintptr_t )m_allocation + section.VirtualAddress;
+ memcpy( ( void* )address,
+ ( void* )( uintptr_t( mod_data ) + section.PointerToRawData ),
+ ( size_t )section.SizeOfRawData );
+ }
+
+ auto base = nt_hdrs.OptionalHeader.DataDirectory[ IMAGE_DIRECTORY_ENTRY_BASERELOC ].VirtualAddress;
+ auto base_reloc = ( IMAGE_BASE_RELOCATION* )( ( uintptr_t )m_allocation + base );
+ auto delta = allocation - nt_hdrs.OptionalHeader.ImageBase;
+
+ while( base_reloc->VirtualAddress ) {
+ if( base_reloc->SizeOfBlock >= sizeof( IMAGE_BASE_RELOCATION ) ) {
+ size_t count = ( base_reloc->SizeOfBlock - sizeof( IMAGE_BASE_RELOCATION ) ) / sizeof( uint16_t );
+
+ auto list = ( uint16_t* )( base_reloc + 1 );
+
+ uintptr_t* ptr{ };
+ for( size_t i{ }; i < count; ++i ) {
+ if( list[ i ] ) {
+ ptr = ( uintptr_t* )( ( uintptr_t )( m_allocation ) + ( base_reloc->VirtualAddress + ( list[ i ] & 0xfff ) ) );
+ *ptr += delta;
+ }
+ }
+ }
+
+ base_reloc = ( IMAGE_BASE_RELOCATION* )( ( uintptr_t )base_reloc + base_reloc->SizeOfBlock );
+ }
+
+ write( allocation, m_allocation, nt_hdrs.OptionalHeader.SizeOfImage );
+ free( m_allocation );
+
+ auto shellcode_allocation = allocate( 0x1000 );
+
+ img_data_t img_data{
+ allocation,
+ nt_hdrs.OptionalHeader.ImageBase,
+ nt_hdrs.OptionalHeader.AddressOfEntryPoint,
+ nt_hdrs.OptionalHeader.DataDirectory[ IMAGE_DIRECTORY_ENTRY_BASERELOC ].VirtualAddress,
+ nt_hdrs.OptionalHeader.DataDirectory[ IMAGE_DIRECTORY_ENTRY_IMPORT ].VirtualAddress,
+ ( uintptr_t )( LoadLibraryA ),
+ ( uintptr_t )( GetProcAddress ),
+ interfaces
+ };
+
+ write( shellcode_allocation, &img_data, sizeof( img_data_t ) );
+
+ auto loader_code_start = shellcode_allocation + sizeof( img_data_t );
+ auto loader_code_size = ( size_t )( ( uintptr_t )( &dummy_func_1 ) - ( uintptr_t )( &loader_shellcode ) );
+
+ write( loader_code_start, &loader_shellcode, loader_code_size );
+ auto thread = CreateRemoteThread( m_handle, nullptr, 0,
+ ( LPTHREAD_START_ROUTINE )loader_code_start,
+ ( void* )shellcode_allocation, 0, 0 );
+
+ WaitForSingleObject( thread, INFINITE );
+ ulong_t exit{ };
+ GetExitCodeThread( thread, &exit );
+}
\ No newline at end of file diff --git a/legacy/loader/manualmap.hpp b/legacy/loader/manualmap.hpp new file mode 100644 index 0000000..39cdecf --- /dev/null +++ b/legacy/loader/manualmap.hpp @@ -0,0 +1,169 @@ +#pragma once
+#include <Windows.h>
+#include <vector>
+#include <memory>
+#include "util.hpp"
+
+enum DllSections_t {
+ SECTION_TEXT, //.text | allocation + write( obviously )
+ SECTION_RDATA, //.rdata | allocation + write
+ SECTION_DATA, //.data | need to allocate
+ SECTION_RSRC, //.rsrc | not needed
+ SETCION_RELOC, //.reloc | will need to do on server
+ SECTION_MAX
+};
+
+namespace inject
+{
+ struct img_data_t {
+ uintptr_t m_base;
+ uintptr_t m_image;
+ uintptr_t m_entry;
+ uintptr_t m_relocation;
+ uintptr_t m_imports;
+ uintptr_t m_loadlib;
+ uintptr_t m_get_procaddr;
+ uintptr_t m_interface_ptr;
+ };
+
+ using dllmain_t = int( __stdcall* )( void*, ulong_t, void* );
+
+ static __declspec( naked ) ulong_t __stdcall loader_shellcode( void* address ) {
+ __asm {
+ push ebp
+ mov ebp, esp
+ sub esp, __LOCAL_SIZE
+ }
+
+ img_data_t* data; data = ( img_data_t* )address;
+
+ uintptr_t base; base = data->m_base;
+ uintptr_t entry_point; entry_point = base + data->m_entry;
+ uintptr_t delta; delta = base - data->m_image;
+
+ IMAGE_BASE_RELOCATION* base_reloc;
+ IMAGE_IMPORT_DESCRIPTOR* import_dir;
+
+ base_reloc = ( IMAGE_BASE_RELOCATION* )( base + data->m_relocation );
+ import_dir = ( IMAGE_IMPORT_DESCRIPTOR* )( base + data->m_imports );
+
+ decltype( &LoadLibraryA ) loadlib;
+ decltype( &GetProcAddress ) get_procaddr;
+
+ loadlib = ( decltype( &LoadLibraryA ) )( data->m_loadlib );
+ get_procaddr = ( decltype( &GetProcAddress ) )( data->m_get_procaddr );
+
+ IMAGE_THUNK_DATA* orig_first_thunk;
+ IMAGE_THUNK_DATA* first_thunk;
+
+ uintptr_t name;
+ HMODULE import_module;
+ uintptr_t ordinal;
+ uintptr_t import_fn;
+
+ IMAGE_IMPORT_BY_NAME* import_;
+
+ while( import_dir->Characteristics ) {
+ orig_first_thunk = ( IMAGE_THUNK_DATA* )( base + import_dir->OriginalFirstThunk );
+ first_thunk = ( IMAGE_THUNK_DATA* )( base + import_dir->FirstThunk );
+
+ import_module = 0;
+
+ name = base + import_dir->Name;
+ __asm {
+ push name
+ call loadlib
+ mov import_module, eax
+ }
+
+ if( !import_module ) {
+ //return 0
+ __asm mov eax, 0;
+ goto END;
+ }
+
+ while( orig_first_thunk->u1.AddressOfData ) {
+ if( orig_first_thunk->u1.Ordinal & IMAGE_ORDINAL_FLAG ) {
+ ordinal = orig_first_thunk->u1.Ordinal & 0xffff;
+ import_fn = 0;
+
+ __asm {
+ push ordinal
+ push import_module
+ call get_procaddr
+ mov import_fn, eax
+ }
+
+ if( !import_fn ) {
+ __asm mov eax, 0;
+ goto END;
+ }
+
+
+ first_thunk->u1.Function = import_fn;
+ }
+ else {
+ import_ = ( IMAGE_IMPORT_BY_NAME* )( base + orig_first_thunk->u1.AddressOfData );
+ name = ( uintptr_t )( import_->Name );
+
+ import_fn = 0;
+
+ __asm {
+ push name
+ push import_module
+ call get_procaddr
+ mov import_fn, eax
+ }
+
+ if( !import_fn ) {
+ __asm mov eax, 0;
+ goto END;
+ }
+
+ first_thunk->u1.Function = import_fn;
+ }
+
+ ++orig_first_thunk;
+ ++first_thunk;
+ }
+
+ ++import_dir;
+ }
+
+ void* interface_ptr;
+ interface_ptr = ( void* )( data->m_interface_ptr );
+
+ dllmain_t fn; fn = reinterpret_cast< dllmain_t >( entry_point );
+ fn( ( void* )base, DLL_PROCESS_ATTACH, interface_ptr );
+
+ __asm mov eax, 1;
+
+ END:
+ __asm {
+ mov esp, ebp
+ pop ebp
+ ret
+ }
+ }
+
+ static ulong_t __stdcall dummy_func_1( ) { return 0; }
+
+ class c_map {
+ HANDLE m_handle;
+ std::vector< void* > m_allocations;
+ std::vector< uint8_t > m_inject_data;
+ void* m_allocation;
+
+ void write( uintptr_t address, void* data, size_t size );
+ uintptr_t allocate( size_t size );
+
+ void free_allocated_regions( );
+ public:
+ c_map( std::vector< uint8_t >& file ) : m_inject_data( file ) { };
+ ~c_map( ) { if( m_handle ) { CloseHandle( m_handle ); } }
+
+ void initialize( int process_id );
+ void initialize( HANDLE process );
+ void inject( uintptr_t interfaces );
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/math.hpp b/legacy/loader/math.hpp new file mode 100644 index 0000000..bebe7d5 --- /dev/null +++ b/legacy/loader/math.hpp @@ -0,0 +1,60 @@ +#pragma once
+#include <random>
+#include "util.hpp"
+
+static constexpr long double M_PI = 3.14159265358979323846f;
+static constexpr long double M_RADPI = 57.295779513082f;
+static constexpr long double M_PIRAD = 0.01745329251f;
+static constexpr float M_PI_F = ( ( float )( M_PI ) );
+__forceinline float RAD2DEG( float x ) { return( ( float )( x ) * ( float )( 180.f / M_PI_F ) ); }
+__forceinline float DEG2RAD( float x ) { return( ( float )( x ) * ( float )( M_PI_F / 180.f ) ); }
+
+namespace {
+ //make a random generator and seed it with a p random number
+ static std::random_device rd;
+ static std::mt19937 gen( rd( ) );
+}
+
+NAMESPACE_REGION( math )
+
+#undef min
+#undef max
+
+template < typename t >
+t min( const t& t1, const t& t2 ) {
+ return t1 < t2 ? t1 : t2;
+}
+
+template < typename t, typename... ts_ >
+t min( const t& t1, const t& t2, ts_&&... ts ) {
+ return t1 < t2 ?
+ min( t1, std::forward< ts_ >( ts )... ) :
+ min( t2, std::forward< ts_ >( ts )... );
+}
+
+template < typename t >
+t max( const t& t1, const t& t2 ) {
+ return t1 > t2 ? t1 : t2;
+}
+
+template < typename t, typename... ts_ >
+t max( const t& t1, const t& t2, ts_&&... ts ) {
+ return t1 > t2 ?
+ max( t1, std::forward< ts_ >( ts )... ) :
+ max( t2, std::forward< ts_ >( ts )... );
+}
+
+// todo - dex; make 2 random generator funcs here, this one only works for floats normally
+
+template < typename t > __forceinline t random_number( t min, t max ) {
+ if constexpr( !std::is_integral_v< t > ) {
+ std::uniform_real_distribution< t > dist( min, max );
+ return dist( gen );
+ }
+ else {
+ std::uniform_int_distribution< t > dist( min, max );
+ return dist( gen );
+ }
+}
+
+END_REGION
\ No newline at end of file diff --git a/legacy/loader/strings.hpp b/legacy/loader/strings.hpp new file mode 100644 index 0000000..569f9a0 --- /dev/null +++ b/legacy/loader/strings.hpp @@ -0,0 +1,163 @@ +//--------------------------------------------------------------------------------
+//-- XorCompileTime.hpp
+//
+// Author: frk
+// Date: 12.12.2015
+//
+//--------------------------------------------------------------------------------
+
+#pragma once
+#include <string>
+#include <array>
+#include <cstdarg>
+
+#define BEGIN_NAMESPACE( x ) namespace x {
+#define END_NAMESPACE }
+
+BEGIN_NAMESPACE( strenc )
+
+constexpr auto time = __TIME__;
+constexpr auto seed = static_cast< int >( time[ 7 ] ) + static_cast< int >( time[ 6 ] ) * 10 + static_cast< int >( time[ 4 ] ) * 60 + static_cast< int >( time[ 3 ] ) * 600 + static_cast< int >( time[ 1 ] ) * 3600 + static_cast< int >( time[ 0 ] ) * 36000;
+
+// 1988, Stephen Park and Keith Miller
+// "Random Number Generators: Good Ones Are Hard To Find", considered as "minimal standard"
+// Park-Miller 31 bit pseudo-random number generator, implemented with G. Carta's optimisation:
+// with 32-bit math and without division
+
+template < int N >
+struct RandomGenerator {
+private:
+ static constexpr unsigned a = 16807; // 7^5
+ static constexpr unsigned m = 2147483647; // 2^31 - 1
+
+ static constexpr unsigned s = RandomGenerator< N - 1 >::value;
+ static constexpr unsigned lo = a * ( s & 0xFFFF ); // Multiply lower 16 bits by 16807
+ static constexpr unsigned hi = a * ( s >> 16 ); // Multiply higher 16 bits by 16807
+ static constexpr unsigned lo2 = lo + ( ( hi & 0x7FFF ) << 16 ); // Combine lower 15 bits of hi with lo's upper bits
+ static constexpr unsigned hi2 = hi >> 15; // Discard lower 15 bits of hi
+ static constexpr unsigned lo3 = lo2 + hi;
+
+public:
+ static constexpr unsigned max = m;
+ static constexpr unsigned value = lo3 > m ? lo3 - m : lo3;
+};
+
+template <>
+struct RandomGenerator< 0 > {
+ static constexpr unsigned value = seed;
+};
+
+template < int N, int M >
+struct RandomInt {
+ static constexpr auto value = RandomGenerator< N + 1 >::value % M;
+};
+
+template < int N >
+struct RandomChar {
+ static const char value = static_cast< char >( 1 + RandomInt< N, 0x7F - 1 >::value );
+};
+
+template < size_t N, int K >
+struct XorString {
+private:
+ const char _key;
+ std::array< char, N + 1 > _encrypted;
+ bool decrypted = false;
+
+ constexpr char enc( char c ) const {
+ return c ^ _key;
+ }
+
+ char dec( char c ) const {
+ return c ^ _key;
+ }
+
+public:
+ template < size_t... Is >
+ constexpr __forceinline XorString( const char* const str, std::index_sequence< Is... > ) : _key( RandomChar< K >::value ), _encrypted{ enc( str[ Is ] )... } {
+ }
+
+ __forceinline const char* decrypt( void ) {
+ if( !decrypted ) {
+ for( size_t i = 0; i < N; ++i ) {
+ _encrypted[ i ] = dec( _encrypted[ i ] );
+ }
+ _encrypted[ N ] = '\0';
+ decrypted = true;
+ }
+
+ return _encrypted.data( );
+ }
+};
+
+//--------------------------------------------------------------------------------
+//-- Note: XorStr will __NOT__ work directly with functions like printf.
+// To work with them you need a wrapper function that takes a const char*
+// as parameter and passes it to printf and alike.
+//
+// The Microsoft Compiler/Linker is not working correctly with variadic
+// templates!
+//
+// Use the functions below or use std::cout (and similar)!
+//--------------------------------------------------------------------------------
+
+#if( 1 )
+static auto w_printf = [ ]( const char* fmt, ... ) {
+ va_list args;
+ va_start( args, fmt );
+ vprintf_s( fmt, args );
+ va_end( args );
+};
+
+static auto w_printf_s = [ ]( const char* fmt, ... ) {
+ va_list args;
+ va_start( args, fmt );
+ vprintf_s( fmt, args );
+ va_end( args );
+};
+
+static auto w_sprintf = [ ]( char* buf, const char* fmt, ... ) {
+ va_list args;
+ va_start( args, fmt );
+ vsprintf( buf, fmt, args );
+ va_end( args );
+};
+
+static auto w_sprintf_s = [ ]( char* buf, size_t buf_size, const char* fmt, ... ) {
+ va_list args;
+ va_start( args, fmt );
+ vsprintf_s( buf, buf_size, fmt, args );
+ va_end( args );
+};
+#endif
+
+//for compatibility with debug mode
+struct debug_ret {
+private:
+ const char* ret;
+
+public:
+ debug_ret( const char* str ) : ret( str ) { };
+
+ auto decrypt( ) {
+ return ret;
+ }
+};
+
+constexpr size_t strlen_ct( const char* const str ) {
+ size_t out = 1;
+
+ for( ; str[ out ] != '\0'; ++out );
+
+ return out;
+}
+
+#if 1
+#define xors_raw( s ) ( strenc::XorString< strenc::strlen_ct( s ), __COUNTER__ >( s, std::make_index_sequence< sizeof( s ) - 1>() ) )
+#define xors( s ) ( strenc::XorString< strenc::strlen_ct( s ), __COUNTER__ >( s, std::make_index_sequence< sizeof( s ) - 1>() ).decrypt() )
+#else
+#define xors_raw( s ) ( [ ]{ strenc::debug_ret ret{ s }; return ret; }( ) )
+#define xors( s ) ( s )
+#endif
+
+END_NAMESPACE
\ No newline at end of file diff --git a/legacy/loader/syscall.h b/legacy/loader/syscall.h new file mode 100644 index 0000000..0f608ba --- /dev/null +++ b/legacy/loader/syscall.h @@ -0,0 +1,167 @@ +#pragma once
+#include <unordered_map>
+
+#include "x86.h"
+
+using ulong_t = unsigned long;
+
+constexpr bool is86 = sizeof( uintptr_t ) == sizeof( uint32_t );
+
+class c_syscalls {
+protected:
+ std::unordered_map< std::string, std::pair< uint16_t, uint16_t > > m_syscalls;
+
+ // 16 is very arbitrary... but whatever
+ // if something crashes this is why
+ __forceinline size_t syscall_wrapper_size( uint8_t* funptr, uint16_t *ret_c_out ) {
+ for ( size_t offset{ }; offset < 0x30; offset++ ) {
+ if ( funptr[ offset ] == x86::instruction::retn ) {
+ if ( ret_c_out )
+ *ret_c_out = 0;
+
+ return offset + 1;
+ }
+ else if ( funptr[ offset ] == x86::instruction::retn_imm16 ) {
+ if ( ret_c_out )
+ *ret_c_out = *( uint16_t * )( &funptr[ offset + 1 ] );
+
+ return offset + 3;
+ }
+ }
+ return 0;
+ }
+
+ __forceinline bool is_syscall( uint8_t* funptr, size_t func_size ) {
+ const uint32_t encoded_opcode = x86::encode_mov_imm32( x86::reg::eax );
+
+ if ( /*is86*/ true ? funptr[ 0 ] != encoded_opcode : !( funptr[ 0 ] == 0x4c && funptr[ 1 ] == 0x8b && funptr[ 2 ] == 0xd1 ) )
+ return false;
+
+ for ( size_t offset{ }; offset < func_size; offset++ ) {
+ if ( true /*is86*/ ) {
+ if ( ( funptr[ offset ] == x86::instruction::fs && // win7
+ funptr[ offset + 1 ] == x86::instruction::call ) ||
+
+ ( funptr[ offset ] == x86::instruction::call && // win10
+ funptr[ offset + 1 ] == 0xd2 /*call edx*/ ) )
+
+ return true;
+
+ }
+
+ else {
+ if ( funptr[ offset ] == 0x0f && // win7 + win10
+ funptr[ offset + 1 ] == 0x05 )
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ __forceinline uint16_t get_syscall_index( uintptr_t func_addr, std::ptrdiff_t *stub_offset = nullptr, uint16_t *ret_c_out = nullptr ) {
+ uint8_t* ubp_addr = reinterpret_cast< uint8_t* >( func_addr );
+ uint16_t ret_c{ };
+ size_t wrapper_size = syscall_wrapper_size( ubp_addr, &ret_c );
+
+ if ( ret_c_out )
+ *ret_c_out = ret_c;
+
+ wrapper_size = ( wrapper_size ) ? wrapper_size : 16;
+
+ if ( is_syscall( ubp_addr, wrapper_size ) ) {
+ // mov eax, imm32
+ const uint32_t encoded_opcode = x86::encode_mov_imm32( x86::reg::eax );
+
+ for ( size_t offset{ }; offset < wrapper_size; offset++ ) {
+ if ( *reinterpret_cast< uint8_t* >( func_addr + offset ) == encoded_opcode ) {
+ if ( stub_offset )
+ *stub_offset = offset;
+
+ return ( *reinterpret_cast< uint16_t* >( func_addr + offset + 1 ) );
+ }
+ }
+ }
+
+ return 0;
+ }
+
+ std::pair< uint8_t*, size_t > m_shellcode_stub;
+ void *m_call_table;
+public:
+
+ __forceinline ~c_syscalls( ) {
+ if ( m_call_table )
+ delete[ ] m_call_table;
+
+ if ( m_shellcode_stub.first )
+ delete[ ] m_shellcode_stub.first;
+ }
+
+ __forceinline c_syscalls( ) :
+ m_syscalls{ }, m_shellcode_stub{ } {
+
+ init( );
+
+ // b1gr0fl
+ m_call_table = new char[ 0x100000 ];
+ util::set( m_call_table, 0, 0x100000 );
+
+ if ( true /*x86*/ ) {
+ for ( auto& syscall : m_syscalls ) {
+ void *stub_addr = ( void* )( uintptr_t( m_call_table ) + ( syscall.second.first * m_shellcode_stub.second ) );
+ util::copy( stub_addr, m_shellcode_stub.first, m_shellcode_stub.second );
+
+ std::ptrdiff_t index_offset{ };
+ get_syscall_index( ( uintptr_t )stub_addr, &index_offset );
+
+ auto stub_return = ( uint16_t * )( uintptr_t( stub_addr ) + m_shellcode_stub.second - 2 );
+ *stub_return = syscall.second.second;
+
+ *( uint32_t * )( uintptr_t( stub_addr ) + index_offset + 1 ) = ( syscall.second.first );
+
+ }
+ }
+ }
+
+ __forceinline void init( ) {
+ uint32_t index;
+ uint16_t ret_c{ };
+
+ if ( g_nt.m_exports.empty( ) ) {
+ g_nt.dump_exports( );
+ }
+
+ for ( const auto& exp : g_nt.m_exports ) {
+ index = get_syscall_index( exp.second, nullptr, &ret_c );
+
+ if ( index ) {
+ m_syscalls[ exp.first ].first = index;
+ m_syscalls[ exp.first ].second = ret_c;
+
+ if ( !m_shellcode_stub.first ) {
+ m_shellcode_stub.second = syscall_wrapper_size( reinterpret_cast< uint8_t* >( exp.second ), &ret_c );
+
+ m_shellcode_stub.first = new uint8_t[ m_shellcode_stub.second ];
+
+ m_syscalls[ exp.first ].second = ret_c;
+
+ util::copy( m_shellcode_stub.first, reinterpret_cast< void* >( exp.second ), m_shellcode_stub.second );
+ }
+ }
+ }
+ }
+
+ template< typename t = void* >
+ __forceinline t get_syscall_func( std::string name ) {
+ return ( t )( GetProcAddress( GetModuleHandleA( "ntdll.dll" ), name.c_str( ) ) );
+ }
+
+ __forceinline uint16_t get_syscall( std::string name ) {
+ return m_syscalls[ name ].first;
+ }
+
+ __forceinline auto& get_syscalls( ) {
+ return m_syscalls;
+ }
+};
\ No newline at end of file diff --git a/legacy/loader/ui.h b/legacy/loader/ui.h new file mode 100644 index 0000000..a6874f5 --- /dev/null +++ b/legacy/loader/ui.h @@ -0,0 +1,123 @@ +#pragma once
+#include "ui_base_item.h"
+#include "ui_menu.h"
+#include "ui_form.h"
+#include "ui_render.h"
+#include "ui_checkbox.h"
+#include "ui_tab_manager.h"
+#include "ui_slider.h"
+#include "ui_dropdown.h"
+#include "ui_key_picker.h"
+#include "ui_button.h"
+#include "ui_color_picker.h"
+#include "ui_label.h"
+#include "ui_text_input.h"
+#include "ui_progressbar.h"
+
+char g_login[ 32 ];
+int g_game = 1;
+float g_progress = 0.f;
+
+enum {
+ STATUS_LOGIN,
+ STATUS_LOGGING_IN,
+ STATUS_LOGGED_IN,
+ STATUS_LOADING,
+};
+
+int g_status = STATUS_LOGIN;
+
+extern void execute_login( );
+
+enum {
+ GAME_UNSAFE = 0,
+ GAME_SAFE = 1,
+};
+
+struct game_t {
+ int status;
+ char name[ 32 ];
+ bool valid_sub;
+};
+
+
+std::vector< game_t > games = {
+ { GAME_SAFE, xors( "csgo" ), true },
+ { GAME_UNSAFE, xors( "csgo ( beta )" ), false }
+};
+
+
+//fill this vector when receiving game data based on the one above (this is just a test sample one)
+std::vector< ui::dropdowns::dropdown_item_t< int > > game_list = {
+ { xors( "csgo" ), 1 },
+ { xors( "csgo ( beta )" ), 2 },
+};
+
+namespace ui
+{
+ auto menu = std::make_shared< ui::c_menu >( 0, 0, 500, 400, xors( "moneybot" ), "" );
+
+ static void render( ) {
+ static bool was_setup = false;
+ if( !was_setup ) {
+ menu = std::make_shared< ui::c_menu >( 0, 0, 450, 375, xors( "moneybot" ), "" );
+
+ auto login_form = menu->add_item( std::make_shared< ui::c_form >( 120, 20, 190,
+ 115, xors( "login" ) ) ); {
+ login_form->add_item( std::make_shared< ui::c_text_input >( 15, 0, 140, xors( "username" ), 32, g_login, true ) );
+ login_form->add_item( std::make_shared< ui::base_item >( 0, 0, 0, 3 ) );
+ login_form->add_item( std::make_shared< ui::c_button >( 15, 0, 140, 18, xors( "submit" ), [ ]( ) {
+ g_status = STATUS_LOGGING_IN;
+ /*
+ execute your code to log in here
+ */
+ } ) );
+ }
+
+ login_form->set_cond( [ ]( ) { return g_status == STATUS_LOGIN; } );
+
+ auto logging_in_form = menu->add_item( std::make_shared< ui::c_form >( 120, 20, 190, 115, xors( "logging in" ) ) ); {
+ logging_in_form->add_item( std::make_shared< ui::c_label >( 54, 39, xors( "please wait." ) ) );
+ }
+
+ logging_in_form->set_cond( [ ]( ) { return g_status == STATUS_LOGGING_IN; } );
+
+ auto games_form = menu->add_item( std::make_shared< ui::c_form >( 120, 20, 190, 115, xors( "inject" ) ) ); {
+ games_form->add_item( std::make_shared< ui::c_dropdown< > >( 15, 0, 140, xors( "game" ), &g_game, &game_list ) );
+ games_form->add_item( std::make_shared< ui::c_button >( 15, 0, 140, 18, xors( "inject" ), [ ]( ) {
+ g_status = STATUS_LOADING;
+ /*
+ execute your code to inject here
+ */
+ } ) );
+
+ games_form->add_item( std::make_shared< ui::c_label >( 15, 0, xors( "subscription: active" ) ) )->set_cond( [ ]( ) { return games.at( g_game - 1 ).valid_sub; } );
+ games_form->add_item( std::make_shared< ui::c_label >( 15, 0, xors( "subscription: inactive" ) ) )->set_cond( [ ]( ) { return !games.at( g_game - 1 ).valid_sub; } );
+ games_form->add_item( std::make_shared< ui::c_label >( 15, 0, xors( "status: safe" ) ) )->set_cond( [ ]( ) { return games.at( g_game - 1 ).status == GAME_SAFE; } );
+ games_form->add_item( std::make_shared< ui::c_label >( 15, 0, xors( "status: unsafe" ) ) )->set_cond( [ ]( ) { return games.at( g_game - 1 ).status == GAME_UNSAFE; } );
+ }
+
+ games_form->set_cond( [ ]( ) { return g_status == STATUS_LOGGED_IN; } );
+
+ auto loading_form = menu->add_item( std::make_shared< ui::c_form >( 120, 20, 190, 115, xors( "loading" ) ) ); {
+ loading_form->add_item( std::make_shared< ui::c_label >( 54, 39, xors( "please wait." ) ) );
+ }
+
+ loading_form->set_cond( [ ]( ) { return g_status == STATUS_LOADING; } );
+
+ menu->add_item( std::make_shared< ui::c_button >( 393, 208, 50, 18, xors( "exit" ), [ ]( ) { exit( 0 ); } ) );
+
+ was_setup = true;
+ }
+ else {
+ render_item( menu.get( ) );
+ static float loading_time;
+ if( g_status == STATUS_LOGGING_IN && !loading_time ) {
+ loading_time = GetTickCount( ) * 0.001f + 2.f;
+ }
+ else if( g_status == STATUS_LOGGING_IN && GetTickCount( ) * 0.001f > loading_time ) {
+ g_status = STATUS_LOGGED_IN;
+ }
+ }
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/ui_base_item.h b/legacy/loader/ui_base_item.h new file mode 100644 index 0000000..f33a21e --- /dev/null +++ b/legacy/loader/ui_base_item.h @@ -0,0 +1,164 @@ +#pragma once
+#include <memory>
+#include <vector>
+#include <functional>
+
+#include "ui_draw.h"
+
+namespace ui
+{
+ //the offset between each item
+ constexpr int ITEM_OFFSET = 5;
+
+ class base_item : public std::enable_shared_from_this< base_item > {
+ public:
+ base_item( ) { }
+ base_item( int x, int y, int w, int h, const char* name = nullptr ) :
+ m_x( x ), m_y( y ), m_width( w ), m_height( h ) {
+ if( name ) {
+ strcpy_s< 256 >( m_text, name );
+ }
+ }
+
+ virtual void render( ) { };
+ virtual bool is_hovered( ) { return false; }
+ virtual bool is_form( ) const { return false; }
+
+ virtual void reset( ) {
+ m_y_offset = 0;
+ }
+
+ virtual int get_total_height( ) const {
+ return m_height;
+ }
+
+ void set_y_offset( int offset ) {
+ m_y_offset = offset;
+ }
+
+ int get_y_offset( ) const {
+ return m_y_offset;
+ }
+
+ auto add_item( std::shared_ptr< base_item > item ) {
+ item.get( )->m_parent = shared_from_this( );
+ m_items.emplace( m_items.begin( ), item );
+
+ return item;
+ }
+
+ auto& get_items( ) { return m_items; }
+ auto get_parent( ) { return m_parent; }
+
+ virtual int x( ) const { return m_x; }
+ virtual int y( ) const { return m_y; }
+ virtual int w( ) const { return m_width; }
+ virtual int h( ) const { return m_height; }
+
+ void set_x( int x ) { m_x = x; }
+ void set_y( int y ) { m_y = y; }
+
+ void set_width( int w ) { m_width = w; }
+ void set_height( int h ) { m_height = h; }
+
+ bool get_visible( ) const {
+ if( m_cond && !m_cond( ) ) {
+ return false;
+ }
+
+ return m_visible;
+ }
+
+ void set_cond( std::function< bool( ) > func ) {
+ m_cond = func;
+ }
+
+ void set_visible( bool vis ) { m_visible = vis; }
+ void set_text( const char* text ) {
+ strcpy_s< 256 >( m_text, text );
+ }
+ auto get_text( ) const {
+ return m_text;
+ }
+
+ std::shared_ptr< base_item > find_item( const char* name ) {
+ if( !m_items.empty( ) ) {
+ for( auto& it : m_items ) {
+ if( it->get_text( ) && !strcmp( it->get_text( ), name ) ) {
+ return it;
+ }
+
+ auto it_find = it->find_item( name );
+ if( it_find != it ) return it_find;
+ }
+ }
+
+ return shared_from_this( );
+ }
+
+ auto get_top_parent( ) {
+ for( auto parent = m_parent; ;
+ parent = parent->get_parent( ) ) {
+ if( !parent->get_parent( ) ) {
+ return parent;
+ }
+ }
+
+ return shared_from_this( );
+ }
+
+ int get_relative_x( ) {
+ int x = m_x;
+ for( auto parent = get_parent( ); !!parent;
+ parent = parent->get_parent( ) ) {
+ x += parent->x( );
+ }
+
+ return x;
+ }
+
+ int get_relative_y( ) {
+ int y = m_y + get_y_offset( );
+ for( auto parent = get_parent( ); !!parent;
+ parent = parent->get_parent( ) ) {
+ y += parent->y( ) + parent->get_y_offset( );
+ }
+
+ return y;
+ }
+
+ void set_disabled( bool disabled ) {
+ m_disabled = disabled;
+
+ for( auto& it : m_items ) {
+ it->set_disabled( disabled );
+ }
+ }
+
+ void set_disabled_callbacks( bool disabled ) {
+ auto top = get_top_parent( );
+
+ top->set_disabled( disabled );
+
+ m_disabled = false;
+ }
+
+ protected:
+ int m_x{ };
+ int m_y{ };
+
+ int m_width{ };
+ int m_height{ };
+
+ //current y position for rendering
+ int m_y_offset{ };
+
+ bool m_visible = true;
+ bool m_disabled = false;
+ char m_text[ 256 ]{ };
+
+ std::shared_ptr< base_item > m_parent;
+ std::vector< std::shared_ptr< base_item > > m_items;
+ std::function< bool( ) > m_cond;
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_button.h b/legacy/loader/ui_button.h new file mode 100644 index 0000000..022fc67 --- /dev/null +++ b/legacy/loader/ui_button.h @@ -0,0 +1,56 @@ +#pragma once
+
+#include <functional>
+
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_button : public base_item {
+ public:
+ c_button( int x, int y, int w, int h, const char* name, std::function< void( ) > fn ) :
+ base_item( x, y, w, h, name ), m_fn( fn ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+ int h = m_height;
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+
+ return mouse_x >= x && mouse_x <= x + m_width
+ && mouse_y >= y && mouse_y <= y + h;
+ }
+
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ ui_draw_rect( x, y, m_width, m_height, ui_get_disabled_col( ) );
+ ui_draw_outlined_rect( x - 1, y - 1, m_width + 1, m_height + 1,
+ is_hovered( ) ? ui_get_text_col( ) : ui_get_accent_col( ) );
+
+ if ( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ ui_draw_rect( x, y, m_width, m_height, ui_get_bg_col( ) );
+ if ( !m_mouse_held ) {
+ m_fn( );
+ }
+ m_mouse_held = true;
+ }
+ else {
+ m_mouse_held = false;
+ }
+
+ ui_draw_string( x + m_width / 2, y + 2, true, ui_get_text_col( ), m_text );
+ }
+
+ protected:
+ std::function< void( ) > m_fn;
+ bool m_mouse_held{ };
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_checkbox.h b/legacy/loader/ui_checkbox.h new file mode 100644 index 0000000..50cad1c --- /dev/null +++ b/legacy/loader/ui_checkbox.h @@ -0,0 +1,68 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_checkbox : public base_item {
+ public:
+ c_checkbox( int x, int y, const char* txt, bool* setting ) :
+ base_item( x, y, 16, 16, txt ), m_setting( setting ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ int rel_x = get_relative_x( );
+ int rel_y = get_relative_y( );
+
+ return mouse_x >= rel_x && mouse_x <= rel_x + m_width
+ && mouse_y >= rel_y && mouse_y <= rel_y + m_height;
+ }
+
+ inline void render_checkbox( const int& x, const int& y ) {
+ clr_t col = ui_get_bg_col( );
+ if ( is_hovered( ) ) {
+ col = *m_setting ? ui_get_accent_col( ) * 0.8f : ui_get_bg_col( ) * 1.3f;
+ }
+ else if ( *m_setting ) {
+ col = ui_get_accent_col( );
+ }
+
+ ui_draw_rect( x, y, m_width, m_height, ui_get_disabled_col( ) );
+ ui_draw_rect( x + 1, y + 1, m_width - 2, m_height - 2, col );
+
+ //ui_draw_outlined_rect( x, y, m_width, m_height, ui_get_accent_col( ) );
+ }
+
+ inline void input( ) {
+ bool mouse_presesed = g_input.is_key_pressed( KEYS_MOUSE1 );
+
+ if ( is_hovered( ) && mouse_presesed ) {
+ if ( !m_mouse_held ) {
+ *m_setting = !*m_setting;
+ }
+ m_mouse_held = true;
+ }
+ else {
+ m_mouse_held = false;
+ }
+ }
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ render_checkbox( x, y );
+ input( );
+
+
+ ui_draw_string( x + m_width + 6, y + 2, false, ui_get_text_col( ), m_text );
+ }
+
+ protected:
+ bool* m_setting;
+ bool m_mouse_held{ };
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_color_picker.h b/legacy/loader/ui_color_picker.h new file mode 100644 index 0000000..2711d29 --- /dev/null +++ b/legacy/loader/ui_color_picker.h @@ -0,0 +1,201 @@ +#pragma once
+
+#include "ui_base_item.h"
+#include "d3d.hpp"
+
+namespace ui
+{
+ class c_color_picker : public base_item {
+ static constexpr int BOX_WIDTH = 106;
+ static constexpr int BOX_HEIGHT = 125;
+ public:
+ c_color_picker( int x, int y, int w, const char* name, clr_t* setting ) :
+ base_item( x, y, w, 4, name ), m_setting( setting ),
+ m_has_text( true ) { }
+
+ c_color_picker( int x, int y, int w, clr_t* setting ) :
+ base_item( x, y, w, 8, xors( "COLOR_PICKER" ) ), m_setting( setting ),
+ m_has_text( false ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ int cursor_x, cursor_y;
+ ui_get_cursor_pos( cursor_x, cursor_y );
+
+ if ( m_has_text ) y += 12;
+
+ if ( !m_active ) {
+ return cursor_x >= x && cursor_x <= x + m_width
+ && cursor_y >= y && cursor_y <= y + m_height;
+ }
+
+ return cursor_x >= x && cursor_x <= x + BOX_WIDTH + 23
+ && cursor_y >= y && cursor_y <= y + BOX_HEIGHT + 2;
+ }
+
+ virtual int get_total_height( ) const override {
+ return m_has_text ? ( m_height + 12 ) : m_height;
+ }
+
+ void input( ) {
+ bool active_backup = m_active;
+ bool active_changed = false;
+
+ if ( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ if ( !m_active ) {
+ m_mouse_held = true;
+ }
+
+ m_active = true;
+ }
+ else if ( m_active && !is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ m_active = false;
+ }
+ else {
+ m_mouse_held = false;
+ }
+
+ active_changed = active_backup != m_active;
+ if ( active_changed ) {
+ set_disabled_callbacks( m_active );
+ }
+
+ m_hue = m_setting->hue( );
+ if ( m_hue > 1.0f ) {
+ m_hue -= 359.f;
+ }
+
+ m_saturation = m_setting->saturation( );
+ m_brightness = m_setting->brightness( ) / 255.f;
+ m_alpha = m_setting->a( );
+ }
+
+ void output( ) {
+ *m_setting = clr_t::from_hsb( m_hue, m_saturation, m_brightness );
+ m_setting->a( ) = m_alpha;
+ }
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ if ( m_has_text ) {
+ ui_draw_string( x + 2, y, false, ui_get_text_col( ), m_text );
+ y += 12;
+ }
+
+ input( );
+
+ if ( m_active ) {
+ RECT old_rect;
+ g_d3d.get_device( )->GetScissorRect( &old_rect );
+
+ RECT new_rect{
+ x - 1, y - 1,
+ x + BOX_WIDTH + 22,
+ y + BOX_HEIGHT + 2
+ };
+
+ g_d3d.get_device( )->SetScissorRect( &new_rect );
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ clr_t bg_col( 0, 0, 0, 90 );
+ ui_draw_rect( x, y, BOX_WIDTH + 20, BOX_HEIGHT, bg_col );
+ ui_draw_outlined_rect( x - 1, y - 1, BOX_WIDTH + 22, BOX_HEIGHT + 2, ui_get_accent_col( ) );
+
+ for ( int i{ }; i < 100; i += 3 ) {
+ for ( int i2{ }; i2 < 100; i2 += 3 ) {
+ ui_draw_rect( x + i + 1, y + i2 + 1, 3, 3,
+ clr_t::from_hsb( m_hue, float( i2 ) * 0.01f, float( i ) * 0.01f ) );
+ }
+ }
+
+ if ( g_input.is_key_pressed( KEYS_MOUSE1 ) && !m_mouse_held
+ && mouse_x > x && mouse_x <= x + 100
+ && mouse_y > y && mouse_y <= y + 100 ) {
+
+ int mouse_x_c = std::clamp( mouse_x, x, x + 100 );
+ int mouse_y_c = std::clamp( mouse_y, y, y + 100 );
+
+ int delta_y = std::clamp( mouse_y_c - y, 0, 100 );
+ int delta_x = std::clamp( mouse_x_c - x, 0, 100 );
+
+ m_saturation = float( delta_y ) * 0.01f;
+ m_brightness = float( delta_x ) * 0.01f;
+ }
+
+ auto is_hue_slider_hovered = [&]( ) -> bool {
+ return mouse_x > x + 110 && mouse_x < x + 122
+ && mouse_y > y && mouse_y < y + 100;
+ };
+
+ auto draw_slider_hue = [&]( ) {
+ for ( int i{ }; i < 100; ++i ) {
+ auto cur_col = clr_t::from_hsb( float( i ) * 0.01f, m_saturation, m_brightness );
+
+ ui_draw_rect( x + 110, y + i + 1, 12, 2, cur_col );
+ }
+
+ ui_draw_outlined_rect( x + 109, y + int( m_hue * 100.f ) + 1, 14, 3,
+ is_hue_slider_hovered( ) ? ui_get_text_col( ) : ui_get_disabled_col( ) );
+ };
+
+ auto is_alpha_slider_hovered = [&]( ) -> bool {
+ return mouse_x > x + 1 && mouse_x < x + 122
+ && mouse_y > y + 110 && mouse_y < y + 124;
+ };
+
+ auto draw_slider_alpha = [&]( ) {
+ for ( int i{ 121 }; i >= 0; --i ) {
+ auto col = *m_setting;
+ col.a( ) = ( int )( float( i ) * 255.f / 121.f );
+
+ ui_draw_rect( x + i + 1, y + 110, 1, 12, col );
+ }
+
+ int a_pos = ( int )( float( m_alpha ) * 121.f / 255.f );
+ ui_draw_outlined_rect( x + 1 + a_pos, y + 109, 3, 14,
+ is_alpha_slider_hovered( ) ? ui_get_text_col( ) : ui_get_disabled_col( ) );
+ };
+
+ draw_slider_hue( );
+ if ( is_hue_slider_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ int delta = std::clamp( mouse_y - y, 0, 100 );
+ m_hue = float( delta ) * 0.01f;
+ }
+
+ draw_slider_alpha( );
+ if ( is_alpha_slider_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ int delta = std::clamp( mouse_x - x, 0, 121 );
+ m_alpha = ( int )( float( delta ) * 255.f / 121.f );
+ }
+
+ output( );
+
+ g_d3d.get_device( )->SetScissorRect( &old_rect );
+ }
+ else {
+ if ( is_hovered( ) ) {
+ ui_draw_rect( x - 1, y - 1, m_width + 2, m_height + 2, ui_get_text_col( ) );
+ }
+ ui_draw_rect( x, y, m_width, m_height, *m_setting );
+ }
+ }
+
+ protected:
+ clr_t* m_setting = nullptr;
+ bool m_active = false;
+ bool m_mouse_held = false;
+ float m_saturation = 1.0f;
+ float m_brightness = 1.0f;
+ float m_hue = 0.f;
+ uint8_t m_alpha = 255;
+ bool m_has_text = false;
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_draw.h b/legacy/loader/ui_draw.h new file mode 100644 index 0000000..46c91de --- /dev/null +++ b/legacy/loader/ui_draw.h @@ -0,0 +1,160 @@ +#pragma once
+#include <algorithm>
+
+#include "color.hpp"
+#include "d3d.hpp"
+#include "d3d_sprite.hpp"
+#include "input_system.hpp"
+#include "window.hpp"
+
+namespace ui
+{
+ /*__forceinline auto ui_get_background_texture( ) {
+ static auto buffer = std::make_shared< byte[ 512 ] >( );
+ static auto color = D3DCOLOR_RGBA( 27, 27, 27, 233 );
+ static auto color_bright = D3DCOLOR_RGBA( 31, 31, 31, 255 );
+ static IDirect3DTexture9* texture;
+
+ if ( !texture ) {
+ for ( int i = 0; i < 512; i += 4 ) {
+ *( ulong_t* )( uintptr_t( buffer.get( ) ) + i ) = !( i % 12 ) ? color : color_bright;
+ }
+
+ D3DXCreateTextureFromFileInMemory( g_d3d.get_device( ), buffer.get( ), 512, &texture );
+ }
+
+ return texture;
+ }*/
+
+ static float anim_time{ };
+
+ __forceinline void set_animtime( float animtime ) {
+ anim_time = animtime;
+ }
+
+ __forceinline void setup_sprites( IDirect3DDevice9* device ) {
+ //fuck msvc
+ //icons::sprite_legit.init( device, icons::legit_icon, icons::legit_size, 66, 66 );
+ //icons::sprite_visuals_.init( device, icons::legit_icon, icons::legit_size, 66, 66 );
+ //icons::sprite_rage.init( device, icons::rage_icon, icons::rage_size, 66, 66 );
+ //icons::sprite_visuals.init( device, icons::raw::visuals_raw, icons::visuals_size, 66, 66 );
+ //icons::sprite_misc.init( device, icons::misc_icon, icons::misc_size, 66, 66 );
+ //icons::sprite_config.init( device, icons::config_icon, icons::config_size, 66, 66 );
+ }
+
+ __forceinline clr_t ui_get_accent_col( ) {
+ static const clr_t col_start = clr_t( 231, 105, 105, 255 );
+ static const clr_t col_end = clr_t( 0xf4, 0x7c, 0xa8, 255 );
+
+ clr_t col = clr_t::blend( col_start, col_end, anim_time );
+
+ return col;
+ }
+
+ __forceinline clr_t& ui_get_disabled_col( ) {
+ static clr_t col = clr_t( 61, 61, 61, 255 );
+ return col;
+ }
+
+ __forceinline clr_t& ui_get_bg_col( ) {
+ static clr_t col = clr_t( 24, 25, 27, 255 );
+ return col;
+ }
+
+ __forceinline clr_t& ui_get_text_col( ) {
+ static clr_t col = clr_t( 221, 221, 221, 255 );
+ return col;
+ }
+
+ __forceinline void ui_draw_gradient( int x, int y, int w, int h, clr_t start,
+ clr_t end, GradientType_t type = GRADIENT_HORIZONTAL ) {
+
+ g_d3d.draw_gradient( start, end, x, y, w, h, type );
+ }
+
+ __forceinline void ui_draw_line( int x, int y, int x1, int y1, clr_t color ) {
+ g_d3d.draw_line( color, x, y, x1, y1 );
+ }
+
+ __forceinline void ui_draw_rect( int x, int y, int w, int h, clr_t color ) {
+ g_d3d.draw_filled_rect( color, x, y, w, h );
+ }
+
+ __forceinline void ui_draw_outlined_rect( int x, int y, int w, int h, clr_t color ) {
+ g_d3d.draw_rect( color, x, y, w, h );
+ }
+
+ __forceinline void ui_draw_circle( int x, int y, int r, clr_t color, int res = 48 ) {
+ g_d3d.draw_circle( color, x, y, r, res );
+ }
+
+ __forceinline void ui_draw_filled_circle( int x, int y, int r, clr_t color, int res = 48 ) {
+ g_d3d.draw_filled_circle( color, x, y, r, res );
+ }
+
+ __forceinline void ui_draw_string( int x, int y, bool center, clr_t color, const char* str, ... ) {
+ char buf[ 2048 ]{ };
+ va_list list{ };
+
+ __crt_va_start( list, str );
+ vsprintf_s( buf, 2048, str, list );
+ __crt_va_end( list );
+
+ g_d3d.draw_text( d3d::fonts.f_menu, color, x, y,
+ center ? ALIGN_CENTER : ALIGN_LEFT, D3DFONTFLAG_DROPSHADOW, buf );
+ }
+
+ __forceinline void ui_get_text_size( int& w, int& h, const char* text, ... ) {
+ char* buf = ( char* )_alloca( 2048 );
+ va_list list{ };
+
+ __crt_va_start( list, text );
+ vsprintf_s( buf, 2048, text, list );
+ __crt_va_end( list );
+
+ w = g_d3d.get_text_width( d3d::fonts.f_menu, 0, buf );
+ h = g_d3d.get_text_height( d3d::fonts.f_menu, 0, buf );
+ }
+
+ __forceinline void ui_get_cursor_pos( int& x, int& y ) {
+ POINT p;
+ GetCursorPos( &p );
+ ScreenToClient( g_window.get_hwnd( ), &p );
+ x = p.x; y = p.y;
+ }
+
+ __forceinline float ui_get_frametime( ) {
+ return 0.0152f;
+ //return g_csgo.m_frametime;
+ }
+
+ __forceinline void ui_draw_cursor( ) {
+ const clr_t black( 0, 0, 0, 255 ), accent( ui_get_accent_col( ) );
+ int x, y;
+ ui_get_cursor_pos( x, y );
+
+
+ for ( int i{ }; i <= 9; ++i ) {
+ ui_draw_line( x, y, x + i, y + 11, accent );
+ }
+
+ for ( int i{ }; i <= 7; ++i ) {
+ ui_draw_line( x, y + 9 + i, x + i, y + 9, accent );
+ }
+
+ for ( int i{ }; i <= 3; ++i ) {
+ ui_draw_line( x + 6 + i, y + 11, x, y + i, accent );
+ }
+
+ ui_draw_line( x + 5, y + 11, x + 8, y + 18, accent );
+ ui_draw_line( x + 4, y + 11, x + 7, y + 18, accent );
+
+ ui_draw_line( x, y, x, y + 17, black );
+ ui_draw_line( x, y + 17, x + 3, y + 14, black );
+ ui_draw_line( x + 4, y + 14, x + 7, y + 19, black );
+ ui_draw_line( x + 7, y + 18, x + 9, y + 18, black );
+ ui_draw_line( x + 10, y + 18, x + 7, y + 12, black );
+ ui_draw_line( x + 7, y + 12, x + 11, y + 12, black );
+ ui_draw_line( x + 11, y + 12, x, y, black );
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/ui_dropdown.h b/legacy/loader/ui_dropdown.h new file mode 100644 index 0000000..ea626bc --- /dev/null +++ b/legacy/loader/ui_dropdown.h @@ -0,0 +1,217 @@ +#pragma once +#include "ui_dropdown_item.h" + +namespace ui +{ + template < typename t = int > + class c_dropdown : public base_item { + public: + c_dropdown( int x, int y, int w, const char* name, t* setting, + std::vector< dropdowns::dropdown_item_t< t > >* items, size_t max_items = 8 ) : + base_item( x, y, w, 16, name ), m_dropdown_items( items ), m_setting( setting ), + m_max_items( max_items ) { } + + virtual bool is_hovered( ) override { + if ( m_disabled ) return false; + + int x = get_relative_x( ); + int y = get_relative_y( ) + 12; + int h = m_height; + + int mouse_x, mouse_y; + ui_get_cursor_pos( mouse_x, mouse_y ); + + + return mouse_x >= x && mouse_x <= x + m_width + && mouse_y >= y && mouse_y <= y + h; + } + + inline bool is_any_item_hovered( ) { + if ( m_disabled || !m_active ) return false; + + int x = get_relative_x( ); + int y = get_relative_y( ) + m_height + 12; + int h = m_height * ( std::min< size_t >( + m_dropdown_items->size( ), m_max_items ) ); + + int mouse_x, mouse_y; + ui_get_cursor_pos( mouse_x, mouse_y ); + + + return mouse_x >= x && mouse_x <= x + m_width + && mouse_y >= y && mouse_y <= y + h; + } + + virtual int get_total_height( ) const override { + return m_height + 13; + } + + void draw_box( const int& x, const int& y, const char* str, bool hovered = false ) { + ui_draw_rect( x, y, m_width, m_height, hovered ? ui_get_disabled_col( ) : ui_get_bg_col( ) ); + ui_draw_line( x, y + m_height, x + m_width, y + m_height, ui_get_accent_col( ) ); + + ui_draw_string( x + m_width / 2, y + 2, true, ui_get_text_col( ), str ); + } + + void update_value( ) { + for ( auto& it : *m_dropdown_items ) { + if ( it.m_value == *m_setting ) { + m_selected_item = ⁢ + } + } + } + + void draw_items( const int& x, const int& y ) { + auto& items = *m_dropdown_items; + auto it = &items.front( ); + int offset = m_height + 1; + int hovered = 0; + int mouse_x, mouse_y; + ui_get_cursor_pos( mouse_x, mouse_y ); + + auto is_hovered = [ & ] ( int y_offset ) { + return mouse_x >= x && mouse_x <= x + m_width + && mouse_y >= y + y_offset && mouse_y <= y + y_offset + m_height; + }; + + + for ( size_t i = items.size( ) > m_max_items ? m_curr_scroll : 0; + i < std::min< size_t >( m_dropdown_items->size( ), m_max_items + m_curr_scroll ); + ++i, offset += m_height + 1 + ) { + it = &items.at( i ); + + draw_box( x, y + offset, it->m_name ); + + if ( is_hovered( offset ) ) { + hovered = offset; + if ( g_input.is_key_pressed( KEYS_MOUSE1 ) ) { + m_selected_item = it; + *m_setting = it->m_value; + m_active = false; + m_enable_time = GetTickCount( ) * 0.001f + 0.220f; + m_enable_next_frame = true; + } + } + } + + if ( hovered ) { + ui_draw_outlined_rect( x - 1, y - 1 + hovered, + m_width + 1, m_height + 1, ui_get_text_col( ) ); + } + } + + void input( ) { + bool active_backup = m_active; + bool active_changed = false; + + if ( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) { + if ( !m_mouse_held ) { + m_active = !m_active; + } + m_mouse_held = true; + } + else if ( !is_any_item_hovered( ) ) { + m_mouse_held = false; + } + + if ( !is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) && !is_any_item_hovered( ) ) { + m_active = false; + } + + if ( GetTickCount( ) * 0.001f > m_enable_time && m_enable_next_frame ) { + set_disabled_callbacks( false ); + m_enable_next_frame = false; + } + + + active_changed = m_active != active_backup; + //disable input on all items + if ( active_changed ) { + if ( !m_active ) { + m_enable_time = GetTickCount( ) * 0.001f + 0.220f; + m_enable_next_frame = true; + } + else { + set_disabled_callbacks( true ); + } + } + + if ( m_selected_item ) { + *m_setting = m_selected_item->m_value; + } + + if ( m_active && m_dropdown_items->size( ) > m_max_items ) { + int scroll_input = g_input.get_scroll_state( ); + + if ( m_curr_scroll > 0 || scroll_input < 0 ) //we dont want scroll to loop around from 0 to max + m_curr_scroll -= scroll_input; //because positive is scroll up, we gotta flip it + + if ( m_curr_scroll > m_dropdown_items->size( ) - m_max_items ) + m_curr_scroll = m_dropdown_items->size( ) - m_max_items; + } + } + + virtual void render( ) override { + int x = get_relative_x( ); + int y = get_relative_y( ); + + bool restore = false; + RECT prev_rect{ }; + + if ( m_active ) { + restore = true; + g_d3d.get_device( )->GetScissorRect( &prev_rect ); + + RECT new_rect{ + prev_rect.left, + prev_rect.top, + g_d3d.m_width, + g_d3d.m_height, + }; + + g_d3d.get_device( )->SetScissorRect( &new_rect ); + + draw_items( x, y + 11 ); + + + //draw scrollbar + size_t total_items = m_dropdown_items->size( ); + if ( total_items > m_max_items ) { + const size_t height = ( m_height + 1 ) * m_max_items; + const float slider_step = ( float )( height ) / float( total_items - m_max_items + 1 ); + + size_t slider_pos = static_cast< size_t >( slider_step * m_curr_scroll ); + ui_draw_rect( x + m_width - 1, y + slider_pos + m_height + 13, 2, ( int )slider_step, ui_get_accent_col( ) ); + } + } + + update_value( ); + input( ); + + ui_draw_string( x + 2, y, false, ui_get_text_col( ), m_text ); + ui_draw_rect( x, y + 13, m_width, m_height, ui_get_disabled_col( ) ); + ui_draw_outlined_rect( x - 1, y + 12, m_width + 1, m_height + 1, + is_hovered( ) || m_active ? ui_get_text_col( ) : ui_get_accent_col( ) ); + + if ( m_selected_item ) { + ui_draw_string( x + m_width / 2, y + 14, true, ui_get_text_col( ), m_selected_item->m_name ); + } + + if( restore ) { + g_d3d.get_device( )->SetScissorRect( &prev_rect ); + } + } + + protected: + std::vector< dropdowns::dropdown_item_t< t > >* m_dropdown_items{ }; + dropdowns::dropdown_item_t< t >* m_selected_item{ }; + bool m_active = false; + bool m_mouse_held = false; + t* m_setting{ }; + size_t m_max_items{ }; + size_t m_curr_scroll{ }; + float m_enable_time{ }; + int m_enable_next_frame{ }; + }; +}
\ No newline at end of file diff --git a/legacy/loader/ui_dropdown_item.h b/legacy/loader/ui_dropdown_item.h new file mode 100644 index 0000000..9ffa60d --- /dev/null +++ b/legacy/loader/ui_dropdown_item.h @@ -0,0 +1,22 @@ +#pragma once + +#include "ui_base_item.h" + +namespace ui +{ + namespace dropdowns + { + template < typename t = int > + struct dropdown_item_t { + const char* m_name; + t m_value; + }; + + std::vector< dropdown_item_t< > > games = { + { xors( "csgo" ), 1 }, + { xors( "csgo (beta)" ), 3 }, + { xors( "tf2" ), 2 }, + { xors( "gmod (beta)" ), 4 } + }; + } +}
\ No newline at end of file diff --git a/legacy/loader/ui_form.h b/legacy/loader/ui_form.h new file mode 100644 index 0000000..2fdf6e7 --- /dev/null +++ b/legacy/loader/ui_form.h @@ -0,0 +1,130 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_form : public base_item {
+ public:
+ c_form( int x, int y, int w, int h, const char* name, int max_h = 0 ) :
+ base_item( x, y, w, h, name ), m_dynamic( !h ), m_max_height( max_h ) { };
+
+ virtual int x( ) const override {
+ return m_x + 10;
+ }
+
+ virtual int y( ) const override {
+ return m_y + m_scroll_offset + 9;
+ }
+
+ virtual bool is_form( ) const override {
+ return true;
+ }
+
+ virtual bool is_hovered( ) override {
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ return mouse_x > x && mouse_x < x + w( )
+ && mouse_y > y && mouse_y < y + h( );
+ }
+
+ inline void update_size( ) {
+ if ( !m_dynamic ) return;
+
+ int total_height{ ITEM_OFFSET * 2 };
+ for ( auto& it : m_items ) {
+ if ( it->get_visible( ) ) {
+ auto item_height = it->get_total_height( ) + ITEM_OFFSET;
+ if( m_max_height && total_height + item_height > m_max_height ) {
+ total_height = m_max_height;
+ break;
+ }
+ total_height += it->get_total_height( ) + ITEM_OFFSET;
+ }
+ }
+
+ m_height = total_height;
+ }
+
+ virtual int get_total_height( ) const override {
+ return m_height + 5;
+ }
+
+ int get_total_item_height( ) {
+ int total_height{ ITEM_OFFSET * 2 };
+ for( auto& it : m_items ) {
+ if( it->get_visible( ) ) {
+ auto item_height = it->get_total_height( ) + ITEM_OFFSET;
+ total_height += it->get_total_height( ) + ITEM_OFFSET;
+ }
+ }
+
+ return total_height;
+ }
+
+ void input( ) {
+ if( m_max_height && get_total_item_height( ) > m_max_height ) {
+ if( !m_disabled && is_hovered( ) ) {
+ auto scroll_state = g_input.get_scroll_state( );
+ if( !!scroll_state && m_was_hovered ) {
+ scroll_state > 0 ? m_scroll_offset += 13 : m_scroll_offset -= 13;
+ }
+ m_scroll_offset = std::clamp( m_scroll_offset, -( get_total_item_height( ) - m_height + 3 ), 0 );
+ }
+ }
+ else {
+ m_scroll_offset = 0;
+ }
+ }
+
+ virtual void render( ) override {
+ update_size( );
+ input( );
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ int text_w, text_h;
+ ui_get_text_size( text_w, text_h, m_text );
+
+ for( int i{ }; i < 8; ++i ) {
+ clr_t col = ui_get_bg_col( ) * ( 0.72f + i * 0.04f );
+ ui_draw_rect( x, y + i, m_width, m_height - i * 2, col );
+ }
+
+ ui_draw_outlined_rect( x, y, m_width, m_height, ui_get_accent_col( ) );
+
+ if( m_max_height && get_total_item_height( ) > m_height ) {
+ const size_t height = get_total_height( ) - 20;
+ const float delta = ( float )( get_total_item_height( ) - height + 1 );
+ const float slider_step = ( ( float )( height ) / delta );
+ const float slider_height = slider_step * 13.f;
+
+ size_t slider_pos = static_cast< size_t >( slider_step * m_scroll_offset );
+ ui_draw_rect( x + m_width - 7, y + 8, 4, height, ui_get_disabled_col( ) );
+ ui_draw_rect( x + m_width - 7, y - slider_pos + 8, 4, ( int )slider_height + 1, ui_get_accent_col( ) );
+ }
+
+ if( is_hovered( ) != m_was_hovered ) {
+ bool backup = m_disabled;
+ if( !backup ) {
+ set_disabled( !is_hovered( ) );
+ }
+ m_disabled = backup;
+ }
+
+ ui_draw_line( x + 3, y, x + text_w + 1, y, ui_get_bg_col( ) );
+ ui_draw_string( x + 3, y - 7, false, ui_get_text_col( ), m_text );
+
+ m_was_hovered = is_hovered( );
+ }
+
+ protected:
+ bool m_dynamic{ };
+ bool m_was_hovered{ };
+ int m_max_height{ };
+ int m_scroll_offset{ };
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_key_picker.h b/legacy/loader/ui_key_picker.h new file mode 100644 index 0000000..03aed84 --- /dev/null +++ b/legacy/loader/ui_key_picker.h @@ -0,0 +1,164 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_key_picker : public base_item {
+ public:
+ c_key_picker( int x, int y, int w, const char* name, int* setting ) :
+ base_item( x, y, w, 16, name ), m_setting( setting ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int x = get_relative_x( );
+ int y = get_relative_y( ) + 12;
+ int h = m_height;
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+
+ return mouse_x >= x && mouse_x <= x + m_width
+ && mouse_y >= y && mouse_y <= y + h;
+ }
+
+ virtual int get_total_height( ) const override {
+ return m_height + 12;
+ }
+
+ void input( ) {
+ bool active_backup = m_active;
+ bool active_changed = false;
+
+ if ( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ if ( !m_mouse_held ) {
+ m_active = true;
+ }
+ m_mouse_held = true;
+ }
+
+ if ( g_input.is_key_pressed( KEYS_ESCAPE ) ) {
+ m_active = false;
+ *m_setting = KEYS_NONE;
+ }
+
+ if ( m_active && !m_mouse_held ) {
+ int key = g_input.is_any_key_pressed( );
+ if ( key != KEYS_NONE ) {
+ *m_setting = key;
+ m_active = false;
+ }
+ }
+
+ active_changed = active_backup != m_active;
+ if ( active_changed ) {
+ set_disabled_callbacks( m_active );
+ }
+ }
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ input( );
+
+ ui_draw_string( x + 2, y, false, ui_get_text_col( ), m_text );
+ ui_draw_rect( x, y + 13, m_width, m_height, ui_get_disabled_col( ) );
+ ui_draw_outlined_rect( x - 1, y + 12, m_width + 1, m_height + 1,
+ is_hovered( ) || m_active ? ui_get_text_col( ) : ui_get_accent_col( ) );
+
+ ui_draw_string( x + m_width / 2, y + 14, true, ui_get_text_col( ),
+ g_input.get_key_name( ( VirtualKeys_t )*m_setting ) );
+ }
+
+ protected:
+ int* m_setting{ };
+ bool m_active{ };
+ bool m_mouse_held{ };
+ };
+
+ //skEeT PiCkErS
+ class c_key_picker_small : public base_item {
+ public:
+ c_key_picker_small( int x, int y, int* setting ) :
+ base_item( x, y, 0, 0, xors( "KEY_PICKER" ) ), m_setting( setting ) { }
+
+ virtual int get_total_height( ) const override {
+ const char* name = g_input.get_short_name( ( VirtualKeys_t )*m_setting );
+ int w, h;
+ ui_get_text_size( w, h, name );
+
+ return h;
+ }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ const char* name = g_input.get_short_name( ( VirtualKeys_t )*m_setting );
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+ int mouse_x, mouse_y;
+ int w, h;
+
+ ui_get_text_size( w, h, "[%s]", name );
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ return mouse_x >= x - w && mouse_x <= x
+ && mouse_y >= y && mouse_y <= y + h;
+ }
+
+ void input( ) {
+
+ bool active_backup = m_active;
+ bool active_changed = false;
+
+ if ( g_input.is_key_pressed( KEYS_ESCAPE ) ) {
+ m_active = false;
+ *m_setting = KEYS_NONE;
+ }
+
+ if ( m_active && !m_mouse_held ) {
+ int key = g_input.is_any_key_pressed( );
+ if ( key != KEYS_NONE ) {
+ *m_setting = key;
+ m_active = false;
+ }
+ }
+
+ if ( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) {
+ if ( !m_mouse_held ) {
+ m_active = true;
+ }
+ m_mouse_held = true;
+ }
+ else {
+ m_mouse_held = false;
+ }
+
+ active_changed = active_backup != m_active;
+ if ( active_changed ) {
+ set_disabled_callbacks( m_active );
+ }
+ }
+
+ virtual void render( ) override {
+ const char* name = g_input.get_short_name( ( VirtualKeys_t )*m_setting );
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ int w, h;
+ ui_get_text_size( w, h, "[%s]", name );
+
+ input( );
+
+ ui_draw_string( x - w, y, false, is_hovered( ) || m_active ?
+ ui_get_accent_col( ) : ui_get_text_col( ), "[%s]", name );
+ }
+
+ protected:
+ int* m_setting;
+ bool m_active{ };
+ bool m_mouse_held{ };
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_label.h b/legacy/loader/ui_label.h new file mode 100644 index 0000000..9df46b5 --- /dev/null +++ b/legacy/loader/ui_label.h @@ -0,0 +1,18 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_label : public base_item {
+ public:
+ c_label( int x, int y, const char* text ) :
+ base_item( x, y, 0, 16, text ) { }
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ ui_draw_string( x + 2, y + 2, false, ui_get_text_col( ), m_text );
+ }
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_menu.h b/legacy/loader/ui_menu.h new file mode 100644 index 0000000..c7406b5 --- /dev/null +++ b/legacy/loader/ui_menu.h @@ -0,0 +1,104 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_menu : public base_item {
+ public:
+ c_menu( int start_x, int start_y, int width,
+ int height, const char* name, const char* right_text = nullptr ) :
+ base_item( start_x, start_y, width, height, name ),
+ m_right_text( right_text ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ return mouse_x >= m_x && mouse_x <= m_x + w( )
+ && mouse_y >= m_y && mouse_y <= m_y + 19;
+ }
+
+ virtual int y( ) const override {
+ return m_y + 19;
+ }
+
+ inline void input( ) {
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+ bool mouse_clicked = g_input.is_key_pressed( KEYS_MOUSE1 );
+ bool window_hovered = GetActiveWindow( ) == g_window.get_hwnd( );
+
+ RECT cur_rect{ };
+ GetWindowRect( g_window.get_hwnd( ), &cur_rect );
+
+ POINT p{ cur_rect.left, cur_rect.top };
+ ScreenToClient( g_window.get_hwnd( ), &p );
+
+ if( !window_hovered ) {
+ m_mouse_held = false;
+ mouse_clicked = false;
+ return;
+ }
+
+ if ( is_hovered( ) ) {
+ m_mouse_held = true;
+ }
+
+ if ( !mouse_clicked ) {
+ m_mouse_held = is_hovered( );
+ }
+
+ if ( m_mouse_held && !mouse_clicked ) {
+ m_drag_offset_y = mouse_y - p.y;
+ m_drag_offset_x = mouse_x - p.x;
+ }
+
+ if ( m_mouse_held && mouse_clicked ) {
+ int new_x = mouse_x - m_drag_offset_x + cur_rect.left;
+ int new_y = mouse_y - m_drag_offset_y + cur_rect.top;
+
+ MoveWindow( g_window.get_hwnd( ), new_x, new_y, 451, 376, true );
+ }
+ }
+
+ virtual void render( ) override {
+ constexpr auto top_height = 19;
+
+ input( );
+
+ //draw a c00l shadow
+ ui_draw_outlined_rect( m_x, m_y + 1, m_width + 1, m_height, clr_t( 0, 0, 0, 166 ) );
+
+ ui_draw_rect( m_x + 1, m_y + 1, m_width - 1, top_height - 2, ui_get_bg_col( ) * 1.2f );
+ if( is_hovered( ) ) {
+ ui_draw_rect( m_x + 1, m_y + 1, m_width - 1, top_height - 2, clr_t( 61, 61, 61 ) );
+ }
+
+ for( int i{ }; i < 8; ++i ) {
+ clr_t col = ui_get_bg_col( ) * ( 0.72f + i * 0.04f );
+ ui_draw_rect( m_x, m_y + i + top_height - 1, m_width, m_height - i * 2 - top_height + 1, col );
+ }
+ ui_draw_outlined_rect( m_x, m_y, m_width, m_height, ui_get_accent_col( ) );
+
+ if( m_right_text ) {
+ ui_draw_string( m_x + 5, m_y + 4, false, ui_get_text_col( ), m_text );
+
+ int width, height;
+ ui_get_text_size( width, height, m_right_text );
+
+ ui_draw_string( m_x + m_width - 5 - width, m_y + 4, false, ui_get_text_col( ), m_right_text );
+ }
+ else {
+ ui_draw_string( m_x + m_width / 2, m_y + 4, true, ui_get_text_col( ), m_text );
+ }
+ }
+
+ protected:
+ int m_drag_offset_x{ };
+ int m_drag_offset_y{ };
+ bool m_mouse_held{ };
+ const char* m_right_text{ };
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_progressbar.h b/legacy/loader/ui_progressbar.h new file mode 100644 index 0000000..33bcf65 --- /dev/null +++ b/legacy/loader/ui_progressbar.h @@ -0,0 +1,44 @@ +#pragma once
+#include "ui_base_item.h"
+
+namespace ui
+{
+ class c_progress_bar : public base_item {
+ public:
+ c_progress_bar( int x, int y, int w, float* progress ) :
+ base_item( x, y, w, 4, xors( "PROGRESS_BAR" ) ),
+ m_progress( progress ) { }
+
+
+ virtual void render( ) override {
+ static const clr_t col_start = clr_t( 231, 105, 105, 255 );
+ static const clr_t col_end = clr_t( 0xf4, 0x7c, 0xa8, 255 );
+
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+
+ ui_draw_rect( x, y, m_width, m_height, ui_get_disabled_col( ) );
+
+ if( *m_progress > 0.001f ) {
+ int fill = *m_progress * m_width;
+
+ bool reverse = false;
+ for( int i{ }; i < fill; ++i ) {
+ float progress = std::fmod( float( i ) / fill - ( anim_time ), 1.f );
+ if( progress == 1.0f ) reverse = true;
+ if( reverse ) {
+ progress = 1.0f - progress;
+ }
+
+ clr_t col = clr_t::blend( col_start, col_end, progress );
+
+
+ ui_draw_rect( x + i, y, 1, m_height, col );
+ }
+ }
+ }
+
+ private:
+ float* m_progress;
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_render.h b/legacy/loader/ui_render.h new file mode 100644 index 0000000..6dd27cc --- /dev/null +++ b/legacy/loader/ui_render.h @@ -0,0 +1,57 @@ +#pragma once
+
+#include "ui_base_item.h"
+
+namespace ui
+{
+ //recursively render all items
+ static void render_item( base_item* item, int offset = 0, bool allow_rect = true ) {
+ if ( !item->get_visible( ) ) return;
+
+ item->reset( );
+ item->render( );
+ bool reset = false;
+ RECT original;
+
+ if( allow_rect && item->is_form( ) ) {
+ auto device = g_d3d.get_device( );
+ device->GetScissorRect( &original );
+
+ auto x = item->get_relative_x( );
+ auto y = item->get_relative_y( );
+
+ RECT new_rect{
+ x,
+ y + 4,
+ x + item->w( ),
+ y + item->get_total_height( ) - 7
+ };
+
+ device->SetScissorRect( &new_rect );
+ reset = true;
+ }
+
+ if ( item->get_items( ).size( ) ) {
+ //madr0fl
+ int* height_offset = ( int* )_alloca( sizeof( int ) * item->get_items( ).size( ) );
+ int cur_offset = 0;
+ for ( int i = ( int )item->get_items( ).size( ) - 1; i >= 0; --i ) {
+ auto& cur_item = item->get_items( )[ i ];
+ height_offset[ i ] = cur_offset;
+ cur_offset += cur_item->get_visible( ) ? cur_item->get_total_height( ) + ITEM_OFFSET : 0;
+ }
+
+ int i{ };
+ for ( auto& it : item->get_items( ) ) {
+ item->set_y_offset( height_offset[ i ] );
+ render_item( it.get( ), height_offset[ i ], !reset && allow_rect );
+ ++i;
+ }
+ }
+
+ if( reset ) {
+ auto device = g_d3d.get_device( );
+ device->SetScissorRect( &original );
+ }
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/ui_slider.h b/legacy/loader/ui_slider.h new file mode 100644 index 0000000..0e55a73 --- /dev/null +++ b/legacy/loader/ui_slider.h @@ -0,0 +1,165 @@ +#pragma once
+
+#include "ui_base_item.h"
+
+namespace ui
+{
+ template < typename t >
+ class c_slider : public base_item {
+ public:
+ c_slider( int x, int y, int w, t min, t max, const char* text, t* setting, t full, const char* suffix = 0 ) :
+ base_item( x, y, w, 5, text ), m_setting( setting ), m_suffix( suffix ),
+ m_min( float( min ) ), m_max( float( max ) ), m_full( full ), m_has_text( true ) { };
+
+ c_slider( int x, int y, int w, t min, t max, const char* text, t* setting, const char* suffix = 0 ) :
+ base_item( x, y, w, 5, text ), m_setting( setting ), m_suffix( suffix ),
+ m_min( float( min ) ), m_max( float( max ) ), m_full( max ), m_has_text( true ) { };
+
+ c_slider( int x, int y, int w, t min, t max, t* setting, const char* suffix = 0 ) :
+ base_item( x, y, w, 5, nullptr ), m_setting( setting ), m_suffix( suffix ),
+ m_min( float( min ) ), m_max( float( max ) ), m_full( max ), m_has_text( false ) { }
+
+ virtual bool is_hovered( ) override {
+ if ( m_disabled ) return false;
+
+ int x = get_relative_x( );
+ int y = get_relative_y( ) + ( m_has_text ? 11 : 2 );
+
+ int mouse_x, mouse_y;
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ if( !m_has_text ) {
+ x += 4;
+ return mouse_x >= x && mouse_x <= x + m_width - 8
+ && mouse_y >= y && mouse_y <= y + m_height + 2;
+ }
+
+ return mouse_x >= x - 1 && mouse_x <= x + m_width + 1
+ && mouse_y >= y && mouse_y <= y + m_height + 2;
+ }
+
+ void input( ) {
+ bool mouse_clicked = g_input.is_key_pressed( KEYS_MOUSE1 );
+ bool hovered = is_hovered( );
+ float progress = 0.f;
+ int x = get_relative_x( );
+ int y = get_relative_y( ) + 2;
+ int mouse_x, mouse_y;
+
+ *m_setting = ( t )( std::clamp< float >( *m_setting, m_min, m_max ) );
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ if ( hovered && mouse_clicked ) {
+
+ float progress{ };
+
+ if( m_has_text ) {
+ progress = std::clamp< float >( float( mouse_x - x ) / ( m_width - 3 ), 0.f, 1.0f );
+ }
+ else {
+ progress = std::clamp< float >( float( mouse_x - x - 4 ) / ( m_width - 10 ), 0.f, 1.0f );
+ }
+
+ *m_setting = progress == 1.0f ? m_full : ( t )( ( ( m_max - m_min ) * progress ) + m_min );
+ }
+
+ if( !m_has_text ) {
+ bool y_hover = mouse_y >= y && mouse_y <= y + m_height + 1;
+
+ bool minus_hovered = mouse_x >= x - 1 && mouse_x <= x + 3 && y_hover;
+ bool plus_hovered = mouse_x >= x + m_width - 2 && mouse_x <= x + m_width + 2 && y_hover;
+
+ if( mouse_clicked ) {
+ if( !m_mouse_held ) {
+ if( !std::is_floating_point< t >::value ) {
+ if( minus_hovered ) *m_setting -= ( t )1;
+ if( plus_hovered ) *m_setting += ( t )1;
+ }
+ else if( m_max - m_min <= 2.0f ) {
+ if( minus_hovered ) *m_setting -= ( t )0.1f;
+ if( plus_hovered ) *m_setting += ( t )0.1f;
+ }
+ }
+
+ m_mouse_held = true;
+ }
+ else {
+ m_mouse_held = false;
+ }
+ }
+ };
+
+ void draw_slider( int x, int y ) {
+ float val = float( *m_setting );
+ float progress = ( val - m_min ) / ( m_max - m_min );
+
+ ui_draw_rect( x, y, m_width, m_height, ui_get_disabled_col( ) );
+
+ ui_draw_rect( x, y, ( int )( ( m_width - 3 ) * progress ), m_height, ui_get_accent_col( ) );
+ ui_draw_rect( x + ( int )( ( m_width - 3 ) * progress ), y, 3, m_height,
+ is_hovered( ) ? ui_get_text_col( ) : ui_get_accent_col( ) * 0.7f );
+ }
+
+ void draw_slider_small( int x, int y ) {
+ float val = float( *m_setting );
+ float progress = ( val - m_min ) / ( m_max - m_min );
+ x -= 1; //i couldnt be fucked
+
+ ui_draw_rect( x + 5, y, m_width - 8, m_height, ui_get_disabled_col( ) );
+
+ ui_draw_rect( x + 5, y, ( int )( ( m_width - 10 ) * progress ), m_height, ui_get_accent_col( ) );
+ ui_draw_rect( x + ( int )( ( m_width - 10 ) * progress ) + 3, y, 3, m_height,
+ is_hovered( ) ? ui_get_text_col( ) : ui_get_accent_col( ) * 0.7f );
+
+ ui_draw_string( x, y - 3, false, ui_get_text_col( ), "-" );
+ ui_draw_string( x + m_width - 2, y - 3, false, ui_get_text_col( ), "+" );
+
+ char val_str[ 12 ];
+ if( m_suffix )
+ sprintf_s( val_str, 12, t( 0.1f ) == t( 0 ) ? "%d %s" : "%0.2f %s", *m_setting, m_suffix );
+ else
+ sprintf_s( val_str, 12, t( 0.1f ) == t( 0 ) ? "%d" : "%0.2f", *m_setting );
+
+ ui_draw_string( x + ( int )( ( m_width - 8 ) * progress ) + 3, y + 2, true, ui_get_text_col( ), val_str );
+ }
+
+ virtual int get_total_height( ) const override {
+ return m_height + ( m_has_text ? 12 : 6 );
+ }
+
+ virtual void render( ) override {
+ int x = get_relative_x( );
+ int y = get_relative_y( );
+ int text_w, text_h;
+ char val[ 12 ];
+
+ input( );
+
+ //weird hacky fix for floating point vars
+ if ( m_suffix )
+ sprintf_s( val, 12, t( 0.1f ) == t( 0 ) ? "%d %s" : "%0.2f %s", *m_setting, m_suffix );
+ else
+ sprintf_s( val, 12, t( 0.1f ) == t( 0 ) ? "%d" : "%0.2f", *m_setting );
+
+ if( m_has_text ) {
+ ui_draw_string( x + 2, y, false, ui_get_text_col( ), m_text );
+ ui_get_text_size( text_w, text_h, val );
+ ui_draw_string( x + m_width - text_w - 1, y, false, ui_get_text_col( ), val );
+ draw_slider( x, y + 12 );
+ }
+ else {
+ draw_slider_small( x, y + 2 );
+ }
+ }
+
+
+ protected:
+ t* m_setting;
+ t m_full;
+ float m_min;
+ float m_max;
+ bool m_has_text = true;
+ const char* m_suffix;
+ bool m_mouse_held = false;
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_tab_manager.h b/legacy/loader/ui_tab_manager.h new file mode 100644 index 0000000..cf8dff6 --- /dev/null +++ b/legacy/loader/ui_tab_manager.h @@ -0,0 +1,224 @@ +#pragma once
+#include "ui_base_item.h"
+
+
+
+namespace ui
+{
+ namespace {
+ constexpr int BUTTON_WIDTH = 120;
+ constexpr int BUTTON_HEIGHT = 80;
+
+ constexpr int SUBTAB_HEIGHT = 25;
+ }
+
+ class c_tab_sheet : public base_item {
+ public:
+ c_tab_sheet( const char* tab_name ) :
+ base_item( 0, 0, 0, 0, tab_name ),
+ m_fade_progress( 0 ) { };
+
+ c_tab_sheet( const char* tab_name, d3d::c_sprite* sprite ) :
+ base_item( 0, 0, 0, 0, tab_name ), m_sprite( sprite ),
+ m_fade_progress( 0.f ) { };
+
+ virtual void render( ) override { };
+ virtual bool is_hovered( ) override {
+ return false;
+ };
+
+ public:
+ float m_fade_progress{ };
+ d3d::c_sprite* m_sprite{ };
+ };
+
+
+ class c_tab_manager : public base_item {
+ public:
+ c_tab_manager( ) : base_item( BUTTON_WIDTH + 11, 0, 0, 0,
+ xors( "TAB_MANAGER" ) ) { };
+
+ virtual bool is_hovered( ) override {
+ return false;
+ }
+
+ inline void scale_button_fade( c_tab_sheet* item, bool hovered ) {
+ if ( hovered ) {
+ constexpr float frequency = 1.f / 0.3f;
+ const float step = ui_get_frametime( ) * frequency;
+
+ item->m_fade_progress = std::clamp( item->m_fade_progress + step, 0.f, 0.8f );
+ }
+ else {
+ item->m_fade_progress = 0.f;
+ }
+ }
+
+ auto get_selected_tab( ) {
+ return m_selected_tab;
+ }
+
+ void draw_tab_button( decltype( m_parent )& button, int start, bool hovered ) {
+ auto item = ( c_tab_sheet* )button.get( );
+ auto text = item->get_text( );
+ auto parent_x = m_parent->x( ) + 5;
+ auto parent_y = m_parent->y( ) + 5;
+ int item_height = BUTTON_HEIGHT;
+
+ scale_button_fade( item, hovered );
+
+ ui_draw_rect( parent_x, parent_y + start, BUTTON_WIDTH + 1,
+ item_height + 1, ui_get_bg_col( ) );
+
+ ui_draw_line( parent_x + BUTTON_WIDTH - 8, parent_y + start - 1,
+ parent_x + BUTTON_WIDTH - 8, parent_y + start + BUTTON_HEIGHT + 2,
+ ui_get_disabled_col( ) );
+
+ if( hovered ) {
+ ui_draw_line( parent_x + BUTTON_WIDTH - 8, parent_y + start - 1,
+ parent_x + BUTTON_WIDTH - 8, parent_y + start + BUTTON_HEIGHT + 2,
+ ui_get_accent_col( ) * ( item->m_fade_progress + 0.2f ) * 0.8f );
+ }
+
+ if( item->m_sprite ) {
+ auto sprite_color = hovered ? ui_get_text_col( ) * ( ( item->m_fade_progress + 0.3f ) * 0.7f ) : ui_get_disabled_col( );
+ item->m_sprite->draw( parent_x + ( BUTTON_WIDTH - 8 ) / 2 - 2,
+ parent_y + BUTTON_HEIGHT / 2 + start, sprite_color );
+ }
+ }
+
+ inline bool is_button_hovered( int start ) {
+ auto item_x = m_parent->x( ) + 5;
+ auto item_y = m_parent->y( ) + 5 + start;
+ int item_height = BUTTON_HEIGHT;
+ int mouse_x, mouse_y;
+
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ return mouse_x >= item_x && mouse_x <= item_x + BUTTON_WIDTH - 8
+ && mouse_y >= item_y && mouse_y <= item_y + item_height;
+ }
+
+ virtual void render( ) override {
+ if ( !m_items.empty( ) ) {
+ int cur_y{ 10 };
+ for ( auto& it : m_items ) {
+ it->set_visible( false );
+ bool hovered = is_button_hovered( cur_y );
+ if ( g_input.is_key_pressed( KEYS_MOUSE1 ) && hovered ) {
+ //fix items that disable input mess it up when changing tabs
+ set_disabled_callbacks( false );
+ m_selected_tab = it;
+ }
+
+ draw_tab_button( it, cur_y, hovered || it == m_selected_tab );
+ cur_y += BUTTON_HEIGHT + 4;
+ }
+ }
+
+ if ( !m_selected_tab ) {
+ m_selected_tab = m_items.front( );
+ }
+
+ m_selected_tab->set_visible( true );
+ }
+
+ protected:
+ decltype( m_parent ) m_selected_tab{ };
+ };
+
+
+ class c_subtab_manager : public base_item {
+ public:
+ c_subtab_manager( ) : base_item( 0, 35, 0, 5,
+ xors( "SUBTAB_MANAGER" ) ) { }
+
+ virtual bool is_hovered( ) override { return false; }
+
+ int get_button_width( ) {
+ int width = get_top_parent( )->w( ) - BUTTON_WIDTH - 26;
+
+ if ( !m_items.empty( ) )
+ return ( int )std::ceilf( float( width ) / float( m_items.size( ) ) );
+
+ return width;
+ }
+
+ inline void scale_button_fade( c_tab_sheet* item, bool hovered ) {
+ if ( hovered ) {
+ constexpr float frequency = 1.f / 0.3f;
+ const float step = ui_get_frametime( ) * frequency;
+
+ item->m_fade_progress = std::clamp( item->m_fade_progress + step, 0.f, 0.8f );
+ }
+ else {
+ item->m_fade_progress = 0.f;
+ }
+ }
+
+ auto get_selected_tab( ) {
+ return m_selected_tab;
+ }
+
+ void render_button( decltype( m_parent )& button, int start, bool hovered ) {
+ auto item = ( c_tab_sheet* )button.get( );
+ auto item_x = get_relative_x( ) + start - 2;
+ auto item_y = get_relative_y( ) + 3 - m_y;
+ auto width = get_button_width( );
+
+ scale_button_fade( item, hovered );
+ clr_t tab_clr = ui_get_disabled_col( );
+
+ //ui_draw_rect( item_x, item_y, get_button_width( ), SUBTAB_HEIGHT, ui_get_bg_col( ) );
+ ui_draw_rect( item_x + 1, item_y + SUBTAB_HEIGHT - 2, width, 2, tab_clr );
+ if ( hovered ) {
+ clr_t col = ui_get_accent_col( );
+ col.a( ) *= item->m_fade_progress;
+ ui_draw_rect( item_x + 1, item_y + SUBTAB_HEIGHT - 2, width, 2, col );
+ }
+
+ ui_draw_string( item_x + width / 2, item_y + 4, true, ui_get_text_col( ), item->get_text( ) );
+ }
+
+ bool is_button_hovered( decltype( m_parent )& button, int start ) {
+ int item_x = get_relative_x( ) + start - 2;
+ int item_y = get_relative_y( ) + 3 - m_y - 3;
+ int item_w = get_button_width( );
+ int mouse_x, mouse_y;
+
+ ui_get_cursor_pos( mouse_x, mouse_y );
+
+ return mouse_x >= item_x && mouse_x <= item_x + item_w &&
+ mouse_y >= item_y && mouse_y <= item_y + SUBTAB_HEIGHT;
+ }
+
+ virtual void render( ) override {
+ if ( !m_items.empty( ) ) {
+ int start = 2;
+ int width = get_button_width( );
+
+ for ( auto& it : m_items ) {
+ it->set_visible( false );
+ bool hovered = is_button_hovered( it, start );
+ if ( g_input.is_key_pressed( KEYS_MOUSE1 ) && hovered ) {
+ //fix items that disable input mess it up when changing tabs
+ set_disabled_callbacks( false );
+ m_selected_tab = it;
+ }
+
+ render_button( it, start, hovered || it == m_selected_tab );
+ start += width;
+ }
+
+ if ( !m_selected_tab ) {
+ m_selected_tab = m_items.front( );
+ }
+
+ m_selected_tab->set_visible( true );
+ }
+ }
+
+ protected:
+ decltype( m_parent ) m_selected_tab;
+ };
+}
\ No newline at end of file diff --git a/legacy/loader/ui_text_input.cpp b/legacy/loader/ui_text_input.cpp new file mode 100644 index 0000000..db1ec7c --- /dev/null +++ b/legacy/loader/ui_text_input.cpp @@ -0,0 +1,86 @@ +#include "ui_text_input.h" +#include <sstream> + +#include <Windows.h> + +void ui::c_text_input::render( ) { + if( is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) { + if( !m_was_held ) { + m_active ^= 1; + } + m_was_held = true; + } + else { + m_was_held = false; + } + + if( m_active ) { + if( !is_hovered( ) && g_input.is_key_pressed( KEYS_MOUSE1 ) ) { + m_active = false; + } + + float current_time = GetTickCount( ) * 0.001f; + size_t length = strlen( m_text_ptr ); + + for( size_t i{ }; i < 0xfe; ++i ) { + if( g_input.is_key_pressed( i ) ) { + float delta_time = current_time - m_last_key_input[ i ]; + if( fabs( delta_time ) > 0.2f ) { + if( i == KEYS_BACK ) { + m_text_ptr[ length - 1 ] = 0; + m_last_key_input[ i ] = current_time; + continue; + } + + if( i == KEYS_RETURN ) { + m_active = false; + break; + } + + m_key_states[ i ] = 0xf0; + wchar_t pressed_char; + const auto scan = MapVirtualKeyA( i, 2 ); + auto ret = ToAscii( i, scan, ( BYTE* )m_key_states, ( LPWORD )&pressed_char, 1 ); + + if( ret == 1 ) { + if( length < m_text_len ) { + m_text_ptr[ length ] = ( char )( pressed_char ); + m_text_ptr[ length + 1 ] = 0; + } + } + m_last_key_input[ i ] = current_time; + } + } + else { + m_last_key_input[ i ] = 0.f; + m_key_states[ i ] = 0; + } + } + + if( g_input.is_key_pressed( KEYS_RETURN ) ) { + m_active = false; + } + } + + int x = get_relative_x( ); + int y = get_relative_y( ); + + ui_draw_string( x + 2, y, false, ui_get_text_col( ), m_text ); + y += 12; + + ui_draw_rect( x - 1, y - 1, m_width + 2, m_height + 2, + ( is_hovered( ) || m_active ) ? ui_get_text_col( ) : ui_get_accent_col( ) ); + ui_draw_rect( x, y, m_width, m_height, ui_get_disabled_col( ) ); + + if( !m_hidden ) + ui_draw_string( x + 2, y + 3, false, ui_get_text_col( ), m_active ? "%s_" : "%s", m_text_ptr ); + else { + std::string str; + str.append( strlen( m_text_ptr ), '*' ); + + if( m_active ) + str += '_'; + + ui_draw_string( x + 2, y + 3, false, ui_get_text_col( ), str.c_str( ) ); + } +}
\ No newline at end of file diff --git a/legacy/loader/ui_text_input.h b/legacy/loader/ui_text_input.h new file mode 100644 index 0000000..243c40b --- /dev/null +++ b/legacy/loader/ui_text_input.h @@ -0,0 +1,38 @@ +#pragma once +#include "ui_base_item.h" + +namespace ui +{ + class c_text_input : public base_item { + public: + c_text_input( int x, int y, int w, const char* name, size_t max_chars, char* str, bool hidden = false ) : + base_item( x, y, w, 16, name ), m_text_len( max_chars ), m_text_ptr( str ), m_hidden( hidden ) { + } + + virtual bool is_hovered( ) override { + int cursor_x, cursor_y; + ui_get_cursor_pos( cursor_x, cursor_y ); + + int x = get_relative_x( ); + int y = get_relative_y( ) + 12; + + return cursor_x >= x && cursor_x <= x + m_width + && cursor_y >= y && cursor_y <= y + m_height; + } + + virtual int get_total_height( ) const override { + return m_height + 12; + } + + virtual void render( ) override; + + protected: + bool m_was_held{ }; + char* m_text_ptr{ }; + size_t m_text_len{ }; + bool m_active{ }; + float m_last_key_input[ KEYS_LAST ]{ }; + uint8_t m_key_states[ 256 ]{ }; + bool m_hidden{ }; + }; +}
\ No newline at end of file diff --git a/legacy/loader/util.hpp b/legacy/loader/util.hpp new file mode 100644 index 0000000..68de3fb --- /dev/null +++ b/legacy/loader/util.hpp @@ -0,0 +1,101 @@ +#pragma once
+#include <inttypes.h>
+#include <string>
+#include <memory>
+
+#define xors( s ) s
+
+#define NAMESPACE_REGION( x ) namespace x {
+#define END_REGION }
+
+extern int TIME_TO_TICKS( float dt );
+extern float TICKS_TO_TIME( int tick );
+extern float TICK_INTERVAL( );
+
+//WEE WOO WEE WOO ITS THE DWORD POLICE
+using ulong_t = unsigned long;
+using uword_t = unsigned short;
+
+class IClientEntity;
+class CTraceFilter;
+class CGameTrace;
+class vec3_t;
+class vec2_t;
+
+NAMESPACE_REGION( util )
+
+typedef std::unique_ptr< void, void( ) > unique_handle;
+
+template < typename t >
+struct reverse_iterable {
+ reverse_iterable( t&& it ) :
+ iterable( it ) { }
+
+ t& iterable;
+ inline auto begin( ) {
+ return std::rbegin( iterable );
+ }
+
+ inline auto end( ) {
+ return std::rend( iterable );
+ }
+};
+
+template< typename t >
+reverse_iterable< t >
+reverse_iterator( t&& iter ) {
+ return reverse_iterable< t >{ iter };
+}
+
+template < typename fn > __forceinline fn get_vfunc( void* classbase, int index ) {
+ if( !classbase ) return fn{ };
+ return ( fn )( *( uintptr_t** )classbase )[ index ];
+}
+
+template < size_t index, typename ret, class ... args_ >
+__forceinline ret get_vfunc( void* thisptr, args_... args ) {
+ using fn = ret( __thiscall* )( void*, args_... );
+
+ auto fn_ptr = ( fn )( *( uintptr_t** )thisptr )[ index ];
+ return fn_ptr( thisptr, args... );
+}
+
+__forceinline std::string unicode_to_ascii( const std::wstring& unicode ) {
+ std::string ascii_str( unicode.begin( ), unicode.end( ) );
+ return ascii_str;
+}
+
+__forceinline std::wstring ascii_to_unicode( const std::string& ascii ) {
+ std::wstring unicode_str( ascii.begin( ), ascii.end( ) );
+ return unicode_str;
+}
+
+template < typename integer >
+__forceinline auto to_hex_str( const integer& w,
+ size_t hex_len = sizeof( integer ) << 1 ) {
+ constexpr char* hex_digits = xors( "0123456789abcdef" );
+ std::string rc( hex_len, 0 );
+
+ for( size_t i{ }, j{ ( hex_len - 1 ) * 4 }; i < hex_len; ++i, j -= 4 )
+ rc[ i ] = hex_digits[ ( w >> j ) & 0x0f ];
+
+ return rc;
+}
+
+extern void clip_trace_to_player( IClientEntity* player, const vec3_t& src, const vec3_t& end,
+ unsigned mask, CTraceFilter* filter, CGameTrace* trace );
+
+extern bool trace_ray( const vec3_t& start, const vec3_t& end, IClientEntity* a, IClientEntity* b );
+extern bool is_tick_valid( int tickcount );
+extern void set_random_seed( int seed );
+extern vec3_t get_spread_dir( float inaccuracy, float spread, vec3_t angles, int seed );
+extern float get_random_float( float min, float max );
+extern bool hitchance( int target, const vec3_t& angles, int percentage );
+extern float get_total_latency( );
+extern float get_lerptime( );
+extern int get_closest_player( );
+extern vec2_t screen_transform( vec3_t world );
+extern const char* definition_index_to_name( int index );
+extern void disable_pvs( );
+
+END_REGION
\ No newline at end of file diff --git a/legacy/loader/winapi.hpp b/legacy/loader/winapi.hpp new file mode 100644 index 0000000..72fdbfe --- /dev/null +++ b/legacy/loader/winapi.hpp @@ -0,0 +1,64 @@ +#pragma once
+#include <Windows.h>
+#include "util.hpp"
+
+namespace winapi
+{
+ static uintptr_t get_procaddr_ex( HANDLE process, HMODULE mod, const char* proc ) {
+ IMAGE_DOS_HEADER dos_hdr;
+ IMAGE_NT_HEADERS nt_hdrs;
+ IMAGE_EXPORT_DIRECTORY export_dir;
+ uintptr_t export_addr;
+ char export_name[ 64 ];
+ uintptr_t* names;
+ uintptr_t* funcs;
+ uint16_t* ords;
+ uintptr_t ret{ };
+
+ ReadProcessMemory( process, mod, &dos_hdr, sizeof( dos_hdr ), 0 );
+ ReadProcessMemory( process, ( void* )( uintptr_t( mod ) + dos_hdr.e_lfanew ),
+ &nt_hdrs, sizeof( nt_hdrs ), nullptr );
+
+ export_addr = nt_hdrs.OptionalHeader.DataDirectory[ 0 ].VirtualAddress;
+ ReadProcessMemory( process, ( void* )( uintptr_t( mod ) + export_addr ),
+ &export_dir, sizeof( export_dir ), nullptr );
+
+ if( !export_dir.NumberOfFunctions )
+ return uintptr_t{ };
+
+ funcs = ( uintptr_t* )( malloc( sizeof( uintptr_t ) * export_dir.AddressOfFunctions ) );
+ names = ( uintptr_t* )( malloc( sizeof( uintptr_t ) * export_dir.NumberOfNames ) );
+ ords = ( uint16_t* ) ( malloc( sizeof( uint16_t ) * export_dir.NumberOfNames ) );
+
+ ReadProcessMemory( process, ( void* )( uintptr_t( mod ) + export_dir.AddressOfFunctions ),
+ funcs, sizeof( uintptr_t ) * export_dir.NumberOfFunctions, nullptr );
+ ReadProcessMemory( process, ( void* )( uintptr_t( mod ) + export_dir.AddressOfNames ),
+ names, sizeof( uintptr_t ) * export_dir.NumberOfNames, nullptr );
+ ReadProcessMemory( process, ( void* )( uintptr_t( mod ) + export_dir.AddressOfNameOrdinals ),
+ ords, sizeof( uint16_t ) * export_dir.NumberOfNames, nullptr );
+
+ auto read_str = [ &process ]( char* buf, size_t size, uintptr_t addr ) {
+ for( size_t i{ }; i < size; ++i ) {
+ char _c;
+ ReadProcessMemory( process, ( void* )( addr + i ), &_c, 1, 0 );
+ buf[ i ] = _c;
+ if( !_c ) break;
+ }
+
+ buf[ size - 1 ] = 0;
+ };
+
+ for( size_t i{ }; i < export_dir.NumberOfNames; ++i ) {
+ read_str( export_name, 64, uintptr_t( mod ) + names[ i ] );
+
+ if( !strcmp( export_name, proc ) )
+ ret = uintptr_t( mod ) + funcs[ ords[ i ] ];
+ }
+
+ ::free( funcs );
+ ::free( names );
+ ::free( ords );
+
+ return ret;
+ }
+}
\ No newline at end of file diff --git a/legacy/loader/window.cpp b/legacy/loader/window.cpp new file mode 100644 index 0000000..9699f72 --- /dev/null +++ b/legacy/loader/window.cpp @@ -0,0 +1,148 @@ +#pragma once
+#include "window.hpp"
+#include "d3d.hpp"
+
+d3d::c_window g_window;
+
+#define HACK_NAME xors( "moneybot $$$" )
+
+namespace d3d
+{
+ c_window::c_window( ) { m_size[ 0 ] = 451; m_size[ 1 ] = 376; } //ugh
+ c_window::~c_window( ) { }
+
+ LRESULT __stdcall c_window::window_procedure( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) {
+ if( msg == WM_MOUSEMOVE ) {
+ g_input.capture_mouse_move( lparam );
+ }
+
+ g_input.register_key_press( ( VirtualKeyEvents_t )( msg ), VirtualKeys_t( wparam ) );
+
+ switch( msg ) {
+ case WM_SIZE:
+ if( g_window.m_d3d_device && wparam != SIZE_MINIMIZED ) {
+ g_window.m_present_params.BackBufferWidth = LOWORD( lparam );
+ g_window.m_present_params.BackBufferHeight = HIWORD( lparam );
+
+ g_d3d.on_device_lost( );
+ auto result = g_window.m_d3d_device->Reset( &g_window.m_present_params );
+ g_d3d.on_device_reset( );
+ }
+ return 0;
+ case WM_SYSCOMMAND:
+ if( ( wparam & 0xfff0 ) == SC_KEYMENU ) //disable alt thing
+ return 0;
+ break;
+
+
+ case WM_DESTROY:
+ PostQuitMessage( 0 );
+ return 0;
+ }
+
+ return DefWindowProc( hwnd, msg, wparam, lparam );
+ }
+
+ bool c_window::create( ) {
+ m_wc.cbSize = sizeof( WNDCLASSEX );
+ m_wc.style = CS_VREDRAW | CS_HREDRAW;
+ m_wc.lpfnWndProc = window_procedure;
+ m_wc.cbClsExtra = 0;
+ m_wc.cbWndExtra = 0;
+ m_wc.hInstance = 0;
+ m_wc.hIcon = LoadIcon( 0, IDI_APPLICATION );
+ m_wc.hCursor = LoadCursor( 0, IDC_ARROW );
+ m_wc.lpszMenuName = 0;
+ m_wc.lpszClassName = HACK_NAME;
+ m_wc.hIconSm = LoadIcon( 0, IDI_APPLICATION );
+
+ //m_wc.hbrBackground = ( HBRUSH )( RGB( 0, 0, 0 ) );
+
+ RegisterClassEx( &m_wc );
+
+ m_hwnd = CreateWindowExA( WS_EX_TRANSPARENT, HACK_NAME, HACK_NAME, WS_POPUP,
+ CW_USEDEFAULT, CW_USEDEFAULT, m_size[ 0 ], m_size[ 1 ], nullptr, nullptr, nullptr, 0 );
+
+ if( !m_hwnd ) {
+ return false;
+ }
+
+ //SetLayeredWindowAttributes( m_hwnd, RGB( 0, 0, 0 ), 0, ULW_COLORKEY );
+ //SetLayeredWindowAttributes( m_hwnd, RGB( 0, 0, 0 ), 255, LWA_ALPHA );
+ ShowWindow( m_hwnd, SW_SHOWDEFAULT );
+ UpdateWindow( m_hwnd );
+
+ //MARGINS margin = { -1, -1, -1, -1 };
+ //DwmExtendFrameIntoClientArea( m_hwnd, &margin );
+
+ MoveWindow( m_hwnd, 20, 20, m_size[ 0 ], m_size[ 1 ], true );
+
+ return init_d3d( );
+ }
+
+ bool c_window::init_d3d( ) {
+ if( !( m_d3d = Direct3DCreate9( D3D_SDK_VERSION ) ) ) {
+ UnregisterClass( HACK_NAME, m_wc.hInstance );
+ return false;
+ }
+
+ ZeroMemory( &m_present_params, sizeof( m_present_params ) );
+
+ m_present_params.Windowed = true;
+ m_present_params.SwapEffect = D3DSWAPEFFECT_DISCARD;
+ m_present_params.BackBufferFormat = D3DFMT_A8R8G8B8;
+ m_present_params.hDeviceWindow = m_hwnd;
+ m_present_params.EnableAutoDepthStencil = true;
+ m_present_params.AutoDepthStencilFormat = D3DFMT_D16;
+ m_present_params.MultiSampleType = D3DMULTISAMPLE_NONE;
+ m_present_params.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
+ m_present_params.BackBufferCount = 1;
+ m_present_params.BackBufferWidth = m_size[ 0 ];
+ m_present_params.BackBufferHeight = m_size[ 1 ];
+
+ if( m_d3d->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, m_hwnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &m_present_params, &m_d3d_device ) < 0 ) {
+ m_d3d->Release( );
+ UnregisterClass( HACK_NAME, m_wc.hInstance );
+ return false;
+ }
+
+ return true;
+ }
+
+ void c_window::on_frame( ) {
+ while( m_msg.message != WM_QUIT ) {
+ if( PeekMessage( &m_msg, 0, 0, 0, PM_REMOVE ) ) {
+ TranslateMessage( &m_msg );
+ DispatchMessage( &m_msg );
+
+ continue;
+ }
+
+ if( m_d3d_device ) {
+ auto device_state = m_d3d_device->TestCooperativeLevel( );
+ if( device_state != D3D_OK ) {
+ g_d3d.on_device_lost( );
+ m_d3d_device->Reset( &m_present_params );
+ g_d3d.on_device_reset( );
+ }
+
+
+ if( m_d3d_device->BeginScene( ) >= 0 ) {
+ for( auto& onframe : m_onframe_vec ) {
+ if( onframe ) {
+ onframe( );
+ }
+ }
+ //m_d3d_device->SetRenderState( D3DRS_ZENABLE, false );
+ //m_d3d_device->SetRenderState( D3DRS_ALPHABLENDENABLE, false );
+ //m_d3d_device->SetRenderState( D3DRS_SCISSORTESTENABLE, false );
+ m_d3d_device->EndScene( );
+ }
+
+ m_d3d_device->Present( nullptr, nullptr, nullptr, nullptr );
+ Sleep( 1 );
+ }
+ }
+ }
+}
+
diff --git a/legacy/loader/window.hpp b/legacy/loader/window.hpp new file mode 100644 index 0000000..e1efc86 --- /dev/null +++ b/legacy/loader/window.hpp @@ -0,0 +1,59 @@ +#pragma once
+#include <d3d9.h>
+#include <d3dx9.h>
+
+#pragma comment(lib, "d3d9.lib")
+#pragma comment(lib, "d3dx9.lib")
+
+#include <xnamath.h>
+#include <windows.h>
+
+#include <dwmapi.h>
+#pragma comment(lib, "dwmapi.lib")
+#pragma comment(lib, "winmm.lib")
+
+#include <vector>
+
+#include "input_system.hpp"
+
+namespace d3d
+{
+ typedef void( *on_frame_fn )( );
+
+ class c_window {
+ public:
+ c_window( );
+ ~c_window( );
+
+ bool create( );
+ void on_frame( );
+ void add_on_frame( on_frame_fn fn ) {
+ m_onframe_vec.push_back( fn );
+ }
+
+ HWND get_hwnd( ) { return m_hwnd; }
+
+ private:
+ bool init_d3d( );
+
+ public:
+ static LRESULT __stdcall window_procedure( HWND, UINT, WPARAM, LPARAM );
+
+ private:
+ HWND m_hwnd{ };
+ int m_size[ 2 ]{ };
+
+ WNDCLASSEX m_wc{ };
+ MSG m_msg{ };
+
+ public:
+ LPDIRECT3DDEVICE9 m_d3d_device{ };
+ D3DPRESENT_PARAMETERS m_present_params{ };
+ LPDIRECT3D9 m_d3d{ };
+
+ private:
+ std::vector< on_frame_fn > m_onframe_vec;
+ };
+}
+
+extern d3d::c_window g_window;
\ No newline at end of file diff --git a/legacy/loader/x86.h b/legacy/loader/x86.h new file mode 100644 index 0000000..5208225 --- /dev/null +++ b/legacy/loader/x86.h @@ -0,0 +1,47 @@ +#pragma once
+#include <inttypes.h>
+
+namespace x86
+{
+ enum class reg : size_t {
+ eax = 0,
+ ecx,
+ edx,
+ ebx,
+ esp,
+ ebp,
+ esi,
+ edi,
+
+ /*
+ x64:
+ r8,
+ r9,
+ r10,
+ r11,
+ r12,
+ r13,
+ r14,
+ r15,*/
+ };
+
+ enum instruction : uint8_t {
+ retn_imm16 = 0xc2,
+ retn = 0xc3,
+ fs = 0x64,
+ //its big nigga season
+ call = 0xff
+ };
+
+ __forceinline static uint32_t encode_mov_imm32( x86::reg dreg ) {
+ return ( 0xb8 + ( size_t( dreg ) ) );
+ }
+
+ __forceinline static uint32_t encode_push_reg( x86::reg dreg ) {
+ return ( 0x50 | ( ( size_t( dreg ) ) & 7 ) );
+ }
+
+ __forceinline static uint32_t encode_pop_reg( x86::reg dreg ) {
+ return ( 0x58 | ( ( size_t( dreg ) ) & 7 ) );
+ }
+};
\ No newline at end of file diff --git a/loader.psess b/loader.psess deleted file mode 100644 index d4c8d9b..0000000 --- a/loader.psess +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<VSPerformanceSession Version="1.00">
- <Options>
- <Solution>moneybot.sln</Solution>
- <CollectionMethod>Sampling</CollectionMethod>
- <AllocationMethod>None</AllocationMethod>
- <AddReport>true</AddReport>
- <ResourceBasedAnalysisSelected>true</ResourceBasedAnalysisSelected>
- <UniqueReport>Timestamp</UniqueReport>
- <SamplingMethod>Cycles</SamplingMethod>
- <CycleCount>10000000</CycleCount>
- <PageFaultCount>10</PageFaultCount>
- <SysCallCount>10</SysCallCount>
- <SamplingCounter Name="" ReloadValue="00000000000f4240" DisplayName="" />
- <RelocateBinaries>false</RelocateBinaries>
- <HardwareCounters EnableHWCounters="false" />
- <EtwSettings />
- <PdhSettings>
- <PdhCountersEnabled>false</PdhCountersEnabled>
- <PdhCountersRate>500</PdhCountersRate>
- <PdhCounters>
- <PdhCounter>\Memory\Pages/sec</PdhCounter>
- <PdhCounter>\PhysicalDisk(_Total)\Avg. Disk Queue Length</PdhCounter>
- <PdhCounter>\Processor(_Total)\% Processor Time</PdhCounter>
- </PdhCounters>
- </PdhSettings>
- </Options>
- <ExcludeSmallFuncs>true</ExcludeSmallFuncs>
- <InteractionProfilingEnabled>false</InteractionProfilingEnabled>
- <JScriptProfilingEnabled>false</JScriptProfilingEnabled>
- <PreinstrumentEvent>
- <InstrEventExclude>false</InstrEventExclude>
- </PreinstrumentEvent>
- <PostinstrumentEvent>
- <InstrEventExclude>false</InstrEventExclude>
- </PostinstrumentEvent>
- <Binaries>
- <Binary>
- <Path>Release\loader.exe</Path>
- <ArgumentTimestamp>01/01/0001 00:00:00</ArgumentTimestamp>
- <Instrument>true</Instrument>
- <Sample>true</Sample>
- <ExternalWebsite>false</ExternalWebsite>
- <InteractionProfilingEnabled>false</InteractionProfilingEnabled>
- <IsLocalJavascript>false</IsLocalJavascript>
- <IsWindowsStoreApp>false</IsWindowsStoreApp>
- <IsWWA>false</IsWWA>
- <LaunchProject>true</LaunchProject>
- <OverrideProjectSettings>false</OverrideProjectSettings>
- <LaunchMethod>Executable</LaunchMethod>
- <ExecutablePath>Release\loader.exe</ExecutablePath>
- <StartupDirectory>
- </StartupDirectory>
- <Arguments>
- </Arguments>
- <NetAppHost>IIS</NetAppHost>
- <NetBrowser>InternetExplorer</NetBrowser>
- <ExcludeSmallFuncs>true</ExcludeSmallFuncs>
- <JScriptProfilingEnabled>false</JScriptProfilingEnabled>
- <PreinstrumentEvent>
- <InstrEventExclude>false</InstrEventExclude>
- </PreinstrumentEvent>
- <PostinstrumentEvent>
- <InstrEventExclude>false</InstrEventExclude>
- </PostinstrumentEvent>
- </Binary>
- </Binaries>
- <Reports>
- <Report>
- <Path>loader180727.vspx</Path>
- </Report>
- </Reports>
- <Launches>
- <Binary>
- <Path>Release\loader.exe</Path>
- </Binary>
- </Launches>
-</VSPerformanceSession>
\ No newline at end of file diff --git a/loader/client/client.vcxproj b/loader/client/client.vcxproj new file mode 100644 index 0000000..0e44455 --- /dev/null +++ b/loader/client/client.vcxproj @@ -0,0 +1,262 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="D_LinuxServer|Win32">
+ <Configuration>D_LinuxServer</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="D_LinuxServer|x64">
+ <Configuration>D_LinuxServer</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release_Windows|Win32">
+ <Configuration>Release_Windows</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release_Windows|x64">
+ <Configuration>Release_Windows</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="connect.hpp" />
+ <ClInclude Include="err.hpp" />
+ <ClInclude Include="strings.hpp" />
+ <ClInclude Include="util.hpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="client_windows.cpp" />
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>15.0</VCProjectVersion>
+ <ProjectGuid>{B03A0B07-AA28-4122-842D-1B2457F70334}</ProjectGuid>
+ <RootNamespace>client</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <EnableUAC>false</EnableUAC>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <EnableUAC>false</EnableUAC>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableUAC>false</EnableUAC>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableUAC>false</EnableUAC>
+ </Link>
+ </ItemDefinitionGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ No newline at end of file diff --git a/loader/client/client.vcxproj.filters b/loader/client/client.vcxproj.filters new file mode 100644 index 0000000..b5f56db --- /dev/null +++ b/loader/client/client.vcxproj.filters @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <ClInclude Include="connect.hpp" />
+ <ClInclude Include="err.hpp" />
+ <ClInclude Include="strings.hpp" />
+ <ClInclude Include="util.hpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="client_windows.cpp" />
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/client/client_windows.cpp b/loader/client/client_windows.cpp index 7fdd467..1b493d6 100644 --- a/client/client_windows.cpp +++ b/loader/client/client_windows.cpp @@ -14,14 +14,15 @@ 2. Send hello message
3. Receive hello message from server,
4. Enter and send username
- 5. Enter and send password
+ 5. Enter and send password (use bcrypt or some shit idk)
6. Send and let server check hardware id.
7. Recieve list of games.
8. Select game and send to server
9. Receive space of dll.
10. Allocate space for dll.
11. Send base address of dll.
- 12. Server does relocations.
+ 12a. Server does relocations.
+ 12b. Server does imports.
13. Server sends dll
14. Client Manual maps dll
15. Send game module list and possibly PE headers
@@ -37,7 +38,8 @@ // will make not retarded soon.
int main( ) {
// TEMPORARY, WE NEED TO ENCRYPT IP STRING SO WE DON'T HAVE DDOS NOOBS.
- std::string ip = "192.168.0.7";
+ // or we could do char address[] = { 127, 0, 0, 1 };
+ std::string ip = "127.0.0.1";
// std::cin >> ip;
// START.
diff --git a/client/connect.hpp b/loader/client/connect.hpp index 96bb9c8..ddf23a0 100644 --- a/client/connect.hpp +++ b/loader/client/connect.hpp @@ -135,16 +135,16 @@ namespace client return ret; } - void send_msg( const uint8_t* msg, size_t length ) { + void send_msg( const uint8_t* msg, int length ) { auto buffer = std::make_unique< uint8_t[ ] >( length + 1 ); - auto key = util::random_number( 0, 255 ) & 0xff; + uint8_t key = util::random_number( 0, 255 ) & 0xff; buffer[ 0 ] = key; memcpy( buffer.get( ) + 1, msg, length ); - for( size_t i = 1; i <= length; ++i ) { + for( int i = 1; i <= length; ++i ) { buffer[ i ] ^= key; } @@ -157,7 +157,7 @@ namespace client void send_msg( const char* msg ) { auto length = strlen( msg ); auto buffer = std::make_unique< uint8_t[ ] >( length + 1 ); - auto key = util::random_number( 0, 255 ) & 0xff; + uint8_t key = util::random_number( 0, 255 ) & 0xff; buffer[ 0 ] = key; memcpy( buffer.get( ) + 1, @@ -168,7 +168,7 @@ namespace client buffer[ i ] ^= key; } - int ret = send( m_socket, ( char* )buffer.get( ), length + 1, 0 ); + int ret = send( m_socket, ( char* )buffer.get( ), (int) length + 1, 0 ); if ( ret == SOCKET_ERROR ) { printf( xors( "error sending message error code: %d" ), WSAGetLastError( ) ); } @@ -177,7 +177,7 @@ namespace client void send_msg( const char msg ) { auto buffer = std::make_unique< uint8_t[ ] >( 2 ); - auto key = util::random_number( 0, 255 ) & 0xff; + uint8_t key = util::random_number( 0, 255 ) & 0xff; buffer[ 0 ] = key; buffer[ 1 ] = msg; diff --git a/client/err.hpp b/loader/client/err.hpp index 5a6691d..5a6691d 100644 --- a/client/err.hpp +++ b/loader/client/err.hpp diff --git a/client/strings.hpp b/loader/client/strings.hpp index b5dba75..b5dba75 100644 --- a/client/strings.hpp +++ b/loader/client/strings.hpp diff --git a/client/util.hpp b/loader/client/util.hpp index 8e7d549..aabfd69 100644 --- a/client/util.hpp +++ b/loader/client/util.hpp @@ -1,4 +1,8 @@ #pragma once
+
+#include <windows.h>
+#include "strings.hpp"
+
#include <random>
namespace util
@@ -20,4 +24,10 @@ namespace util return dist( gen );
}
}
+
+ // okay now this is epic
+ __forceinline void raise_error(const char *error) {
+ MessageBoxA(0, error, xors("error"), MB_ICONERROR);
+ ExitProcess(0);
+ }
}
\ No newline at end of file diff --git a/loader/loader.sln b/loader/loader.sln new file mode 100644 index 0000000..3048c18 --- /dev/null +++ b/loader/loader.sln @@ -0,0 +1,61 @@ +
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.106
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "server", "server\server.vcxproj", "{A6D4FCB9-F886-424C-8493-758A15CCD7A9}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcxproj", "{B03A0B07-AA28-4122-842D-1B2457F70334}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ D_LinuxServer|x64 = D_LinuxServer|x64
+ D_LinuxServer|x86 = D_LinuxServer|x86
+ D_WindowsServer|x64 = D_WindowsServer|x64
+ D_WindowsServer|x86 = D_WindowsServer|x86
+ R_LinuxServer|x64 = R_LinuxServer|x64
+ R_LinuxServer|x86 = R_LinuxServer|x86
+ R_WindowsServer|x64 = R_WindowsServer|x64
+ R_WindowsServer|x86 = R_WindowsServer|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_LinuxServer|x64.ActiveCfg = D_LinuxServer|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_LinuxServer|x64.Build.0 = D_LinuxServer|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_LinuxServer|x86.ActiveCfg = D_LinuxServer|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_LinuxServer|x86.Build.0 = D_LinuxServer|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_WindowsServer|x64.ActiveCfg = Debug|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_WindowsServer|x64.Build.0 = Debug|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_WindowsServer|x86.ActiveCfg = Debug|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.D_WindowsServer|x86.Build.0 = Debug|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_LinuxServer|x64.ActiveCfg = Release|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_LinuxServer|x64.Build.0 = Release|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_LinuxServer|x86.ActiveCfg = Release|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_LinuxServer|x86.Build.0 = Release|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_WindowsServer|x64.ActiveCfg = Release_Windows|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_WindowsServer|x64.Build.0 = Release_Windows|x64
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_WindowsServer|x86.ActiveCfg = Release_Windows|Win32
+ {A6D4FCB9-F886-424C-8493-758A15CCD7A9}.R_WindowsServer|x86.Build.0 = Release_Windows|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_LinuxServer|x64.ActiveCfg = D_LinuxServer|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_LinuxServer|x64.Build.0 = D_LinuxServer|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_LinuxServer|x86.ActiveCfg = D_LinuxServer|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_LinuxServer|x86.Build.0 = D_LinuxServer|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_WindowsServer|x64.ActiveCfg = Debug|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_WindowsServer|x64.Build.0 = Debug|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_WindowsServer|x86.ActiveCfg = Debug|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.D_WindowsServer|x86.Build.0 = Debug|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_LinuxServer|x64.ActiveCfg = Release|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_LinuxServer|x64.Build.0 = Release|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_LinuxServer|x86.ActiveCfg = Release|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_LinuxServer|x86.Build.0 = Release|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_WindowsServer|x64.ActiveCfg = Release_Windows|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_WindowsServer|x64.Build.0 = Release_Windows|x64
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_WindowsServer|x86.ActiveCfg = Release_Windows|Win32
+ {B03A0B07-AA28-4122-842D-1B2457F70334}.R_WindowsServer|x86.Build.0 = Release_Windows|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {3F3309B9-EA04-4C25-BF7B-37B736370BF1}
+ EndGlobalSection
+EndGlobal
diff --git a/server/client.cpp b/loader/server/client.cpp index 22aa053..8e7d3d3 100644 --- a/server/client.cpp +++ b/loader/server/client.cpp @@ -62,7 +62,7 @@ std::string server::c_client::get_msg( ) { bool server::c_client::send_msg( byte* msg, size_t length ) { auto buffer = std::make_unique< uint8_t[ ] >( length + 1 ); - auto key = util::random_number( 0, 255 ) & 0xff; + uint8_t key = util::random_number( 0, 255 ) & 0xff; buffer[ 0 ] = key; memcpy( buffer.get( ) + 1, @@ -75,7 +75,7 @@ bool server::c_client::send_msg( byte* msg, size_t length ) { int result = send( m_socket, ( char* )buffer.get( ), length + 1, 0 ); if( result == -1 ) { -#if WIN +#if WIN64 printf( "error sending message to %s: %d\n", get_ip( ), WSAGetLastError( ) ); #else @@ -91,7 +91,7 @@ bool server::c_client::send_msg( byte* msg, size_t length ) { bool server::c_client::send_msg( const char* msg ) { auto length = strlen( msg ); auto buffer = std::make_unique< uint8_t[ ] >( length + 1 ); - auto key = util::random_number( 0, 255 ) & 0xff; + uint8_t key = util::random_number( 0, 255 ) & 0xff; memset( buffer.get( ), 0, length+1 ); @@ -106,7 +106,7 @@ bool server::c_client::send_msg( const char* msg ) { int result = send( m_socket, ( char* )buffer.get( ), length + 1, 0 ); if ( result == -1 ) { -#if WIN +#if WIN64 printf( "error sending message to %s: %d\n", get_ip( ), WSAGetLastError( ) ); #else @@ -191,7 +191,7 @@ R"(games: file.seekg( 0, file.beg );
file.read( buffer.get( ), size );
- send_msg( ( byte* )buffer.get( ), size ); + send_msg( ( uint8_t* )buffer.get( ), size ); file.close( ); } diff --git a/server/client.hpp b/loader/server/client.hpp index c59e116..1f577c7 100644 --- a/server/client.hpp +++ b/loader/server/client.hpp @@ -1,6 +1,6 @@ #pragma once
-#ifdef WIN
+#ifdef WIN64
#include <Windows.h>
#pragma comment(lib, "ws2_32.lib")
#else
diff --git a/server/message.hpp b/loader/server/message.hpp index bf67389..bf67389 100644 --- a/server/message.hpp +++ b/loader/server/message.hpp diff --git a/server/server.cpp b/loader/server/server.cpp index 010ec84..e12e691 100644 --- a/server/server.cpp +++ b/loader/server/server.cpp @@ -1,7 +1,7 @@ #include "server.hpp"
int server::c_server::init( ) {
-#if WIN
+#if WIN64
if( WSAStartup( MAKEWORD( 2, 2 ), &m_sock_data ) ) // windows
return 1;
#endif
diff --git a/server/server.hpp b/loader/server/server.hpp index 5ac8393..5ac8393 100644 --- a/server/server.hpp +++ b/loader/server/server.hpp diff --git a/server/server.vcxproj b/loader/server/server.vcxproj index 2135457..543a42f 100644 --- a/server/server.vcxproj +++ b/loader/server/server.vcxproj @@ -5,12 +5,20 @@ <Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
- <ProjectConfiguration Include="pHit|Win32">
- <Configuration>pHit</Configuration>
+ <ProjectConfiguration Include="D_LinuxServer|Win32">
+ <Configuration>D_LinuxServer</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
- <ProjectConfiguration Include="pHit|x64">
- <Configuration>pHit</Configuration>
+ <ProjectConfiguration Include="D_LinuxServer|x64">
+ <Configuration>D_LinuxServer</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release_Windows|Win32">
+ <Configuration>Release_Windows</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release_Windows|x64">
+ <Configuration>Release_Windows</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
@@ -26,10 +34,20 @@ <Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="client.hpp" />
+ <ClInclude Include="message.hpp" />
+ <ClInclude Include="server.hpp" />
+ <ClInclude Include="util.hpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="client.cpp" />
+ <ClCompile Include="server.cpp" />
+ <ClCompile Include="server_windows.cpp" />
+ </ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
- <ProjectGuid>{F0038E32-6DE8-47B7-BC86-8A2274B24406}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
+ <ProjectGuid>{A6D4FCB9-F886-424C-8493-758A15CCD7A9}</ProjectGuid>
<RootNamespace>server</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
@@ -38,43 +56,53 @@ <ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- <SpectreMitigation>false</SpectreMitigation>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'" Label="Configuration">
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v141</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- <SpectreMitigation>false</SpectreMitigation>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'" Label="Configuration">
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -84,66 +112,70 @@ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'" Label="PropertySheets">
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'" Label="PropertySheets">
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'">
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
+ <PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
- <LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
- <Link>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
- </Link>
</ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
- <Link>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
- </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <RuntimeTypeInfo>false</RuntimeTypeInfo>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <PreprocessorDefinitions>WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='D_LinuxServer|x64'">
+ <ClCompile>
+ <WarningLevel>Level4</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ <ConformanceMode>true</ConformanceMode>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <RuntimeTypeInfo>false</RuntimeTypeInfo>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <PreprocessorDefinitions>VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
@@ -152,82 +184,64 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
- <LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='pHit|Win32'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
- <LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>WIN;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <RuntimeTypeInfo>false</RuntimeTypeInfo>
<LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='pHit|x64'">
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Windows|x64'">
<ClCompile>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
- <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
+ <RuntimeTypeInfo>false</RuntimeTypeInfo>
+ <LanguageStandard>stdcpplatest</LanguageStandard>
+ <CallingConvention>FastCall</CallingConvention>
+ <PreprocessorDefinitions>WIN64;VC_EXTRALEAN;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="client.cpp" />
- <ClCompile Include="server.cpp" />
- <ClCompile Include="server_windows.cpp" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="client.hpp" />
- <ClInclude Include="message.hpp" />
- <ClInclude Include="server.hpp" />
- <ClInclude Include="util.hpp" />
- </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/loader/server/server.vcxproj.filters b/loader/server/server.vcxproj.filters new file mode 100644 index 0000000..5ef28fc --- /dev/null +++ b/loader/server/server.vcxproj.filters @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <ClInclude Include="message.hpp" />
+ <ClInclude Include="server.hpp" />
+ <ClInclude Include="util.hpp" />
+ <ClInclude Include="client.hpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="server.cpp" />
+ <ClCompile Include="server_windows.cpp" />
+ <ClCompile Include="client.cpp" />
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/server/server_windows.cpp b/loader/server/server_windows.cpp index e372ee5..cdc6ac4 100644 --- a/server/server_windows.cpp +++ b/loader/server/server_windows.cpp @@ -1,4 +1,4 @@ -#ifdef WIN
+#ifdef WIN64
#include <Windows.h>
#pragma comment(lib, "ws2_32.lib")
#else
diff --git a/server/util.hpp b/loader/server/util.hpp index 1d408e0..1d408e0 100644 --- a/server/util.hpp +++ b/loader/server/util.hpp diff --git a/loader/x64/D_LinuxServer/client.ilk b/loader/x64/D_LinuxServer/client.ilk Binary files differnew file mode 100644 index 0000000..7db2185 --- /dev/null +++ b/loader/x64/D_LinuxServer/client.ilk diff --git a/loader/x64/D_LinuxServer/server.ilk b/loader/x64/D_LinuxServer/server.ilk Binary files differnew file mode 100644 index 0000000..29c34f2 --- /dev/null +++ b/loader/x64/D_LinuxServer/server.ilk diff --git a/moneybot.sln b/moneybot.sln deleted file mode 100644 index c964ed6..0000000 --- a/moneybot.sln +++ /dev/null @@ -1,206 +0,0 @@ -
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.27004.2002
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "moneybot", "internal_rewrite\internal_rewrite.vcxproj", "{140DEC51-B0E7-4289-BB6F-79686422318E}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "injector", "injector\injector.vcxproj", "{0CD36550-BDEB-4967-9AC1-9AB1AE778C64}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loader", "loader\loader.vcxproj", "{C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "enc_file", "enc_file\enc_file.vcxproj", "{9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tf2_base", "tf2\test_cso2.vcxproj", "{DD486C1B-C911-42B8-AB24-A9102A23DC02}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmod", "gmod\gmod.vcxproj", "{82E7C50B-01E3-4D65-AECC-196E9494DFF4}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "server", "server\server.vcxproj", "{F0038E32-6DE8-47B7-BC86-8A2274B24406}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcxproj", "{E877E475-A428-4FBC-AF71-378AFB92B706}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Online|x64 = Online|x64
- Online|x86 = Online|x86
- optimize_test|x64 = optimize_test|x64
- optimize_test|x86 = optimize_test|x86
- pHit|x64 = pHit|x64
- pHit|x86 = pHit|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x64.ActiveCfg = Debug|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x64.Build.0 = Debug|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x86.ActiveCfg = Debug|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Debug|x86.Build.0 = Debug|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x64.ActiveCfg = Online|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x64.Build.0 = Online|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x86.ActiveCfg = Online|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Online|x86.Build.0 = Online|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x64.ActiveCfg = optimize_test|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x64.Build.0 = optimize_test|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x86.ActiveCfg = optimize_test|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.optimize_test|x86.Build.0 = optimize_test|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x64.ActiveCfg = pHit|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x64.Build.0 = pHit|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x86.ActiveCfg = pHit|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.pHit|x86.Build.0 = pHit|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x64.ActiveCfg = Release|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x64.Build.0 = Release|x64
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x86.ActiveCfg = Release|Win32
- {140DEC51-B0E7-4289-BB6F-79686422318E}.Release|x86.Build.0 = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x64.ActiveCfg = Debug|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x64.Build.0 = Debug|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x86.ActiveCfg = Debug|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Debug|x86.Build.0 = Debug|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Online|x64.ActiveCfg = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Online|x64.Build.0 = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Online|x86.ActiveCfg = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Online|x86.Build.0 = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.optimize_test|x64.ActiveCfg = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.optimize_test|x64.Build.0 = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.optimize_test|x86.ActiveCfg = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.optimize_test|x86.Build.0 = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x64.ActiveCfg = pHit|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x64.Build.0 = pHit|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x86.ActiveCfg = pHit|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.pHit|x86.Build.0 = pHit|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x64.ActiveCfg = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x64.Build.0 = Release|x64
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x86.ActiveCfg = Release|Win32
- {0CD36550-BDEB-4967-9AC1-9AB1AE778C64}.Release|x86.Build.0 = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x64.ActiveCfg = Debug|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x64.Build.0 = Debug|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x86.ActiveCfg = Debug|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Debug|x86.Build.0 = Debug|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Online|x64.ActiveCfg = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Online|x64.Build.0 = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Online|x86.ActiveCfg = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Online|x86.Build.0 = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.optimize_test|x64.ActiveCfg = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.optimize_test|x64.Build.0 = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.optimize_test|x86.ActiveCfg = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.optimize_test|x86.Build.0 = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x64.ActiveCfg = pHit|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x64.Build.0 = pHit|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x86.ActiveCfg = pHit|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.pHit|x86.Build.0 = pHit|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x64.ActiveCfg = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x64.Build.0 = Release|x64
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x86.ActiveCfg = Release|Win32
- {C376FC6E-5E1C-4ADD-A921-BC8E2968E8B0}.Release|x86.Build.0 = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x64.ActiveCfg = Debug|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x64.Build.0 = Debug|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x86.ActiveCfg = Debug|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Debug|x86.Build.0 = Debug|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Online|x64.ActiveCfg = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Online|x64.Build.0 = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Online|x86.ActiveCfg = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Online|x86.Build.0 = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.optimize_test|x64.ActiveCfg = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.optimize_test|x64.Build.0 = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.optimize_test|x86.ActiveCfg = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.optimize_test|x86.Build.0 = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x64.ActiveCfg = pHit|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x64.Build.0 = pHit|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x86.ActiveCfg = pHit|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.pHit|x86.Build.0 = pHit|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x64.ActiveCfg = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x64.Build.0 = Release|x64
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x86.ActiveCfg = Release|Win32
- {9EF8BCE2-B57C-413C-803B-0FAB5A0747D8}.Release|x86.Build.0 = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x64.ActiveCfg = Debug|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x64.Build.0 = Debug|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x86.ActiveCfg = Debug|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Debug|x86.Build.0 = Debug|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x64.ActiveCfg = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x64.Build.0 = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x86.ActiveCfg = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Online|x86.Build.0 = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x64.ActiveCfg = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x64.Build.0 = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x86.ActiveCfg = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.optimize_test|x86.Build.0 = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x64.ActiveCfg = pHit|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x64.Build.0 = pHit|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x86.ActiveCfg = pHit|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.pHit|x86.Build.0 = pHit|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x64.ActiveCfg = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x64.Build.0 = Release|x64
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x86.ActiveCfg = Release|Win32
- {DD486C1B-C911-42B8-AB24-A9102A23DC02}.Release|x86.Build.0 = Release|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x64.ActiveCfg = Debug|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x64.Build.0 = Debug|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x86.ActiveCfg = Debug|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Debug|x86.Build.0 = Debug|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x64.ActiveCfg = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x64.Build.0 = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x86.ActiveCfg = Release|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Online|x86.Build.0 = Release|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x64.ActiveCfg = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x64.Build.0 = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x86.ActiveCfg = optimize_test|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.optimize_test|x86.Build.0 = optimize_test|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x64.ActiveCfg = pHit|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x64.Build.0 = pHit|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x86.ActiveCfg = pHit|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.pHit|x86.Build.0 = pHit|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x64.ActiveCfg = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x64.Build.0 = Release|x64
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x86.ActiveCfg = Release|Win32
- {82E7C50B-01E3-4D65-AECC-196E9494DFF4}.Release|x86.Build.0 = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Debug|x64.ActiveCfg = Debug|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Debug|x64.Build.0 = Debug|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Debug|x86.ActiveCfg = Debug|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Debug|x86.Build.0 = Debug|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Online|x64.ActiveCfg = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Online|x64.Build.0 = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Online|x86.ActiveCfg = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Online|x86.Build.0 = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.optimize_test|x64.ActiveCfg = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.optimize_test|x64.Build.0 = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.optimize_test|x86.ActiveCfg = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.optimize_test|x86.Build.0 = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.pHit|x64.ActiveCfg = pHit|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.pHit|x64.Build.0 = pHit|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.pHit|x86.ActiveCfg = pHit|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.pHit|x86.Build.0 = pHit|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Release|x64.ActiveCfg = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Release|x64.Build.0 = Release|x64
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Release|x86.ActiveCfg = Release|Win32
- {F0038E32-6DE8-47B7-BC86-8A2274B24406}.Release|x86.Build.0 = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Debug|x64.ActiveCfg = Debug|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Debug|x64.Build.0 = Debug|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Debug|x86.ActiveCfg = Debug|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Debug|x86.Build.0 = Debug|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Online|x64.ActiveCfg = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Online|x64.Build.0 = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Online|x86.ActiveCfg = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Online|x86.Build.0 = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.optimize_test|x64.ActiveCfg = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.optimize_test|x64.Build.0 = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.optimize_test|x86.ActiveCfg = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.optimize_test|x86.Build.0 = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.pHit|x64.ActiveCfg = pHit|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.pHit|x64.Build.0 = pHit|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.pHit|x86.ActiveCfg = pHit|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.pHit|x86.Build.0 = pHit|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Release|x64.ActiveCfg = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Release|x64.Build.0 = Release|x64
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Release|x86.ActiveCfg = Release|Win32
- {E877E475-A428-4FBC-AF71-378AFB92B706}.Release|x86.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {A4DB82D5-1FC8-4F42-9584-C5D51A28E429}
- EndGlobalSection
- GlobalSection(Performance) = preSolution
- HasPerformanceSessions = true
- EndGlobalSection
-EndGlobal
diff --git a/server/server.vcxproj.filters b/server/server.vcxproj.filters deleted file mode 100644 index d732209..0000000 --- a/server/server.vcxproj.filters +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="server_windows.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="client.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="server.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="server.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="client.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="util.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="message.hpp">
- <Filter>Source Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project>
\ No newline at end of file |
