diff options
author | p0358 <p0358@users.noreply.github.com> | 2023-02-14 15:04:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 14:04:42 +0000 |
commit | 9b1e2a0f4895f48b6a8169bf1b571294b2ad4c54 (patch) | |
tree | dcddfc464a83211a6922a3b2a43ded293b4303b9 /NorthstarDLL/util | |
parent | 95b41b6f8cc612953eafd7f8b6b40124e1590bc7 (diff) | |
download | NorthstarLauncher-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/util')
-rw-r--r-- | NorthstarDLL/util/printcommands.cpp | 1 | ||||
-rw-r--r-- | NorthstarDLL/util/printmaps.cpp | 1 | ||||
-rw-r--r-- | NorthstarDLL/util/utils.cpp | 1 | ||||
-rw-r--r-- | NorthstarDLL/util/version.cpp | 1 | ||||
-rw-r--r-- | NorthstarDLL/util/version.h | 2 | ||||
-rw-r--r-- | NorthstarDLL/util/wininfo.cpp | 2 | ||||
-rw-r--r-- | NorthstarDLL/util/wininfo.h | 2 |
7 files changed, 1 insertions, 9 deletions
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; |