aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2023-02-14 15:04:42 +0100
committerGitHub <noreply@github.com>2023-02-14 14:04:42 +0000
commit9b1e2a0f4895f48b6a8169bf1b571294b2ad4c54 (patch)
treedcddfc464a83211a6922a3b2a43ded293b4303b9 /NorthstarDLL
parent95b41b6f8cc612953eafd7f8b6b40124e1590bc7 (diff)
downloadNorthstarLauncher-9b1e2a0f4895f48b6a8169bf1b571294b2ad4c54.tar.gz
NorthstarLauncher-9b1e2a0f4895f48b6a8169bf1b571294b2ad4c54.zip
Force-include `pch.h` to all files, remove explicit includes (#393)
* force-include "pch.h" in all units, as it will error if it's not included anyways * remove #include "pch.h" from all files as it's not needed anymore now * fix size of NSUserAgent to be consistent (it's 256 in version.cpp, caused compile error) * Re-add explicit pch.h include to pch.cpp (and ran clang-format) * drop pch.h inclusion from new files
Diffstat (limited to 'NorthstarDLL')
-rw-r--r--NorthstarDLL/NorthstarDLL.vcxproj2
-rw-r--r--NorthstarDLL/client/audio.cpp1
-rw-r--r--NorthstarDLL/client/chatcommand.cpp1
-rw-r--r--NorthstarDLL/client/clientauthhooks.cpp1
-rw-r--r--NorthstarDLL/client/clientruihooks.cpp1
-rw-r--r--NorthstarDLL/client/clientvideooverrides.cpp1
-rw-r--r--NorthstarDLL/client/debugoverlay.cpp1
-rw-r--r--NorthstarDLL/client/demofixes.cpp1
-rw-r--r--NorthstarDLL/client/diskvmtfixes.cpp1
-rw-r--r--NorthstarDLL/client/languagehooks.cpp1
-rw-r--r--NorthstarDLL/client/latencyflex.cpp1
-rw-r--r--NorthstarDLL/client/localchatwriter.cpp1
-rw-r--r--NorthstarDLL/client/localchatwriter.h1
-rw-r--r--NorthstarDLL/client/modlocalisation.cpp1
-rw-r--r--NorthstarDLL/client/r2client.cpp1
-rw-r--r--NorthstarDLL/client/rejectconnectionfixes.cpp1
-rw-r--r--NorthstarDLL/config/profile.cpp1
-rw-r--r--NorthstarDLL/core/convar/concommand.cpp1
-rw-r--r--NorthstarDLL/core/convar/convar.cpp1
-rw-r--r--NorthstarDLL/core/convar/cvar.cpp1
-rw-r--r--NorthstarDLL/core/filesystem/filesystem.cpp1
-rw-r--r--NorthstarDLL/core/filesystem/rpakfilesystem.cpp1
-rw-r--r--NorthstarDLL/core/hooks.cpp1
-rw-r--r--NorthstarDLL/core/math/bits.cpp1
-rw-r--r--NorthstarDLL/core/math/color.cpp1
-rw-r--r--NorthstarDLL/core/memalloc.cpp1
-rw-r--r--NorthstarDLL/core/memory.cpp1
-rw-r--r--NorthstarDLL/core/sourceinterface.cpp1
-rw-r--r--NorthstarDLL/core/tier0.cpp1
-rw-r--r--NorthstarDLL/dedicated/dedicated.cpp1
-rw-r--r--NorthstarDLL/dedicated/dedicatedmaterialsystem.cpp1
-rw-r--r--NorthstarDLL/dllmain.cpp1
-rw-r--r--NorthstarDLL/engine/host.cpp1
-rw-r--r--NorthstarDLL/engine/hoststate.cpp1
-rw-r--r--NorthstarDLL/engine/r2engine.cpp1
-rw-r--r--NorthstarDLL/engine/runframe.cpp1
-rw-r--r--NorthstarDLL/logging/crashhandler.cpp1
-rw-r--r--NorthstarDLL/logging/logging.cpp1
-rw-r--r--NorthstarDLL/logging/logging.h1
-rw-r--r--NorthstarDLL/logging/loghooks.cpp1
-rw-r--r--NorthstarDLL/logging/sourceconsole.cpp1
-rw-r--r--NorthstarDLL/logging/sourceconsole.h1
-rw-r--r--NorthstarDLL/masterserver/masterserver.cpp1
-rw-r--r--NorthstarDLL/mods/compiled/kb_act.cpp1
-rw-r--r--NorthstarDLL/mods/compiled/modkeyvalues.cpp1
-rw-r--r--NorthstarDLL/mods/compiled/modpdef.cpp1
-rw-r--r--NorthstarDLL/mods/compiled/modscriptsrson.cpp1
-rw-r--r--NorthstarDLL/mods/modmanager.cpp1
-rw-r--r--NorthstarDLL/plugins/plugins.cpp1
-rw-r--r--NorthstarDLL/scripts/client/clientchathooks.cpp1
-rw-r--r--NorthstarDLL/scripts/client/cursorposition.cpp1
-rw-r--r--NorthstarDLL/scripts/client/scriptbrowserhooks.cpp1
-rw-r--r--NorthstarDLL/scripts/client/scriptmainmenupromos.cpp1
-rw-r--r--NorthstarDLL/scripts/client/scriptmodmenu.cpp1
-rw-r--r--NorthstarDLL/scripts/client/scriptserverbrowser.cpp1
-rw-r--r--NorthstarDLL/scripts/client/scriptservertoclientstringcommand.cpp1
-rw-r--r--NorthstarDLL/scripts/scriptdatatables.cpp1
-rw-r--r--NorthstarDLL/scripts/scripthttprequesthandler.cpp1
-rw-r--r--NorthstarDLL/scripts/scripthttprequesthandler.h2
-rw-r--r--NorthstarDLL/scripts/scriptjson.cpp1
-rw-r--r--NorthstarDLL/scripts/scriptutility.cpp1
-rw-r--r--NorthstarDLL/scripts/server/miscserverfixes.cpp1
-rw-r--r--NorthstarDLL/scripts/server/miscserverscript.cpp1
-rw-r--r--NorthstarDLL/scripts/server/scriptuserinfo.cpp1
-rw-r--r--NorthstarDLL/server/auth/bansystem.cpp1
-rw-r--r--NorthstarDLL/server/auth/serverauthentication.cpp1
-rw-r--r--NorthstarDLL/server/buildainfile.cpp1
-rw-r--r--NorthstarDLL/server/r2server.cpp1
-rw-r--r--NorthstarDLL/server/serverchathooks.cpp1
-rw-r--r--NorthstarDLL/server/serverchathooks.h1
-rw-r--r--NorthstarDLL/server/serverpresence.cpp1
-rw-r--r--NorthstarDLL/shared/exploit_fixes/exploitfixes.cpp1
-rw-r--r--NorthstarDLL/shared/exploit_fixes/exploitfixes_lzss.cpp1
-rw-r--r--NorthstarDLL/shared/exploit_fixes/exploitfixes_utf8parser.cpp1
-rw-r--r--NorthstarDLL/shared/exploit_fixes/ns_limits.cpp1
-rw-r--r--NorthstarDLL/shared/keyvalues.cpp1
-rw-r--r--NorthstarDLL/shared/maxplayers.cpp1
-rw-r--r--NorthstarDLL/shared/misccommands.cpp1
-rw-r--r--NorthstarDLL/shared/playlist.cpp1
-rw-r--r--NorthstarDLL/squirrel/squirrel.cpp1
-rw-r--r--NorthstarDLL/squirrel/squirrelautobind.cpp1
-rw-r--r--NorthstarDLL/squirrel/squirrelclasstypes.h1
-rw-r--r--NorthstarDLL/util/printcommands.cpp1
-rw-r--r--NorthstarDLL/util/printmaps.cpp1
-rw-r--r--NorthstarDLL/util/utils.cpp1
-rw-r--r--NorthstarDLL/util/version.cpp1
-rw-r--r--NorthstarDLL/util/version.h2
-rw-r--r--NorthstarDLL/util/wininfo.cpp2
-rw-r--r--NorthstarDLL/util/wininfo.h2
89 files changed, 3 insertions, 91 deletions
diff --git a/NorthstarDLL/NorthstarDLL.vcxproj b/NorthstarDLL/NorthstarDLL.vcxproj
index ebbeb375..bb28d575 100644
--- a/NorthstarDLL/NorthstarDLL.vcxproj
+++ b/NorthstarDLL/NorthstarDLL.vcxproj
@@ -63,6 +63,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -95,6 +96,7 @@
<AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<Optimization>Disabled</Optimization>
+ <ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
diff --git a/NorthstarDLL/client/audio.cpp b/NorthstarDLL/client/audio.cpp
index f0bc385b..ea1f6416 100644
--- a/NorthstarDLL/client/audio.cpp
+++ b/NorthstarDLL/client/audio.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "audio.h"
#include "dedicated/dedicated.h"
#include "core/convar/convar.h"
diff --git a/NorthstarDLL/client/chatcommand.cpp b/NorthstarDLL/client/chatcommand.cpp
index 76ed9784..c1ad1b3b 100644
--- a/NorthstarDLL/client/chatcommand.cpp
+++ b/NorthstarDLL/client/chatcommand.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "localchatwriter.h"
diff --git a/NorthstarDLL/client/clientauthhooks.cpp b/NorthstarDLL/client/clientauthhooks.cpp
index 904ecb2f..7fca9581 100644
--- a/NorthstarDLL/client/clientauthhooks.cpp
+++ b/NorthstarDLL/client/clientauthhooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "masterserver/masterserver.h"
#include "core/convar/convar.h"
#include "client/r2client.h"
diff --git a/NorthstarDLL/client/clientruihooks.cpp b/NorthstarDLL/client/clientruihooks.cpp
index 7896daa8..ad50d11a 100644
--- a/NorthstarDLL/client/clientruihooks.cpp
+++ b/NorthstarDLL/client/clientruihooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/client/clientvideooverrides.cpp b/NorthstarDLL/client/clientvideooverrides.cpp
index 1a5924c7..d8aa2754 100644
--- a/NorthstarDLL/client/clientvideooverrides.cpp
+++ b/NorthstarDLL/client/clientvideooverrides.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/client/debugoverlay.cpp b/NorthstarDLL/client/debugoverlay.cpp
index dd273227..e3a9292d 100644
--- a/NorthstarDLL/client/debugoverlay.cpp
+++ b/NorthstarDLL/client/debugoverlay.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "dedicated/dedicated.h"
#include "core/convar/cvar.h"
#include "core/math/vector.h"
diff --git a/NorthstarDLL/client/demofixes.cpp b/NorthstarDLL/client/demofixes.cpp
index 5fb49918..65e48fc0 100644
--- a/NorthstarDLL/client/demofixes.cpp
+++ b/NorthstarDLL/client/demofixes.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
ON_DLL_LOAD_CLIENT("engine.dll", EngineDemoFixes, (CModule module))
diff --git a/NorthstarDLL/client/diskvmtfixes.cpp b/NorthstarDLL/client/diskvmtfixes.cpp
index cd762c8a..4ab951c0 100644
--- a/NorthstarDLL/client/diskvmtfixes.cpp
+++ b/NorthstarDLL/client/diskvmtfixes.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
ON_DLL_LOAD_CLIENT("materialsystem_dx11.dll", DiskVMTFixes, (CModule module))
{
diff --git a/NorthstarDLL/client/languagehooks.cpp b/NorthstarDLL/client/languagehooks.cpp
index 1a46633c..4251dbbd 100644
--- a/NorthstarDLL/client/languagehooks.cpp
+++ b/NorthstarDLL/client/languagehooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/tier0.h"
#include <filesystem>
diff --git a/NorthstarDLL/client/latencyflex.cpp b/NorthstarDLL/client/latencyflex.cpp
index a1ef72ca..25e38c7a 100644
--- a/NorthstarDLL/client/latencyflex.cpp
+++ b/NorthstarDLL/client/latencyflex.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/client/localchatwriter.cpp b/NorthstarDLL/client/localchatwriter.cpp
index efa7eeee..57fe98a2 100644
--- a/NorthstarDLL/client/localchatwriter.cpp
+++ b/NorthstarDLL/client/localchatwriter.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "localchatwriter.h"
class vgui_BaseRichText_vtable;
diff --git a/NorthstarDLL/client/localchatwriter.h b/NorthstarDLL/client/localchatwriter.h
index 8bb1fb2f..de9e2f9b 100644
--- a/NorthstarDLL/client/localchatwriter.h
+++ b/NorthstarDLL/client/localchatwriter.h
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include "core/math/color.h"
class vgui_BaseRichText;
diff --git a/NorthstarDLL/client/modlocalisation.cpp b/NorthstarDLL/client/modlocalisation.cpp
index e5afc793..2b73876b 100644
--- a/NorthstarDLL/client/modlocalisation.cpp
+++ b/NorthstarDLL/client/modlocalisation.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/client/r2client.cpp b/NorthstarDLL/client/r2client.cpp
index 2e7bd564..fabc0dc6 100644
--- a/NorthstarDLL/client/r2client.cpp
+++ b/NorthstarDLL/client/r2client.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "r2client.h"
using namespace R2;
diff --git a/NorthstarDLL/client/rejectconnectionfixes.cpp b/NorthstarDLL/client/rejectconnectionfixes.cpp
index 994e9747..5daeb3ee 100644
--- a/NorthstarDLL/client/rejectconnectionfixes.cpp
+++ b/NorthstarDLL/client/rejectconnectionfixes.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "engine/r2engine.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/config/profile.cpp b/NorthstarDLL/config/profile.cpp
index 7518a2b3..08c91208 100644
--- a/NorthstarDLL/config/profile.cpp
+++ b/NorthstarDLL/config/profile.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "config/profile.h"
#include "dedicated/dedicated.h"
#include <string>
diff --git a/NorthstarDLL/core/convar/concommand.cpp b/NorthstarDLL/core/convar/concommand.cpp
index 094fa813..88bd8825 100644
--- a/NorthstarDLL/core/convar/concommand.cpp
+++ b/NorthstarDLL/core/convar/concommand.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "concommand.h"
#include "shared/misccommands.h"
#include "engine/r2engine.h"
diff --git a/NorthstarDLL/core/convar/convar.cpp b/NorthstarDLL/core/convar/convar.cpp
index 11411c0a..21fca8c0 100644
--- a/NorthstarDLL/core/convar/convar.cpp
+++ b/NorthstarDLL/core/convar/convar.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "bits.h"
#include "cvar.h"
#include "convar.h"
diff --git a/NorthstarDLL/core/convar/cvar.cpp b/NorthstarDLL/core/convar/cvar.cpp
index 787790be..21f8d2ec 100644
--- a/NorthstarDLL/core/convar/cvar.cpp
+++ b/NorthstarDLL/core/convar/cvar.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "cvar.h"
#include "convar.h"
#include "concommand.h"
diff --git a/NorthstarDLL/core/filesystem/filesystem.cpp b/NorthstarDLL/core/filesystem/filesystem.cpp
index ac42d00f..88622e5d 100644
--- a/NorthstarDLL/core/filesystem/filesystem.cpp
+++ b/NorthstarDLL/core/filesystem/filesystem.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "filesystem.h"
#include "core/sourceinterface.h"
#include "mods/modmanager.h"
diff --git a/NorthstarDLL/core/filesystem/rpakfilesystem.cpp b/NorthstarDLL/core/filesystem/rpakfilesystem.cpp
index c3463781..c863463c 100644
--- a/NorthstarDLL/core/filesystem/rpakfilesystem.cpp
+++ b/NorthstarDLL/core/filesystem/rpakfilesystem.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "rpakfilesystem.h"
#include "mods/modmanager.h"
#include "dedicated/dedicated.h"
diff --git a/NorthstarDLL/core/hooks.cpp b/NorthstarDLL/core/hooks.cpp
index 79bcbb92..34b48d1d 100644
--- a/NorthstarDLL/core/hooks.cpp
+++ b/NorthstarDLL/core/hooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "dedicated/dedicated.h"
#include <iostream>
diff --git a/NorthstarDLL/core/math/bits.cpp b/NorthstarDLL/core/math/bits.cpp
index 014899f2..c879a45c 100644
--- a/NorthstarDLL/core/math/bits.cpp
+++ b/NorthstarDLL/core/math/bits.cpp
@@ -4,7 +4,6 @@
//
//=============================================================================//
-#include "pch.h"
#include "bits.h"
//-----------------------------------------------------------------------------
diff --git a/NorthstarDLL/core/math/color.cpp b/NorthstarDLL/core/math/color.cpp
index 05cf645f..9936cc5a 100644
--- a/NorthstarDLL/core/math/color.cpp
+++ b/NorthstarDLL/core/math/color.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
// clang-format off
namespace NS::Colors
diff --git a/NorthstarDLL/core/memalloc.cpp b/NorthstarDLL/core/memalloc.cpp
index 122ab444..69ce6f54 100644
--- a/NorthstarDLL/core/memalloc.cpp
+++ b/NorthstarDLL/core/memalloc.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/memalloc.h"
#include "core/tier0.h"
diff --git a/NorthstarDLL/core/memory.cpp b/NorthstarDLL/core/memory.cpp
index 5e7c3e78..7bd87d70 100644
--- a/NorthstarDLL/core/memory.cpp
+++ b/NorthstarDLL/core/memory.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "memory.h"
MemoryAddress::MemoryAddress() : m_nAddress(0) {}
diff --git a/NorthstarDLL/core/sourceinterface.cpp b/NorthstarDLL/core/sourceinterface.cpp
index f9ad694c..5a72beb0 100644
--- a/NorthstarDLL/core/sourceinterface.cpp
+++ b/NorthstarDLL/core/sourceinterface.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "sourceinterface.h"
#include "logging/sourceconsole.h"
diff --git a/NorthstarDLL/core/tier0.cpp b/NorthstarDLL/core/tier0.cpp
index 61ad7783..cbad3ec0 100644
--- a/NorthstarDLL/core/tier0.cpp
+++ b/NorthstarDLL/core/tier0.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "tier0.h"
// use the Tier0 namespace for tier0 funcs
diff --git a/NorthstarDLL/dedicated/dedicated.cpp b/NorthstarDLL/dedicated/dedicated.cpp
index e58900b7..267fbe92 100644
--- a/NorthstarDLL/dedicated/dedicated.cpp
+++ b/NorthstarDLL/dedicated/dedicated.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "dedicated.h"
#include "core/tier0.h"
#include "playlist.h"
diff --git a/NorthstarDLL/dedicated/dedicatedmaterialsystem.cpp b/NorthstarDLL/dedicated/dedicatedmaterialsystem.cpp
index 37b74576..5bd6ea93 100644
--- a/NorthstarDLL/dedicated/dedicatedmaterialsystem.cpp
+++ b/NorthstarDLL/dedicated/dedicatedmaterialsystem.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "dedicated.h"
#include "core/tier0.h"
diff --git a/NorthstarDLL/dllmain.cpp b/NorthstarDLL/dllmain.cpp
index cd52940d..a697da5b 100644
--- a/NorthstarDLL/dllmain.cpp
+++ b/NorthstarDLL/dllmain.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "dllmain.h"
#include "logging/logging.h"
#include "logging/crashhandler.h"
diff --git a/NorthstarDLL/engine/host.cpp b/NorthstarDLL/engine/host.cpp
index a55c8dfd..436a169d 100644
--- a/NorthstarDLL/engine/host.cpp
+++ b/NorthstarDLL/engine/host.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
#include "mods/modmanager.h"
#include "util/printcommands.h"
diff --git a/NorthstarDLL/engine/hoststate.cpp b/NorthstarDLL/engine/hoststate.cpp
index 4900539b..5a295425 100644
--- a/NorthstarDLL/engine/hoststate.cpp
+++ b/NorthstarDLL/engine/hoststate.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "engine/hoststate.h"
#include "masterserver/masterserver.h"
#include "server/auth/serverauthentication.h"
diff --git a/NorthstarDLL/engine/r2engine.cpp b/NorthstarDLL/engine/r2engine.cpp
index eaa392c8..303cfaf8 100644
--- a/NorthstarDLL/engine/r2engine.cpp
+++ b/NorthstarDLL/engine/r2engine.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "r2engine.h"
using namespace R2;
diff --git a/NorthstarDLL/engine/runframe.cpp b/NorthstarDLL/engine/runframe.cpp
index 3df93f54..40a619bb 100644
--- a/NorthstarDLL/engine/runframe.cpp
+++ b/NorthstarDLL/engine/runframe.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "engine/r2engine.h"
#include "server/r2server.h"
#include "hoststate.h"
diff --git a/NorthstarDLL/logging/crashhandler.cpp b/NorthstarDLL/logging/crashhandler.cpp
index 1e9bf4b3..5d120d1f 100644
--- a/NorthstarDLL/logging/crashhandler.cpp
+++ b/NorthstarDLL/logging/crashhandler.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "crashhandler.h"
#include "dedicated/dedicated.h"
#include "config/profile.h"
diff --git a/NorthstarDLL/logging/logging.cpp b/NorthstarDLL/logging/logging.cpp
index 8b906911..f88928e1 100644
--- a/NorthstarDLL/logging/logging.cpp
+++ b/NorthstarDLL/logging/logging.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "logging.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/logging/logging.h b/NorthstarDLL/logging/logging.h
index 2cccdde6..1cfc6644 100644
--- a/NorthstarDLL/logging/logging.h
+++ b/NorthstarDLL/logging/logging.h
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include "spdlog/sinks/base_sink.h"
#include "spdlog/logger.h"
#include "squirrel/squirrel.h"
diff --git a/NorthstarDLL/logging/loghooks.cpp b/NorthstarDLL/logging/loghooks.cpp
index d09f23cc..805a5125 100644
--- a/NorthstarDLL/logging/loghooks.cpp
+++ b/NorthstarDLL/logging/loghooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "logging.h"
#include "loghooks.h"
#include "core/convar/convar.h"
diff --git a/NorthstarDLL/logging/sourceconsole.cpp b/NorthstarDLL/logging/sourceconsole.cpp
index 775caa49..16080794 100644
--- a/NorthstarDLL/logging/sourceconsole.cpp
+++ b/NorthstarDLL/logging/sourceconsole.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
#include "sourceconsole.h"
#include "core/sourceinterface.h"
diff --git a/NorthstarDLL/logging/sourceconsole.h b/NorthstarDLL/logging/sourceconsole.h
index cf7027df..3abcc470 100644
--- a/NorthstarDLL/logging/sourceconsole.h
+++ b/NorthstarDLL/logging/sourceconsole.h
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include "core/sourceinterface.h"
#include "spdlog/sinks/base_sink.h"
#include <map>
diff --git a/NorthstarDLL/masterserver/masterserver.cpp b/NorthstarDLL/masterserver/masterserver.cpp
index 5679939b..37301886 100644
--- a/NorthstarDLL/masterserver/masterserver.cpp
+++ b/NorthstarDLL/masterserver/masterserver.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "masterserver/masterserver.h"
#include "core/convar/concommand.h"
#include "playlist.h"
diff --git a/NorthstarDLL/mods/compiled/kb_act.cpp b/NorthstarDLL/mods/compiled/kb_act.cpp
index 4a011dc7..3fc7ee30 100644
--- a/NorthstarDLL/mods/compiled/kb_act.cpp
+++ b/NorthstarDLL/mods/compiled/kb_act.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
#include "core/filesystem/filesystem.h"
diff --git a/NorthstarDLL/mods/compiled/modkeyvalues.cpp b/NorthstarDLL/mods/compiled/modkeyvalues.cpp
index 774be0eb..fe262a60 100644
--- a/NorthstarDLL/mods/compiled/modkeyvalues.cpp
+++ b/NorthstarDLL/mods/compiled/modkeyvalues.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
#include "core/filesystem/filesystem.h"
diff --git a/NorthstarDLL/mods/compiled/modpdef.cpp b/NorthstarDLL/mods/compiled/modpdef.cpp
index 219c744b..4b1b12b7 100644
--- a/NorthstarDLL/mods/compiled/modpdef.cpp
+++ b/NorthstarDLL/mods/compiled/modpdef.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
#include "core/filesystem/filesystem.h"
diff --git a/NorthstarDLL/mods/compiled/modscriptsrson.cpp b/NorthstarDLL/mods/compiled/modscriptsrson.cpp
index 15fcdd13..cbe26651 100644
--- a/NorthstarDLL/mods/compiled/modscriptsrson.cpp
+++ b/NorthstarDLL/mods/compiled/modscriptsrson.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
#include "core/filesystem/filesystem.h"
#include "squirrel/squirrel.h"
diff --git a/NorthstarDLL/mods/modmanager.cpp b/NorthstarDLL/mods/modmanager.cpp
index e37df6e5..bc0cb2ed 100644
--- a/NorthstarDLL/mods/modmanager.cpp
+++ b/NorthstarDLL/mods/modmanager.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "modmanager.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/plugins/plugins.cpp b/NorthstarDLL/plugins/plugins.cpp
index 97ac0b9f..47d27da1 100644
--- a/NorthstarDLL/plugins/plugins.cpp
+++ b/NorthstarDLL/plugins/plugins.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "plugins.h"
#include "masterserver/masterserver.h"
diff --git a/NorthstarDLL/scripts/client/clientchathooks.cpp b/NorthstarDLL/scripts/client/clientchathooks.cpp
index a1a9e503..df9497ef 100644
--- a/NorthstarDLL/scripts/client/clientchathooks.cpp
+++ b/NorthstarDLL/scripts/client/clientchathooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "util/utils.h"
diff --git a/NorthstarDLL/scripts/client/cursorposition.cpp b/NorthstarDLL/scripts/client/cursorposition.cpp
index 61fd427a..c0e8623c 100644
--- a/NorthstarDLL/scripts/client/cursorposition.cpp
+++ b/NorthstarDLL/scripts/client/cursorposition.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "util/wininfo.h"
diff --git a/NorthstarDLL/scripts/client/scriptbrowserhooks.cpp b/NorthstarDLL/scripts/client/scriptbrowserhooks.cpp
index df4014de..1462e57f 100644
--- a/NorthstarDLL/scripts/client/scriptbrowserhooks.cpp
+++ b/NorthstarDLL/scripts/client/scriptbrowserhooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/scripts/client/scriptmainmenupromos.cpp b/NorthstarDLL/scripts/client/scriptmainmenupromos.cpp
index 0ea167f8..ecb47af7 100644
--- a/NorthstarDLL/scripts/client/scriptmainmenupromos.cpp
+++ b/NorthstarDLL/scripts/client/scriptmainmenupromos.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "masterserver/masterserver.h"
diff --git a/NorthstarDLL/scripts/client/scriptmodmenu.cpp b/NorthstarDLL/scripts/client/scriptmodmenu.cpp
index 75d05acc..a88478fb 100644
--- a/NorthstarDLL/scripts/client/scriptmodmenu.cpp
+++ b/NorthstarDLL/scripts/client/scriptmodmenu.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "mods/modmanager.h"
#include "squirrel/squirrel.h"
diff --git a/NorthstarDLL/scripts/client/scriptserverbrowser.cpp b/NorthstarDLL/scripts/client/scriptserverbrowser.cpp
index 5f1287ad..584ec905 100644
--- a/NorthstarDLL/scripts/client/scriptserverbrowser.cpp
+++ b/NorthstarDLL/scripts/client/scriptserverbrowser.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "masterserver/masterserver.h"
#include "server/auth/serverauthentication.h"
diff --git a/NorthstarDLL/scripts/client/scriptservertoclientstringcommand.cpp b/NorthstarDLL/scripts/client/scriptservertoclientstringcommand.cpp
index f3cb2f18..a3a81c8a 100644
--- a/NorthstarDLL/scripts/client/scriptservertoclientstringcommand.cpp
+++ b/NorthstarDLL/scripts/client/scriptservertoclientstringcommand.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/scripts/scriptdatatables.cpp b/NorthstarDLL/scripts/scriptdatatables.cpp
index 915d4df0..b050ff8d 100644
--- a/NorthstarDLL/scripts/scriptdatatables.cpp
+++ b/NorthstarDLL/scripts/scriptdatatables.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "core/filesystem/rpakfilesystem.h"
#include "core/convar/convar.h"
diff --git a/NorthstarDLL/scripts/scripthttprequesthandler.cpp b/NorthstarDLL/scripts/scripthttprequesthandler.cpp
index 17ccc888..8a6f70fc 100644
--- a/NorthstarDLL/scripts/scripthttprequesthandler.cpp
+++ b/NorthstarDLL/scripts/scripthttprequesthandler.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "scripthttprequesthandler.h"
#include "util/version.h"
#include "squirrel/squirrel.h"
diff --git a/NorthstarDLL/scripts/scripthttprequesthandler.h b/NorthstarDLL/scripts/scripthttprequesthandler.h
index 0f888b6e..1f237bac 100644
--- a/NorthstarDLL/scripts/scripthttprequesthandler.h
+++ b/NorthstarDLL/scripts/scripthttprequesthandler.h
@@ -1,7 +1,5 @@
#pragma once
-#include "pch.h"
-
enum class ScriptContext;
// These definitions below should match on the Squirrel side so we can easily pass them along through a function.
diff --git a/NorthstarDLL/scripts/scriptjson.cpp b/NorthstarDLL/scripts/scriptjson.cpp
index f41b0457..98cb52d6 100644
--- a/NorthstarDLL/scripts/scriptjson.cpp
+++ b/NorthstarDLL/scripts/scriptjson.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "rapidjson/error/en.h"
diff --git a/NorthstarDLL/scripts/scriptutility.cpp b/NorthstarDLL/scripts/scriptutility.cpp
index fa35df7b..054836ca 100644
--- a/NorthstarDLL/scripts/scriptutility.cpp
+++ b/NorthstarDLL/scripts/scriptutility.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "client/r2client.h"
#include "engine/r2engine.h"
diff --git a/NorthstarDLL/scripts/server/miscserverfixes.cpp b/NorthstarDLL/scripts/server/miscserverfixes.cpp
index 4feca505..48c2c111 100644
--- a/NorthstarDLL/scripts/server/miscserverfixes.cpp
+++ b/NorthstarDLL/scripts/server/miscserverfixes.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
ON_DLL_LOAD("server.dll", MiscServerFixes, (CModule module))
{
diff --git a/NorthstarDLL/scripts/server/miscserverscript.cpp b/NorthstarDLL/scripts/server/miscserverscript.cpp
index b58bdfda..06e9fda0 100644
--- a/NorthstarDLL/scripts/server/miscserverscript.cpp
+++ b/NorthstarDLL/scripts/server/miscserverscript.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "masterserver/masterserver.h"
#include "server/auth/serverauthentication.h"
diff --git a/NorthstarDLL/scripts/server/scriptuserinfo.cpp b/NorthstarDLL/scripts/server/scriptuserinfo.cpp
index 68baac0e..6b26ed61 100644
--- a/NorthstarDLL/scripts/server/scriptuserinfo.cpp
+++ b/NorthstarDLL/scripts/server/scriptuserinfo.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel/squirrel.h"
#include "engine/r2engine.h"
#include "server/r2server.h"
diff --git a/NorthstarDLL/server/auth/bansystem.cpp b/NorthstarDLL/server/auth/bansystem.cpp
index 47df495d..a438450f 100644
--- a/NorthstarDLL/server/auth/bansystem.cpp
+++ b/NorthstarDLL/server/auth/bansystem.cpp
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include "bansystem.h"
#include "serverauthentication.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/server/auth/serverauthentication.cpp b/NorthstarDLL/server/auth/serverauthentication.cpp
index 2f06f60f..72f21d51 100644
--- a/NorthstarDLL/server/auth/serverauthentication.cpp
+++ b/NorthstarDLL/server/auth/serverauthentication.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "serverauthentication.h"
#include "shared/exploit_fixes/ns_limits.h"
#include "core/convar/cvar.h"
diff --git a/NorthstarDLL/server/buildainfile.cpp b/NorthstarDLL/server/buildainfile.cpp
index d1150a6b..848d8569 100644
--- a/NorthstarDLL/server/buildainfile.cpp
+++ b/NorthstarDLL/server/buildainfile.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/convar.h"
#include "engine/hoststate.h"
#include "engine/r2engine.h"
diff --git a/NorthstarDLL/server/r2server.cpp b/NorthstarDLL/server/r2server.cpp
index 50cfa239..a8aa84ce 100644
--- a/NorthstarDLL/server/r2server.cpp
+++ b/NorthstarDLL/server/r2server.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "r2server.h"
using namespace R2;
diff --git a/NorthstarDLL/server/serverchathooks.cpp b/NorthstarDLL/server/serverchathooks.cpp
index 0ea3c2d2..96765697 100644
--- a/NorthstarDLL/server/serverchathooks.cpp
+++ b/NorthstarDLL/server/serverchathooks.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "serverchathooks.h"
#include "shared/exploit_fixes/ns_limits.h"
#include "squirrel/squirrel.h"
diff --git a/NorthstarDLL/server/serverchathooks.h b/NorthstarDLL/server/serverchathooks.h
index 1d8a806a..8fda3cec 100644
--- a/NorthstarDLL/server/serverchathooks.h
+++ b/NorthstarDLL/server/serverchathooks.h
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
diff --git a/NorthstarDLL/server/serverpresence.cpp b/NorthstarDLL/server/serverpresence.cpp
index bda5e7fe..072ef347 100644
--- a/NorthstarDLL/server/serverpresence.cpp
+++ b/NorthstarDLL/server/serverpresence.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "serverpresence.h"
#include "shared/playlist.h"
#include "core/tier0.h"
diff --git a/NorthstarDLL/shared/exploit_fixes/exploitfixes.cpp b/NorthstarDLL/shared/exploit_fixes/exploitfixes.cpp
index 8cb956e6..338de306 100644
--- a/NorthstarDLL/shared/exploit_fixes/exploitfixes.cpp
+++ b/NorthstarDLL/shared/exploit_fixes/exploitfixes.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/convar/cvar.h"
#include "ns_limits.h"
#include "dedicated/dedicated.h"
diff --git a/NorthstarDLL/shared/exploit_fixes/exploitfixes_lzss.cpp b/NorthstarDLL/shared/exploit_fixes/exploitfixes_lzss.cpp
index 4205133a..ccb6ac18 100644
--- a/NorthstarDLL/shared/exploit_fixes/exploitfixes_lzss.cpp
+++ b/NorthstarDLL/shared/exploit_fixes/exploitfixes_lzss.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/shared/exploit_fixes/exploitfixes_utf8parser.cpp b/NorthstarDLL/shared/exploit_fixes/exploitfixes_utf8parser.cpp
index e2510765..de0b0f21 100644
--- a/NorthstarDLL/shared/exploit_fixes/exploitfixes_utf8parser.cpp
+++ b/NorthstarDLL/shared/exploit_fixes/exploitfixes_utf8parser.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
AUTOHOOK_INIT()
diff --git a/NorthstarDLL/shared/exploit_fixes/ns_limits.cpp b/NorthstarDLL/shared/exploit_fixes/ns_limits.cpp
index 135cfb83..b01a9b98 100644
--- a/NorthstarDLL/shared/exploit_fixes/ns_limits.cpp
+++ b/NorthstarDLL/shared/exploit_fixes/ns_limits.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "ns_limits.h"
#include "engine/hoststate.h"
#include "client/r2client.h"
diff --git a/NorthstarDLL/shared/keyvalues.cpp b/NorthstarDLL/shared/keyvalues.cpp
index 25155dde..06ed8d68 100644
--- a/NorthstarDLL/shared/keyvalues.cpp
+++ b/NorthstarDLL/shared/keyvalues.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "keyvalues.h"
#include <winnt.h>
diff --git a/NorthstarDLL/shared/maxplayers.cpp b/NorthstarDLL/shared/maxplayers.cpp
index ebb44341..dcf4044e 100644
--- a/NorthstarDLL/shared/maxplayers.cpp
+++ b/NorthstarDLL/shared/maxplayers.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "core/tier0.h"
#include "maxplayers.h"
diff --git a/NorthstarDLL/shared/misccommands.cpp b/NorthstarDLL/shared/misccommands.cpp
index f3817867..15e12720 100644
--- a/NorthstarDLL/shared/misccommands.cpp
+++ b/NorthstarDLL/shared/misccommands.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "misccommands.h"
#include "core/convar/concommand.h"
#include "shared/playlist.h"
diff --git a/NorthstarDLL/shared/playlist.cpp b/NorthstarDLL/shared/playlist.cpp
index 7c8f7312..018b2a9b 100644
--- a/NorthstarDLL/shared/playlist.cpp
+++ b/NorthstarDLL/shared/playlist.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "playlist.h"
#include "core/convar/concommand.h"
#include "core/convar/convar.h"
diff --git a/NorthstarDLL/squirrel/squirrel.cpp b/NorthstarDLL/squirrel/squirrel.cpp
index 25fb90d5..4cf342db 100644
--- a/NorthstarDLL/squirrel/squirrel.cpp
+++ b/NorthstarDLL/squirrel/squirrel.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrel.h"
#include "logging/logging.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/squirrel/squirrelautobind.cpp b/NorthstarDLL/squirrel/squirrelautobind.cpp
index d5f42477..c15240f5 100644
--- a/NorthstarDLL/squirrel/squirrelautobind.cpp
+++ b/NorthstarDLL/squirrel/squirrelautobind.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "squirrelautobind.h"
SquirrelAutoBindContainer* g_pSqAutoBindContainer;
diff --git a/NorthstarDLL/squirrel/squirrelclasstypes.h b/NorthstarDLL/squirrel/squirrelclasstypes.h
index efc80f15..68b57bae 100644
--- a/NorthstarDLL/squirrel/squirrelclasstypes.h
+++ b/NorthstarDLL/squirrel/squirrelclasstypes.h
@@ -1,5 +1,4 @@
#pragma once
-#include "pch.h"
#include "squirreldatatypes.h"
#include <queue>
diff --git a/NorthstarDLL/util/printcommands.cpp b/NorthstarDLL/util/printcommands.cpp
index 5552c50c..c3eb21ab 100644
--- a/NorthstarDLL/util/printcommands.cpp
+++ b/NorthstarDLL/util/printcommands.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "printcommands.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/util/printmaps.cpp b/NorthstarDLL/util/printmaps.cpp
index 0a5f73f2..99bda23c 100644
--- a/NorthstarDLL/util/printmaps.cpp
+++ b/NorthstarDLL/util/printmaps.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include "printmaps.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
diff --git a/NorthstarDLL/util/utils.cpp b/NorthstarDLL/util/utils.cpp
index a3b31e17..2c9dc85a 100644
--- a/NorthstarDLL/util/utils.cpp
+++ b/NorthstarDLL/util/utils.cpp
@@ -1,4 +1,3 @@
-#include "pch.h"
#include <ctype.h>
#include "utils.h"
diff --git a/NorthstarDLL/util/version.cpp b/NorthstarDLL/util/version.cpp
index 8697b61f..1ad62438 100644
--- a/NorthstarDLL/util/version.cpp
+++ b/NorthstarDLL/util/version.cpp
@@ -1,5 +1,4 @@
#include "util/version.h"
-#include "pch.h"
#include "ns_version.h"
#include "dedicated/dedicated.h"
diff --git a/NorthstarDLL/util/version.h b/NorthstarDLL/util/version.h
index 261a4cf1..a3dcf8c7 100644
--- a/NorthstarDLL/util/version.h
+++ b/NorthstarDLL/util/version.h
@@ -1,6 +1,6 @@
#pragma once
extern char version[16];
-extern char NSUserAgent[32];
+extern char NSUserAgent[256];
void InitialiseVersion();
diff --git a/NorthstarDLL/util/wininfo.cpp b/NorthstarDLL/util/wininfo.cpp
index 991deb33..b0b77749 100644
--- a/NorthstarDLL/util/wininfo.cpp
+++ b/NorthstarDLL/util/wininfo.cpp
@@ -1,5 +1,3 @@
-#include "pch.h"
-
AUTOHOOK_INIT()
HWND* g_gameHWND;
diff --git a/NorthstarDLL/util/wininfo.h b/NorthstarDLL/util/wininfo.h
index ac417034..c56f7b87 100644
--- a/NorthstarDLL/util/wininfo.h
+++ b/NorthstarDLL/util/wininfo.h
@@ -1,6 +1,4 @@
#pragma once
-#pragma once
-#include "pch.h"
extern HWND* g_gameHWND;
extern HMODULE g_NorthstarModule;