aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/host.cpp
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-19 19:32:16 +0100
committerGitHub <noreply@github.com>2022-12-19 19:32:16 +0100
commite04f3b36accccb590a2d51b4829256b9964ac3fd (patch)
tree20ee30c82e6f53e6e772be2e1b9613eebca12bf3 /NorthstarDLL/host.cpp
parent33f18a735986dcd136bf8ba70ad8331306c28227 (diff)
downloadNorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.tar.gz
NorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.zip
Restructuring (#365)
* Remove launcher proxy * Restructuring * More restructuring * Fix include dirs * Fix merge * Remove clang thing * Filters * Oops
Diffstat (limited to 'NorthstarDLL/host.cpp')
-rw-r--r--NorthstarDLL/host.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/NorthstarDLL/host.cpp b/NorthstarDLL/host.cpp
deleted file mode 100644
index 87b1ce4e..00000000
--- a/NorthstarDLL/host.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "pch.h"
-#include "convar.h"
-#include "modmanager.h"
-#include "printcommand.h"
-#include "printmaps.h"
-#include "misccommands.h"
-#include "r2engine.h"
-#include "tier0.h"
-
-AUTOHOOK_INIT()
-
-// clang-format off
-AUTOHOOK(Host_Init, engine.dll + 0x155EA0,
-void, __fastcall, (bool bDedicated))
-// clang-format on
-{
- spdlog::info("Host_Init()");
- Host_Init(bDedicated);
-
- FixupCvarFlags();
-
- // need to initialise these after host_init since they do stuff to preexisting concommands/convars without being client/server specific
- InitialiseCommandPrint();
- InitialiseMapsPrint();
-
- // client/server autoexecs on necessary platforms
- // dedi needs autoexec_ns_server on boot, while non-dedi will run it on on listen server start
- if (bDedicated)
- R2::Cbuf_AddText(R2::Cbuf_GetCurrentPlayer(), "exec autoexec_ns_server", R2::cmd_source_t::kCommandSrcCode);
- else
- R2::Cbuf_AddText(R2::Cbuf_GetCurrentPlayer(), "exec autoexec_ns_client", R2::cmd_source_t::kCommandSrcCode);
-}
-
-ON_DLL_LOAD("engine.dll", Host_Init, (CModule module))
-{
- AUTOHOOK_DISPATCH()
-}