aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts
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/scripts
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/scripts')
-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
15 files changed, 0 insertions, 16 deletions
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"