aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-21 20:59:57 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-21 20:59:57 +0100
commit93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d (patch)
treeee87733a5689f50a9066bf5e5979e8829547b476
parent3f515e00d19d969fa6697a60a32e9204a05a97ee (diff)
downloadNorthstarLauncher-93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d.tar.gz
NorthstarLauncher-93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d.zip
remove unnecessary header files
-rw-r--r--NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj22
-rw-r--r--NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj.filters69
-rw-r--r--NorthstarDedicatedTest/audio.cpp6
-rw-r--r--NorthstarDedicatedTest/buildainfile.cpp1
-rw-r--r--NorthstarDedicatedTest/buildainfile.h1
-rw-r--r--NorthstarDedicatedTest/chatcommand.cpp1
-rw-r--r--NorthstarDedicatedTest/chatcommand.h1
-rw-r--r--NorthstarDedicatedTest/clientauthhooks.cpp1
-rw-r--r--NorthstarDedicatedTest/clientauthhooks.h1
-rw-r--r--NorthstarDedicatedTest/clientchathooks.cpp1
-rw-r--r--NorthstarDedicatedTest/clientchathooks.h1
-rw-r--r--NorthstarDedicatedTest/clientruihooks.cpp1
-rw-r--r--NorthstarDedicatedTest/clientruihooks.h1
-rw-r--r--NorthstarDedicatedTest/clientvideooverrides.cpp1
-rw-r--r--NorthstarDedicatedTest/clientvideooverrides.h1
-rw-r--r--NorthstarDedicatedTest/debugoverlay.cpp1
-rw-r--r--NorthstarDedicatedTest/debugoverlay.h1
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp2
-rw-r--r--NorthstarDedicatedTest/dedicated.h2
-rw-r--r--NorthstarDedicatedTest/dedicatedmaterialsystem.cpp1
-rw-r--r--NorthstarDedicatedTest/dedicatedmaterialsystem.h1
-rw-r--r--NorthstarDedicatedTest/demofixes.cpp1
-rw-r--r--NorthstarDedicatedTest/demofixes.h1
-rw-r--r--NorthstarDedicatedTest/dllmain.cpp4
-rw-r--r--NorthstarDedicatedTest/hooks.cpp4
-rw-r--r--NorthstarDedicatedTest/host.cpp1
-rw-r--r--NorthstarDedicatedTest/host.h1
-rw-r--r--NorthstarDedicatedTest/keyvalues.cpp1
-rw-r--r--NorthstarDedicatedTest/keyvalues.h1
-rw-r--r--NorthstarDedicatedTest/languagehooks.cpp1
-rw-r--r--NorthstarDedicatedTest/languagehooks.h1
-rw-r--r--NorthstarDedicatedTest/latencyflex.cpp1
-rw-r--r--NorthstarDedicatedTest/latencyflex.h1
-rw-r--r--NorthstarDedicatedTest/logging.cpp2
-rw-r--r--NorthstarDedicatedTest/mapsprint.cpp4
-rw-r--r--NorthstarDedicatedTest/maxplayers.cpp1
-rw-r--r--NorthstarDedicatedTest/maxplayers.h1
-rw-r--r--NorthstarDedicatedTest/miscclientfixes.cpp1
-rw-r--r--NorthstarDedicatedTest/miscclientfixes.h1
-rw-r--r--NorthstarDedicatedTest/miscserverfixes.cpp1
-rw-r--r--NorthstarDedicatedTest/miscserverfixes.h1
-rw-r--r--NorthstarDedicatedTest/modlocalisation.cpp1
-rw-r--r--NorthstarDedicatedTest/modlocalisation.h1
-rw-r--r--NorthstarDedicatedTest/rpakfilesystem.cpp2
-rw-r--r--NorthstarDedicatedTest/scriptbrowserhooks.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptbrowserhooks.h1
-rw-r--r--NorthstarDedicatedTest/scriptmainmenupromos.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptmainmenupromos.h1
-rw-r--r--NorthstarDedicatedTest/scriptmodmenu.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptmodmenu.h1
-rw-r--r--NorthstarDedicatedTest/scriptserverbrowser.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptserverbrowser.h1
-rw-r--r--NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptservertoclientstringcommand.h1
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp2
55 files changed, 12 insertions, 151 deletions
diff --git a/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj b/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj
index d20cb69e..0c012880 100644
--- a/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj
+++ b/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj
@@ -117,15 +117,7 @@
<ClInclude Include="bansystem.h" />
<ClInclude Include="bitbuf.h" />
<ClInclude Include="bits.h" />
- <ClInclude Include="buildainfile.h" />
- <ClInclude Include="chatcommand.h" />
- <ClInclude Include="clientchathooks.h" />
<ClInclude Include="commandprint.h" />
- <ClInclude Include="debugoverlay.h" />
- <ClInclude Include="clientruihooks.h" />
- <ClInclude Include="clientvideooverrides.h" />
- <ClInclude Include="demofixes.h" />
- <ClInclude Include="host.h" />
<ClInclude Include="hoststate.h" />
<ClInclude Include="localchatwriter.h" />
<ClInclude Include="mapsprint.h" />
@@ -136,14 +128,12 @@
<ClInclude Include="r2engine.h" />
<ClInclude Include="r2server.h" />
<ClInclude Include="serverchathooks.h" />
- <ClInclude Include="clientauthhooks.h" />
<ClInclude Include="color.h" />
<ClInclude Include="concommand.h" />
<ClInclude Include="configurables.h" />
<ClInclude Include="convar.h" />
<ClInclude Include="cvar.h" />
<ClInclude Include="dedicated.h" />
- <ClInclude Include="dedicatedmaterialsystem.h" />
<ClInclude Include="filesystem.h" />
<ClInclude Include="hooks.h" />
<ClInclude Include="hookutils.h" />
@@ -544,31 +534,19 @@
<ClInclude Include="include\spdlog\stopwatch.h" />
<ClInclude Include="include\spdlog\tweakme.h" />
<ClInclude Include="include\spdlog\version.h" />
- <ClInclude Include="keyvalues.h" />
- <ClInclude Include="languagehooks.h" />
- <ClInclude Include="latencyflex.h" />
<ClInclude Include="logging.h" />
<ClInclude Include="main.h" />
<ClInclude Include="masterserver.h" />
- <ClInclude Include="maxplayers.h" />
<ClInclude Include="memalloc.h" />
- <ClInclude Include="miscclientfixes.h" />
<ClInclude Include="misccommands.h" />
- <ClInclude Include="miscserverfixes.h" />
- <ClInclude Include="modlocalisation.h" />
<ClInclude Include="modmanager.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="pdef.h" />
<ClInclude Include="playlist.h" />
<ClInclude Include="miscserverscript.h" />
<ClInclude Include="rpakfilesystem.h" />
- <ClInclude Include="scriptbrowserhooks.h" />
- <ClInclude Include="scriptmainmenupromos.h" />
- <ClInclude Include="scriptmodmenu.h" />
- <ClInclude Include="scriptserverbrowser.h" />
<ClInclude Include="scriptsrson.h" />
<ClInclude Include="serverauthentication.h" />
- <ClInclude Include="scriptservertoclientstringcommand.h" />
<ClInclude Include="sigscanning.h" />
<ClInclude Include="sourceconsole.h" />
<ClInclude Include="sourceinterface.h" />
diff --git a/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj.filters b/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj.filters
index d3796ff5..c31b5045 100644
--- a/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj.filters
+++ b/NorthstarDedicatedTest/NorthstarDedicatedTest.vcxproj.filters
@@ -130,9 +130,6 @@
<Filter Include="Source Files\Shared\Mods\Compiled Assets">
<UniqueIdentifier>{14fc0931-acad-46ec-a55e-94f4469d4235}</UniqueIdentifier>
</Filter>
- <Filter Include="Header Files\Client\Scripted">
- <UniqueIdentifier>{9ce4bfce-f214-4bc1-9dc7-f3219900718a}</UniqueIdentifier>
- </Filter>
<Filter Include="Source Files\Client\Scripted">
<UniqueIdentifier>{51910ba0-2ff8-461d-9f67-8d7907b57d22}</UniqueIdentifier>
</Filter>
@@ -576,36 +573,21 @@
<ClInclude Include="serverauthentication.h">
<Filter>Header Files\Server\Authentication</Filter>
</ClInclude>
- <ClInclude Include="keyvalues.h">
- <Filter>Header Files\Shared\Mods\Compiled</Filter>
- </ClInclude>
<ClInclude Include="include\httplib.h">
<Filter>Header Files\include</Filter>
</ClInclude>
<ClInclude Include="masterserver.h">
<Filter>Header Files\Shared</Filter>
</ClInclude>
- <ClInclude Include="chatcommand.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
- <ClInclude Include="modlocalisation.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="misccommands.h">
<Filter>Header Files\Shared\Convar</Filter>
</ClInclude>
<ClInclude Include="pdef.h">
<Filter>Header Files\Shared\Mods\Compiled</Filter>
</ClInclude>
- <ClInclude Include="clientauthhooks.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="memalloc.h">
<Filter>Header Files\Shared</Filter>
</ClInclude>
- <ClInclude Include="miscclientfixes.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="include\openssl\__DECC_INCLUDE_EPILOGUE.H">
<Filter>Header Files\include\openssl\openssl</Filter>
</ClInclude>
@@ -1386,12 +1368,6 @@
<ClInclude Include="include\internal\unicode.h">
<Filter>Header Files\include\openssl\internal</Filter>
</ClInclude>
- <ClInclude Include="miscserverfixes.h">
- <Filter>Header Files\Server</Filter>
- </ClInclude>
- <ClInclude Include="maxplayers.h">
- <Filter>Header Files\Shared</Filter>
- </ClInclude>
<ClInclude Include="include\libcurl\include\curl\curl.h">
<Filter>Header Files\include\libcurl</Filter>
</ClInclude>
@@ -1428,18 +1404,9 @@
<ClInclude Include="bansystem.h">
<Filter>Header Files\Server\Authentication</Filter>
</ClInclude>
- <ClInclude Include="languagehooks.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
- <ClInclude Include="latencyflex.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="audio.h">
<Filter>Header Files\Client</Filter>
</ClInclude>
- <ClInclude Include="buildainfile.h">
- <Filter>Header Files\Server</Filter>
- </ClInclude>
<ClInclude Include="bitbuf.h">
<Filter>Header Files\Shared</Filter>
</ClInclude>
@@ -1467,12 +1434,6 @@
<ClInclude Include="plugin_abi.h">
<Filter>Header Files</Filter>
</ClInclude>
- <ClInclude Include="debugoverlay.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
- <ClInclude Include="clientvideooverrides.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="ExploitFixes.h">
<Filter>Source Files\Shared\Exploit Fixes</Filter>
</ClInclude>
@@ -1485,9 +1446,6 @@
<ClInclude Include="version.h">
<Filter>Header Files</Filter>
</ClInclude>
- <ClInclude Include="clientruihooks.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="ns_version.h">
<Filter>Header Files</Filter>
</ClInclude>
@@ -1497,27 +1455,6 @@
<ClInclude Include="tier0.h">
<Filter>Header Files\Shared\Game Functions</Filter>
</ClInclude>
- <ClInclude Include="clientchathooks.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="scriptbrowserhooks.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="scriptmainmenupromos.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="scriptmodmenu.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="scriptserverbrowser.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="scriptservertoclientstringcommand.h">
- <Filter>Header Files\Client\Scripted</Filter>
- </ClInclude>
- <ClInclude Include="host.h">
- <Filter>Header Files\Shared</Filter>
- </ClInclude>
<ClInclude Include="hoststate.h">
<Filter>Header Files\Shared</Filter>
</ClInclude>
@@ -1530,18 +1467,12 @@
<ClInclude Include="dedicated.h">
<Filter>Header Files\Server\Dedicated</Filter>
</ClInclude>
- <ClInclude Include="dedicatedmaterialsystem.h">
- <Filter>Header Files\Server\Dedicated</Filter>
- </ClInclude>
<ClInclude Include="commandprint.h">
<Filter>Header Files\Shared\Console</Filter>
</ClInclude>
<ClInclude Include="mapsprint.h">
<Filter>Header Files\Shared\Console</Filter>
</ClInclude>
- <ClInclude Include="demofixes.h">
- <Filter>Header Files\Client</Filter>
- </ClInclude>
<ClInclude Include="r2engine.h">
<Filter>Header Files\Shared\Game Functions</Filter>
</ClInclude>
diff --git a/NorthstarDedicatedTest/audio.cpp b/NorthstarDedicatedTest/audio.cpp
index f9db1ee6..eb493779 100644
--- a/NorthstarDedicatedTest/audio.cpp
+++ b/NorthstarDedicatedTest/audio.cpp
@@ -264,7 +264,7 @@ EventOverrideData::EventOverrideData(const std::string& data, const fs::path& pa
bool CustomAudioManager::TryLoadAudioOverride(const fs::path& defPath)
{
- if (IsDedicated())
+ if (IsDedicatedServer())
return true; // silently fail
std::ifstream jsonStream(defPath);
@@ -307,7 +307,7 @@ MilesStopAll_Type MilesStopAll;
void CustomAudioManager::ClearAudioOverrides()
{
- if (IsDedicated())
+ if (IsDedicatedServer())
return;
if (m_loadedAudioOverrides.size() > 0 || m_loadedAudioOverridesRegex.size() > 0)
@@ -496,7 +496,7 @@ ON_DLL_LOAD_CLIENT_RELIESON("client.dll", AudioHooks, ConVar, [](HMODULE baseAdd
{
Cvar_ns_print_played_sounds = new ConVar("ns_print_played_sounds", "0", FCVAR_NONE, "");
- if (IsDedicated())
+ if (IsDedicatedServer())
return;
uintptr_t milesAudioBase = (uintptr_t)GetModuleHandleA("mileswin64.dll");
diff --git a/NorthstarDedicatedTest/buildainfile.cpp b/NorthstarDedicatedTest/buildainfile.cpp
index 30df6f91..39ce0323 100644
--- a/NorthstarDedicatedTest/buildainfile.cpp
+++ b/NorthstarDedicatedTest/buildainfile.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "buildainfile.h"
#include "convar.h"
#include "hooks.h"
#include "hookutils.h"
diff --git a/NorthstarDedicatedTest/buildainfile.h b/NorthstarDedicatedTest/buildainfile.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/buildainfile.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/chatcommand.cpp b/NorthstarDedicatedTest/chatcommand.cpp
index ba096d69..78f4477d 100644
--- a/NorthstarDedicatedTest/chatcommand.cpp
+++ b/NorthstarDedicatedTest/chatcommand.cpp
@@ -2,7 +2,6 @@
#include "hooks.h"
#include "convar.h"
#include "concommand.h"
-#include "chatcommand.h"
#include "localchatwriter.h"
// note: isIngameChat is an int64 because the whole register the arg is stored in needs to be 0'd out to work
diff --git a/NorthstarDedicatedTest/chatcommand.h b/NorthstarDedicatedTest/chatcommand.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/chatcommand.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/clientauthhooks.cpp b/NorthstarDedicatedTest/clientauthhooks.cpp
index b2dc8ce5..6e1da395 100644
--- a/NorthstarDedicatedTest/clientauthhooks.cpp
+++ b/NorthstarDedicatedTest/clientauthhooks.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "clientauthhooks.h"
#include "hookutils.h"
#include "masterserver.h"
#include "convar.h"
diff --git a/NorthstarDedicatedTest/clientauthhooks.h b/NorthstarDedicatedTest/clientauthhooks.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/clientauthhooks.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/clientchathooks.cpp b/NorthstarDedicatedTest/clientchathooks.cpp
index 80d8a295..a5daa2be 100644
--- a/NorthstarDedicatedTest/clientchathooks.cpp
+++ b/NorthstarDedicatedTest/clientchathooks.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "clientchathooks.h"
#include <rapidjson/document.h>
#include "squirrel.h"
#include "serverchathooks.h"
diff --git a/NorthstarDedicatedTest/clientchathooks.h b/NorthstarDedicatedTest/clientchathooks.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/clientchathooks.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/clientruihooks.cpp b/NorthstarDedicatedTest/clientruihooks.cpp
index 0f48ced7..65c85511 100644
--- a/NorthstarDedicatedTest/clientruihooks.cpp
+++ b/NorthstarDedicatedTest/clientruihooks.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "clientruihooks.h"
#include "convar.h"
ConVar* Cvar_rui_drawEnable;
diff --git a/NorthstarDedicatedTest/clientruihooks.h b/NorthstarDedicatedTest/clientruihooks.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/clientruihooks.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/clientvideooverrides.cpp b/NorthstarDedicatedTest/clientvideooverrides.cpp
index 498d48ed..8bed49e9 100644
--- a/NorthstarDedicatedTest/clientvideooverrides.cpp
+++ b/NorthstarDedicatedTest/clientvideooverrides.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "clientvideooverrides.h"
#include "modmanager.h"
typedef void* (*BinkOpenType)(const char* path, uint32_t flags);
diff --git a/NorthstarDedicatedTest/clientvideooverrides.h b/NorthstarDedicatedTest/clientvideooverrides.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/clientvideooverrides.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/debugoverlay.cpp b/NorthstarDedicatedTest/debugoverlay.cpp
index 051f34e6..64e0d065 100644
--- a/NorthstarDedicatedTest/debugoverlay.cpp
+++ b/NorthstarDedicatedTest/debugoverlay.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "debugoverlay.h"
#include "dedicated.h"
#include "cvar.h"
diff --git a/NorthstarDedicatedTest/debugoverlay.h b/NorthstarDedicatedTest/debugoverlay.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/debugoverlay.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index 6f7a4a73..5d8fedf0 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -13,7 +13,7 @@
using namespace Tier0;
using namespace R2;
-bool IsDedicated()
+bool IsDedicatedServer()
{
static bool result = strstr(GetCommandLineA(), "-dedicated");
return result;
diff --git a/NorthstarDedicatedTest/dedicated.h b/NorthstarDedicatedTest/dedicated.h
index bbca3c83..82806763 100644
--- a/NorthstarDedicatedTest/dedicated.h
+++ b/NorthstarDedicatedTest/dedicated.h
@@ -1,3 +1,3 @@
#pragma once
-bool IsDedicated();
+bool IsDedicatedServer();
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
index 2e5c1321..7142e44d 100644
--- a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
+++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
@@ -2,7 +2,6 @@
#include "pch.h"
#include "hooks.h"
#include "dedicated.h"
-#include "dedicatedmaterialsystem.h"
#include "hookutils.h"
#include "tier0.h"
#include "NSMem.h"
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.h b/NorthstarDedicatedTest/dedicatedmaterialsystem.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/dedicatedmaterialsystem.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/demofixes.cpp b/NorthstarDedicatedTest/demofixes.cpp
index 0cfb35f4..c2eb9b09 100644
--- a/NorthstarDedicatedTest/demofixes.cpp
+++ b/NorthstarDedicatedTest/demofixes.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "demofixes.h"
#include "convar.h"
#include "NSMem.h"
diff --git a/NorthstarDedicatedTest/demofixes.h b/NorthstarDedicatedTest/demofixes.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/demofixes.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp
index 4c81c49d..f097aa20 100644
--- a/NorthstarDedicatedTest/dllmain.cpp
+++ b/NorthstarDedicatedTest/dllmain.cpp
@@ -2,11 +2,7 @@
#include "hooks.h"
#include "main.h"
#include "logging.h"
-#include "keyvalues.h"
-#include "masterserver.h"
-#include "tier0.h"
#include "memalloc.h"
-#include "maxplayers.h"
#include "configurables.h"
#include "plugin_abi.h"
#include "plugins.h"
diff --git a/NorthstarDedicatedTest/hooks.cpp b/NorthstarDedicatedTest/hooks.cpp
index 82485e0e..32e4530c 100644
--- a/NorthstarDedicatedTest/hooks.cpp
+++ b/NorthstarDedicatedTest/hooks.cpp
@@ -139,7 +139,7 @@ void AddDllLoadCallback(std::string dll, DllLoadCallbackFuncType callback, std::
void AddDllLoadCallbackForDedicatedServer(
std::string dll, DllLoadCallbackFuncType callback, std::string tag, std::string reliesOn)
{
- if (!IsDedicated())
+ if (!IsDedicatedServer())
return;
AddDllLoadCallback(dll, callback, tag, reliesOn);
@@ -147,7 +147,7 @@ void AddDllLoadCallbackForDedicatedServer(
void AddDllLoadCallbackForClient(std::string dll, DllLoadCallbackFuncType callback, std::string tag, std::string reliesOn)
{
- if (IsDedicated())
+ if (IsDedicatedServer())
return;
AddDllLoadCallback(dll, callback, tag, reliesOn);
diff --git a/NorthstarDedicatedTest/host.cpp b/NorthstarDedicatedTest/host.cpp
index a67e0ede..d3a78877 100644
--- a/NorthstarDedicatedTest/host.cpp
+++ b/NorthstarDedicatedTest/host.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "host.h"
#include "convar.h"
#include "modmanager.h"
#include "commandprint.h"
diff --git a/NorthstarDedicatedTest/host.h b/NorthstarDedicatedTest/host.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/host.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/keyvalues.cpp b/NorthstarDedicatedTest/keyvalues.cpp
index 11fc1486..86cda483 100644
--- a/NorthstarDedicatedTest/keyvalues.cpp
+++ b/NorthstarDedicatedTest/keyvalues.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "keyvalues.h"
#include "modmanager.h"
#include "hooks.h"
#include "filesystem.h"
diff --git a/NorthstarDedicatedTest/keyvalues.h b/NorthstarDedicatedTest/keyvalues.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/keyvalues.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/languagehooks.cpp b/NorthstarDedicatedTest/languagehooks.cpp
index e5063359..42ac9b6a 100644
--- a/NorthstarDedicatedTest/languagehooks.cpp
+++ b/NorthstarDedicatedTest/languagehooks.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "languagehooks.h"
#include "tier0.h"
#include <filesystem>
#include <regex>
diff --git a/NorthstarDedicatedTest/languagehooks.h b/NorthstarDedicatedTest/languagehooks.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/languagehooks.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/latencyflex.cpp b/NorthstarDedicatedTest/latencyflex.cpp
index 72fe297b..c5868aa7 100644
--- a/NorthstarDedicatedTest/latencyflex.cpp
+++ b/NorthstarDedicatedTest/latencyflex.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "latencyflex.h"
#include "hookutils.h"
#include "convar.h"
diff --git a/NorthstarDedicatedTest/latencyflex.h b/NorthstarDedicatedTest/latencyflex.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/latencyflex.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp
index c02e333a..014ef642 100644
--- a/NorthstarDedicatedTest/logging.cpp
+++ b/NorthstarDedicatedTest/logging.cpp
@@ -205,7 +205,7 @@ long __stdcall ExceptionFilter(EXCEPTION_POINTERS* exceptionInfo)
else
spdlog::error("Failed to write minidump file {}!", stream.str());
- if (!IsDedicated())
+ if (!IsDedicatedServer())
MessageBoxA(
0, "Northstar has crashed! Crash info can be found in R2Northstar/logs", "Northstar has crashed!", MB_ICONERROR | MB_OK);
}
diff --git a/NorthstarDedicatedTest/mapsprint.cpp b/NorthstarDedicatedTest/mapsprint.cpp
index ca66487e..bf94c548 100644
--- a/NorthstarDedicatedTest/mapsprint.cpp
+++ b/NorthstarDedicatedTest/mapsprint.cpp
@@ -106,10 +106,10 @@ void RefreshMapList()
}
}
-typedef int (*_Host_Map_f_CompletionFuncType)(
+typedef int (*__fastcall _Host_Map_f_CompletionFuncType)(
char const* cmdname, char const* partial, char commands[COMMAND_COMPLETION_MAXITEMS][COMMAND_COMPLETION_ITEM_LENGTH]);
_Host_Map_f_CompletionFuncType _Host_Map_f_CompletionFunc;
-int _Host_Map_f_CompletionFuncHook(
+int __fastcall _Host_Map_f_CompletionFuncHook(
char const* cmdname, char const* partial, char commands[COMMAND_COMPLETION_MAXITEMS][COMMAND_COMPLETION_ITEM_LENGTH])
{
// don't update our map list often from this func, only refresh every 10 seconds so we avoid constantly reading fs
diff --git a/NorthstarDedicatedTest/maxplayers.cpp b/NorthstarDedicatedTest/maxplayers.cpp
index 9e82c014..5fa684d1 100644
--- a/NorthstarDedicatedTest/maxplayers.cpp
+++ b/NorthstarDedicatedTest/maxplayers.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "maxplayers.h"
#include "tier0.h"
// never set this to anything below 32
diff --git a/NorthstarDedicatedTest/maxplayers.h b/NorthstarDedicatedTest/maxplayers.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/maxplayers.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/miscclientfixes.cpp b/NorthstarDedicatedTest/miscclientfixes.cpp
index bb59b539..dce6b6c8 100644
--- a/NorthstarDedicatedTest/miscclientfixes.cpp
+++ b/NorthstarDedicatedTest/miscclientfixes.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "miscclientfixes.h"
#include "convar.h"
#include "hookutils.h"
#include "NSMem.h"
diff --git a/NorthstarDedicatedTest/miscclientfixes.h b/NorthstarDedicatedTest/miscclientfixes.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/miscclientfixes.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/miscserverfixes.cpp b/NorthstarDedicatedTest/miscserverfixes.cpp
index 2e646e84..455a3686 100644
--- a/NorthstarDedicatedTest/miscserverfixes.cpp
+++ b/NorthstarDedicatedTest/miscserverfixes.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "miscserverfixes.h"
#include "hookutils.h"
#include "NSMem.h"
diff --git a/NorthstarDedicatedTest/miscserverfixes.h b/NorthstarDedicatedTest/miscserverfixes.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/miscserverfixes.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/modlocalisation.cpp b/NorthstarDedicatedTest/modlocalisation.cpp
index 7774c4b6..3fd96000 100644
--- a/NorthstarDedicatedTest/modlocalisation.cpp
+++ b/NorthstarDedicatedTest/modlocalisation.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "modlocalisation.h"
#include "hookutils.h"
#include "modmanager.h"
diff --git a/NorthstarDedicatedTest/modlocalisation.h b/NorthstarDedicatedTest/modlocalisation.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/modlocalisation.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/rpakfilesystem.cpp b/NorthstarDedicatedTest/rpakfilesystem.cpp
index 45367766..4da59836 100644
--- a/NorthstarDedicatedTest/rpakfilesystem.cpp
+++ b/NorthstarDedicatedTest/rpakfilesystem.cpp
@@ -141,7 +141,7 @@ int LoadPakAsyncHook(char* path, void* unknownSingleton, int flags, void* callba
// do this after custom paks load and in bShouldLoadPaks so we only ever call this on the root pakload call
// todo: could probably add some way to flag custom paks to not be loaded on dedicated servers in rpak.json
- if (IsDedicated() && strncmp(&originalPath[0], "common", 6)) // dedicated only needs common and common_mp
+ if (IsDedicatedServer() && strncmp(&originalPath[0], "common", 6)) // dedicated only needs common and common_mp
{
spdlog::info("Not loading pak {} for dedicated server", originalPath);
return -1;
diff --git a/NorthstarDedicatedTest/scriptbrowserhooks.cpp b/NorthstarDedicatedTest/scriptbrowserhooks.cpp
index 138f821f..bb917899 100644
--- a/NorthstarDedicatedTest/scriptbrowserhooks.cpp
+++ b/NorthstarDedicatedTest/scriptbrowserhooks.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "scriptbrowserhooks.h"
#include "hookutils.h"
bool* bIsOriginOverlayEnabled;
diff --git a/NorthstarDedicatedTest/scriptbrowserhooks.h b/NorthstarDedicatedTest/scriptbrowserhooks.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/scriptbrowserhooks.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/scriptmainmenupromos.cpp b/NorthstarDedicatedTest/scriptmainmenupromos.cpp
index 71afc832..013aa8b3 100644
--- a/NorthstarDedicatedTest/scriptmainmenupromos.cpp
+++ b/NorthstarDedicatedTest/scriptmainmenupromos.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "scriptmainmenupromos.h"
#include "squirrel.h"
#include "masterserver.h"
diff --git a/NorthstarDedicatedTest/scriptmainmenupromos.h b/NorthstarDedicatedTest/scriptmainmenupromos.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/scriptmainmenupromos.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/scriptmodmenu.cpp b/NorthstarDedicatedTest/scriptmodmenu.cpp
index 9d55e2be..96789068 100644
--- a/NorthstarDedicatedTest/scriptmodmenu.cpp
+++ b/NorthstarDedicatedTest/scriptmodmenu.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "scriptmodmenu.h"
#include "modmanager.h"
#include "squirrel.h"
diff --git a/NorthstarDedicatedTest/scriptmodmenu.h b/NorthstarDedicatedTest/scriptmodmenu.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/scriptmodmenu.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/scriptserverbrowser.cpp b/NorthstarDedicatedTest/scriptserverbrowser.cpp
index 307af330..5956d0bb 100644
--- a/NorthstarDedicatedTest/scriptserverbrowser.cpp
+++ b/NorthstarDedicatedTest/scriptserverbrowser.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "scriptserverbrowser.h"
#include "squirrel.h"
#include "masterserver.h"
#include "serverauthentication.h"
diff --git a/NorthstarDedicatedTest/scriptserverbrowser.h b/NorthstarDedicatedTest/scriptserverbrowser.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/scriptserverbrowser.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp b/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
index c2c87da1..26660c27 100644
--- a/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
+++ b/NorthstarDedicatedTest/scriptservertoclientstringcommand.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "hooks.h"
-#include "scriptservertoclientstringcommand.h"
#include "squirrel.h"
#include "convar.h"
#include "concommand.h"
diff --git a/NorthstarDedicatedTest/scriptservertoclientstringcommand.h b/NorthstarDedicatedTest/scriptservertoclientstringcommand.h
deleted file mode 100644
index 6f70f09b..00000000
--- a/NorthstarDedicatedTest/scriptservertoclientstringcommand.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp
index 8190050d..a8de1a63 100644
--- a/NorthstarDedicatedTest/serverauthentication.cpp
+++ b/NorthstarDedicatedTest/serverauthentication.cpp
@@ -463,7 +463,7 @@ char CGameClient__ExecuteStringCommandHook(void* self, uint32_t unknown, const c
if (command && !command->IsFlagSet(FCVAR_CLIENTCMD_CAN_EXECUTE))
{
// ensure FCVAR_GAMEDLL concommands without FCVAR_CLIENTCMD_CAN_EXECUTE can't be executed by remote clients
- if (IsDedicated())
+ if (IsDedicatedServer())
return false;
if (strcmp((char*)self + 0xF500, R2::g_LocalPlayerUserID))