diff --git a/codxe.vcxproj b/codxe.vcxproj
index 8c643c4..8bf6e03 100644
--- a/codxe.vcxproj
+++ b/codxe.vcxproj
@@ -40,6 +40,9 @@
$(IntDir)$(ProjectName)\%(RelativeDir)
MultiThreaded
$(ProjectDir)src
+ Use
+ pch.h
+ $(IntDir)$(ProjectName)\pch.pch
/wd4481 %(AdditionalOptions)
@@ -58,7 +61,6 @@
$(OutDir)$(ProjectName).pdb
true
true
- d3d9ltcg.lib;xgraphics.lib;xjson.lib
/DLL /ENTRY:"_DllMainCRTStartup" /ALIGN:128,4096 %(AdditionalOptions)
@@ -71,6 +73,11 @@
+
+
+ Create
+
+
@@ -160,6 +167,9 @@
+
+
+
@@ -254,4 +264,4 @@
-
+
\ No newline at end of file
diff --git a/src/common/config.cpp b/src/common/config.cpp
index 51c46cd..2531c39 100644
--- a/src/common/config.cpp
+++ b/src/common/config.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "config.h"
#ifndef INVALID_FILE_ATTRIBUTES
diff --git a/src/common/config.h b/src/common/config.h
index bb012aa..688c8f3 100644
--- a/src/common/config.h
+++ b/src/common/config.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
extern const char *CONFIG_PATH;
extern const char *MOD_DIR;
diff --git a/src/detour.cpp b/src/detour.cpp
index 90bfdb1..cc86a3d 100644
--- a/src/detour.cpp
+++ b/src/detour.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "detour.h"
#pragma section(".text")
diff --git a/src/dllmain.cpp b/src/dllmain.cpp
index 076dee4..deff184 100644
--- a/src/dllmain.cpp
+++ b/src/dllmain.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
#include "plugin_manager.h"
PluginManager *g_plugin_manager = nullptr;
diff --git a/src/filesystem.cpp b/src/filesystem.cpp
index 441e109..7bdfd6e 100644
--- a/src/filesystem.cpp
+++ b/src/filesystem.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD) - 1)
diff --git a/src/filesystem.h b/src/filesystem.h
index fda1443..9705f1d 100644
--- a/src/filesystem.h
+++ b/src/filesystem.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace filesystem
{
diff --git a/src/game/iw2/mp/components/scr_parser.cpp b/src/game/iw2/mp/components/scr_parser.cpp
index d2475a7..1ce0825 100644
--- a/src/game/iw2/mp/components/scr_parser.cpp
+++ b/src/game/iw2/mp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw2
{
diff --git a/src/game/iw2/mp/components/scr_parser.h b/src/game/iw2/mp/components/scr_parser.h
index 4e40c88..5535fe4 100644
--- a/src/game/iw2/mp/components/scr_parser.h
+++ b/src/game/iw2/mp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw2
{
diff --git a/src/game/iw2/mp/main.cpp b/src/game/iw2/mp/main.cpp
index c05e4e0..b8dbdb7 100644
--- a/src/game/iw2/mp/main.cpp
+++ b/src/game/iw2/mp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace iw2
{
diff --git a/src/game/iw2/sp/components/scr_parser.cpp b/src/game/iw2/sp/components/scr_parser.cpp
index f53342d..c0b707c 100644
--- a/src/game/iw2/sp/components/scr_parser.cpp
+++ b/src/game/iw2/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw2
{
diff --git a/src/game/iw2/sp/components/scr_parser.h b/src/game/iw2/sp/components/scr_parser.h
index 281d61c..ae25ff9 100644
--- a/src/game/iw2/sp/components/scr_parser.h
+++ b/src/game/iw2/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw2
{
diff --git a/src/game/iw2/sp/main.cpp b/src/game/iw2/sp/main.cpp
index 28bc2f0..d23cb9a 100644
--- a/src/game/iw2/sp/main.cpp
+++ b/src/game/iw2/sp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace iw2
{
diff --git a/src/game/iw3/mp/components/cg.cpp b/src/game/iw3/mp/components/cg.cpp
index 1429028..41cd697 100644
--- a/src/game/iw3/mp/components/cg.cpp
+++ b/src/game/iw3/mp/components/cg.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "cg.h"
#include "cj_tas.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/cg.h b/src/game/iw3/mp/components/cg.h
index fde32c6..e55d794 100644
--- a/src/game/iw3/mp/components/cg.h
+++ b/src/game/iw3/mp/components/cg.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/cj_tas.cpp b/src/game/iw3/mp/components/cj_tas.cpp
index 4ba956f..f002125 100644
--- a/src/game/iw3/mp/components/cj_tas.cpp
+++ b/src/game/iw3/mp/components/cj_tas.cpp
@@ -1,6 +1,5 @@
+#include "pch.h"
#include "cj_tas.h"
-#include "common.h"
-#include
#define ANGLE2SHORT(x) ((int)((x) * 65536 / 360) & 65535)
#define SHORT2ANGLE(x) ((x) * (360.0 / 65536))
diff --git a/src/game/iw3/mp/components/cj_tas.h b/src/game/iw3/mp/components/cj_tas.h
index 36d4950..6f3634c 100644
--- a/src/game/iw3/mp/components/cj_tas.h
+++ b/src/game/iw3/mp/components/cj_tas.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/clipmap.cpp b/src/game/iw3/mp/components/clipmap.cpp
index c9af615..041f226 100644
--- a/src/game/iw3/mp/components/clipmap.cpp
+++ b/src/game/iw3/mp/components/clipmap.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "clipmap.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/clipmap.h b/src/game/iw3/mp/components/clipmap.h
index 7e48793..25dcf32 100644
--- a/src/game/iw3/mp/components/clipmap.h
+++ b/src/game/iw3/mp/components/clipmap.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/cmds.cpp b/src/game/iw3/mp/components/cmds.cpp
index 88dd6ab..e1e5ad1 100644
--- a/src/game/iw3/mp/components/cmds.cpp
+++ b/src/game/iw3/mp/components/cmds.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "cmds.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/cmds.h b/src/game/iw3/mp/components/cmds.h
index bba389a..f9cbaa5 100644
--- a/src/game/iw3/mp/components/cmds.h
+++ b/src/game/iw3/mp/components/cmds.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/g_client_fields.cpp b/src/game/iw3/mp/components/g_client_fields.cpp
index cda1a37..4da3ac2 100644
--- a/src/game/iw3/mp/components/g_client_fields.cpp
+++ b/src/game/iw3/mp/components/g_client_fields.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_client_fields.h"
-#include "common.h"
const unsigned int CLIENT_FIELD_MASK = 0xC000;
diff --git a/src/game/iw3/mp/components/g_client_fields.h b/src/game/iw3/mp/components/g_client_fields.h
index 97e1870..974dff1 100644
--- a/src/game/iw3/mp/components/g_client_fields.h
+++ b/src/game/iw3/mp/components/g_client_fields.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/g_scr_main.cpp b/src/game/iw3/mp/components/g_scr_main.cpp
index fd83864..84bb5c7 100644
--- a/src/game/iw3/mp/components/g_scr_main.cpp
+++ b/src/game/iw3/mp/components/g_scr_main.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_scr_main.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/g_scr_main.h b/src/game/iw3/mp/components/g_scr_main.h
index c1c363a..5042121 100644
--- a/src/game/iw3/mp/components/g_scr_main.h
+++ b/src/game/iw3/mp/components/g_scr_main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/pm.cpp b/src/game/iw3/mp/components/pm.cpp
index 3391726..5706e51 100644
--- a/src/game/iw3/mp/components/pm.cpp
+++ b/src/game/iw3/mp/components/pm.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "pm.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/pm.h b/src/game/iw3/mp/components/pm.h
index e5af27b..e5f997f 100644
--- a/src/game/iw3/mp/components/pm.h
+++ b/src/game/iw3/mp/components/pm.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/scr_parser.cpp b/src/game/iw3/mp/components/scr_parser.cpp
index c33ad37..4d56e6c 100644
--- a/src/game/iw3/mp/components/scr_parser.cpp
+++ b/src/game/iw3/mp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/scr_parser.h b/src/game/iw3/mp/components/scr_parser.h
index e50d97f..460c157 100644
--- a/src/game/iw3/mp/components/scr_parser.h
+++ b/src/game/iw3/mp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/components/scr_vm_functions.cpp b/src/game/iw3/mp/components/scr_vm_functions.cpp
index 4b41a84..8f04a42 100644
--- a/src/game/iw3/mp/components/scr_vm_functions.cpp
+++ b/src/game/iw3/mp/components/scr_vm_functions.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_vm_functions.h"
-#include "common.h"
#include "g_scr_main.h"
namespace iw3
diff --git a/src/game/iw3/mp/components/scr_vm_functions.h b/src/game/iw3/mp/components/scr_vm_functions.h
index 8be8b43..1b8931c 100644
--- a/src/game/iw3/mp/components/scr_vm_functions.h
+++ b/src/game/iw3/mp/components/scr_vm_functions.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/main.cpp b/src/game/iw3/mp/main.cpp
index 96fd4cf..00fc794 100644
--- a/src/game/iw3/mp/main.cpp
+++ b/src/game/iw3/mp/main.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "main.h"
#include "components/cg.h"
#include "components/cj_tas.h"
diff --git a/src/game/iw3/mp/main.h b/src/game/iw3/mp/main.h
index 8bae3b3..af389c4 100644
--- a/src/game/iw3/mp/main.h
+++ b/src/game/iw3/mp/main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/mp/structs.h b/src/game/iw3/mp/structs.h
index b1deed8..f3d1fe8 100644
--- a/src/game/iw3/mp/structs.h
+++ b/src/game/iw3/mp/structs.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
#pragma warning(disable : 4480)
diff --git a/src/game/iw3/sp/components/scr_parser.cpp b/src/game/iw3/sp/components/scr_parser.cpp
index 6920b2b..ef656e3 100644
--- a/src/game/iw3/sp/components/scr_parser.cpp
+++ b/src/game/iw3/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw3
{
diff --git a/src/game/iw3/sp/components/scr_parser.h b/src/game/iw3/sp/components/scr_parser.h
index 5ee15a4..aed35b2 100644
--- a/src/game/iw3/sp/components/scr_parser.h
+++ b/src/game/iw3/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw3
{
diff --git a/src/game/iw3/sp/main.cpp b/src/game/iw3/sp/main.cpp
index 7d08025..f4e60c9 100644
--- a/src/game/iw3/sp/main.cpp
+++ b/src/game/iw3/sp/main.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
#include "components/scr_parser.h"
namespace
diff --git a/src/game/iw4/mp/components/cg.cpp b/src/game/iw4/mp/components/cg.cpp
index 9256a4a..331d2fd 100644
--- a/src/game/iw4/mp/components/cg.cpp
+++ b/src/game/iw4/mp/components/cg.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "cg.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/cg.h b/src/game/iw4/mp/components/cg.h
index a0b064e..916ccad 100644
--- a/src/game/iw4/mp/components/cg.h
+++ b/src/game/iw4/mp/components/cg.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/clipmap.cpp b/src/game/iw4/mp/components/clipmap.cpp
index 7663e01..6c19361 100644
--- a/src/game/iw4/mp/components/clipmap.cpp
+++ b/src/game/iw4/mp/components/clipmap.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "clipmap.h"
-#include "common.h"
#include "g_scr_main.h"
#include "events.h"
diff --git a/src/game/iw4/mp/components/clipmap.h b/src/game/iw4/mp/components/clipmap.h
index a783157..3ceb945 100644
--- a/src/game/iw4/mp/components/clipmap.h
+++ b/src/game/iw4/mp/components/clipmap.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
class clipmap : public Module
{
diff --git a/src/game/iw4/mp/components/console.cpp b/src/game/iw4/mp/components/console.cpp
index b26fc49..8b08cd6 100644
--- a/src/game/iw4/mp/components/console.cpp
+++ b/src/game/iw4/mp/components/console.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "console.h"
-#include "common.h"
typedef void (*R_AddCmdDrawStretchPic_t)(float x, float y, float w, float h, float s0, float t0, float s1, float t1,
const float *color, iw4::mp::Material *material);
diff --git a/src/game/iw4/mp/components/console.h b/src/game/iw4/mp/components/console.h
index 6fb5937..3e5aa38 100644
--- a/src/game/iw4/mp/components/console.h
+++ b/src/game/iw4/mp/components/console.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
class Console : public Module
{
diff --git a/src/game/iw4/mp/components/events.cpp b/src/game/iw4/mp/components/events.cpp
index f994f78..4725b43 100644
--- a/src/game/iw4/mp/components/events.cpp
+++ b/src/game/iw4/mp/components/events.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "events.h"
-#include "common.h"
std::vector> Events::cg_drawactive_callbacks;
diff --git a/src/game/iw4/mp/components/events.h b/src/game/iw4/mp/components/events.h
index 8ece53a..bcfe93f 100644
--- a/src/game/iw4/mp/components/events.h
+++ b/src/game/iw4/mp/components/events.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
class Events : public Module
{
diff --git a/src/game/iw4/mp/components/g_client_fields.cpp b/src/game/iw4/mp/components/g_client_fields.cpp
index ff2c397..cd27dea 100644
--- a/src/game/iw4/mp/components/g_client_fields.cpp
+++ b/src/game/iw4/mp/components/g_client_fields.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_client_fields.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/g_client_fields.h b/src/game/iw4/mp/components/g_client_fields.h
index 09a30cd..c0325d8 100644
--- a/src/game/iw4/mp/components/g_client_fields.h
+++ b/src/game/iw4/mp/components/g_client_fields.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/g_scr_main.cpp b/src/game/iw4/mp/components/g_scr_main.cpp
index 6f5ecc3..74c5cef 100644
--- a/src/game/iw4/mp/components/g_scr_main.cpp
+++ b/src/game/iw4/mp/components/g_scr_main.cpp
@@ -1,6 +1,5 @@
+#include "pch.h"
#include "g_scr_main.h"
-#include "common.h"
-#include
namespace iw4
{
diff --git a/src/game/iw4/mp/components/g_scr_main.h b/src/game/iw4/mp/components/g_scr_main.h
index 647d0ea..011c14d 100644
--- a/src/game/iw4/mp/components/g_scr_main.h
+++ b/src/game/iw4/mp/components/g_scr_main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/mr.cpp b/src/game/iw4/mp/components/mr.cpp
index f96860c..c6fd1e2 100644
--- a/src/game/iw4/mp/components/mr.cpp
+++ b/src/game/iw4/mp/components/mr.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "mr.h"
-#include "common.h"
#include "events.h"
#define ANGLE2SHORT(x) ((int)((x) * 65536 / 360) & 65535)
diff --git a/src/game/iw4/mp/components/mr.h b/src/game/iw4/mp/components/mr.h
index 074ad00..baeaae3 100644
--- a/src/game/iw4/mp/components/mr.h
+++ b/src/game/iw4/mp/components/mr.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/patches.cpp b/src/game/iw4/mp/components/patches.cpp
index 8665350..e3ba11f 100644
--- a/src/game/iw4/mp/components/patches.cpp
+++ b/src/game/iw4/mp/components/patches.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "patches.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/patches.h b/src/game/iw4/mp/components/patches.h
index 162a49d..8338c0b 100644
--- a/src/game/iw4/mp/components/patches.h
+++ b/src/game/iw4/mp/components/patches.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/scr_parser.cpp b/src/game/iw4/mp/components/scr_parser.cpp
index ed94f51..44ed775 100644
--- a/src/game/iw4/mp/components/scr_parser.cpp
+++ b/src/game/iw4/mp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/components/scr_parser.h b/src/game/iw4/mp/components/scr_parser.h
index 3108484..a88425d 100644
--- a/src/game/iw4/mp/components/scr_parser.h
+++ b/src/game/iw4/mp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/mp/main.cpp b/src/game/iw4/mp/main.cpp
index 720cdba..1913a35 100644
--- a/src/game/iw4/mp/main.cpp
+++ b/src/game/iw4/mp/main.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "components/cg.h"
#include "components/clipmap.h"
#include "components/console.h"
@@ -8,7 +9,6 @@
#include "components/patches.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/cg.cpp b/src/game/iw4/sp/components/cg.cpp
index 90b8249..4e90080 100644
--- a/src/game/iw4/sp/components/cg.cpp
+++ b/src/game/iw4/sp/components/cg.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "cg.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/cg.h b/src/game/iw4/sp/components/cg.h
index 2272b66..33c3f35 100644
--- a/src/game/iw4/sp/components/cg.h
+++ b/src/game/iw4/sp/components/cg.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/clipmap.cpp b/src/game/iw4/sp/components/clipmap.cpp
index 97603e7..7e62558 100644
--- a/src/game/iw4/sp/components/clipmap.cpp
+++ b/src/game/iw4/sp/components/clipmap.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "clipmap.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/clipmap.h b/src/game/iw4/sp/components/clipmap.h
index f1b8a2d..507b4d2 100644
--- a/src/game/iw4/sp/components/clipmap.h
+++ b/src/game/iw4/sp/components/clipmap.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/debug.cpp b/src/game/iw4/sp/components/debug.cpp
index 6ab17fd..9d17fdc 100644
--- a/src/game/iw4/sp/components/debug.cpp
+++ b/src/game/iw4/sp/components/debug.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/g_client_fields.cpp b/src/game/iw4/sp/components/g_client_fields.cpp
index eef36de..ceca46e 100644
--- a/src/game/iw4/sp/components/g_client_fields.cpp
+++ b/src/game/iw4/sp/components/g_client_fields.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_client_fields.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/g_client_fields.h b/src/game/iw4/sp/components/g_client_fields.h
index a37dde2..b17eb1d 100644
--- a/src/game/iw4/sp/components/g_client_fields.h
+++ b/src/game/iw4/sp/components/g_client_fields.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/g_scr_main.cpp b/src/game/iw4/sp/components/g_scr_main.cpp
index 7550ef5..bba46b1 100644
--- a/src/game/iw4/sp/components/g_scr_main.cpp
+++ b/src/game/iw4/sp/components/g_scr_main.cpp
@@ -1,6 +1,5 @@
+#include "pch.h"
#include "g_scr_main.h"
-#include "common.h"
-#include
namespace iw4
{
diff --git a/src/game/iw4/sp/components/g_scr_main.h b/src/game/iw4/sp/components/g_scr_main.h
index 7916bc7..21e156a 100644
--- a/src/game/iw4/sp/components/g_scr_main.h
+++ b/src/game/iw4/sp/components/g_scr_main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/pm.cpp b/src/game/iw4/sp/components/pm.cpp
index a0241bf..393ac44 100644
--- a/src/game/iw4/sp/components/pm.cpp
+++ b/src/game/iw4/sp/components/pm.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "pm.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/pm.h b/src/game/iw4/sp/components/pm.h
index 9b5ebc0..8994e40 100644
--- a/src/game/iw4/sp/components/pm.h
+++ b/src/game/iw4/sp/components/pm.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/scr_parser.cpp b/src/game/iw4/sp/components/scr_parser.cpp
index d02aa21..7e764b2 100644
--- a/src/game/iw4/sp/components/scr_parser.cpp
+++ b/src/game/iw4/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/components/scr_parser.h b/src/game/iw4/sp/components/scr_parser.h
index bd31a4c..c410bc2 100644
--- a/src/game/iw4/sp/components/scr_parser.h
+++ b/src/game/iw4/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw4
{
diff --git a/src/game/iw4/sp/main.cpp b/src/game/iw4/sp/main.cpp
index 327887a..24192be 100644
--- a/src/game/iw4/sp/main.cpp
+++ b/src/game/iw4/sp/main.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "components/cg.h"
#include "components/clipmap.h"
#include "components/g_client_fields.h"
@@ -5,7 +6,6 @@
#include "components/pm.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace iw4
{
diff --git a/src/game/iw5/mp/branding.cpp b/src/game/iw5/mp/branding.cpp
index 9859c42..5692993 100644
--- a/src/game/iw5/mp/branding.cpp
+++ b/src/game/iw5/mp/branding.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "branding.h"
void DrawBranding(int localClientNum)
diff --git a/src/game/iw5/mp/branding.h b/src/game/iw5/mp/branding.h
index e58fcfd..d274b12 100644
--- a/src/game/iw5/mp/branding.h
+++ b/src/game/iw5/mp/branding.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
class Branding : public Module
{
diff --git a/src/game/iw5/mp/main.cpp b/src/game/iw5/mp/main.cpp
index e2f11e0..df89e3d 100644
--- a/src/game/iw5/mp/main.cpp
+++ b/src/game/iw5/mp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "branding.h"
#include "main.h"
-#include "common.h"
#include "patches.h"
#include "pm.h"
#include "script.h"
diff --git a/src/game/iw5/mp/main.h b/src/game/iw5/mp/main.h
index 2a36131..993a968 100644
--- a/src/game/iw5/mp/main.h
+++ b/src/game/iw5/mp/main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/patches.cpp b/src/game/iw5/mp/patches.cpp
index c34b5d4..f5e76ea 100644
--- a/src/game/iw5/mp/patches.cpp
+++ b/src/game/iw5/mp/patches.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "patches.h"
-#include "common.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/patches.h b/src/game/iw5/mp/patches.h
index 40800cf..afecd87 100644
--- a/src/game/iw5/mp/patches.h
+++ b/src/game/iw5/mp/patches.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/pm.cpp b/src/game/iw5/mp/pm.cpp
index 8ddc9dc..05d2756 100644
--- a/src/game/iw5/mp/pm.cpp
+++ b/src/game/iw5/mp/pm.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "pm.h"
-#include "common.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/pm.h b/src/game/iw5/mp/pm.h
index 2048751..1e48e9f 100644
--- a/src/game/iw5/mp/pm.h
+++ b/src/game/iw5/mp/pm.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/script.cpp b/src/game/iw5/mp/script.cpp
index 84fd7c2..6c4bb9c 100644
--- a/src/game/iw5/mp/script.cpp
+++ b/src/game/iw5/mp/script.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "script.h"
-#include "common.h"
namespace iw5
{
diff --git a/src/game/iw5/mp/script.h b/src/game/iw5/mp/script.h
index 01f4dc0..43ff18a 100644
--- a/src/game/iw5/mp/script.h
+++ b/src/game/iw5/mp/script.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace iw5
{
diff --git a/src/game/qos/mp/components/g_scr_main.cpp b/src/game/qos/mp/components/g_scr_main.cpp
index 435407b..44b0bfb 100644
--- a/src/game/qos/mp/components/g_scr_main.cpp
+++ b/src/game/qos/mp/components/g_scr_main.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_scr_main.h"
-#include "common.h"
namespace qos
{
diff --git a/src/game/qos/mp/components/g_scr_main.h b/src/game/qos/mp/components/g_scr_main.h
index 235f6e4..c1f4a33 100644
--- a/src/game/qos/mp/components/g_scr_main.h
+++ b/src/game/qos/mp/components/g_scr_main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace qos
{
diff --git a/src/game/qos/mp/components/scr_parser.cpp b/src/game/qos/mp/components/scr_parser.cpp
index 6cf1790..d7e01af 100644
--- a/src/game/qos/mp/components/scr_parser.cpp
+++ b/src/game/qos/mp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace qos
{
diff --git a/src/game/qos/mp/components/scr_parser.h b/src/game/qos/mp/components/scr_parser.h
index a54356a..30985ee 100644
--- a/src/game/qos/mp/components/scr_parser.h
+++ b/src/game/qos/mp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace qos
{
diff --git a/src/game/qos/mp/main.cpp b/src/game/qos/mp/main.cpp
index 6885087..fd6406e 100644
--- a/src/game/qos/mp/main.cpp
+++ b/src/game/qos/mp/main.cpp
@@ -1,7 +1,7 @@
+#include "pch.h"
#include "components/g_scr_main.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace qos
{
diff --git a/src/game/qos/sp/components/scr_parser.cpp b/src/game/qos/sp/components/scr_parser.cpp
index e263530..8108426 100644
--- a/src/game/qos/sp/components/scr_parser.cpp
+++ b/src/game/qos/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace qos
{
diff --git a/src/game/qos/sp/components/scr_parser.h b/src/game/qos/sp/components/scr_parser.h
index c7b9b36..8f8a1a6 100644
--- a/src/game/qos/sp/components/scr_parser.h
+++ b/src/game/qos/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace qos
{
diff --git a/src/game/qos/sp/main.cpp b/src/game/qos/sp/main.cpp
index ba1c03d..24ff66d 100644
--- a/src/game/qos/sp/main.cpp
+++ b/src/game/qos/sp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace qos
{
diff --git a/src/game/t4/mp/components/branding.cpp b/src/game/t4/mp/components/branding.cpp
index e82cb18..5811840 100644
--- a/src/game/t4/mp/components/branding.cpp
+++ b/src/game/t4/mp/components/branding.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "branding.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/branding.h b/src/game/t4/mp/components/branding.h
index b53f6f2..8c9fcfa 100644
--- a/src/game/t4/mp/components/branding.h
+++ b/src/game/t4/mp/components/branding.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/brush_collision.cpp b/src/game/t4/mp/components/brush_collision.cpp
index 295efdb..e4a4ba0 100644
--- a/src/game/t4/mp/components/brush_collision.cpp
+++ b/src/game/t4/mp/components/brush_collision.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "brush_collision.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/brush_collision.h b/src/game/t4/mp/components/brush_collision.h
index fe6b927..08c58fa 100644
--- a/src/game/t4/mp/components/brush_collision.h
+++ b/src/game/t4/mp/components/brush_collision.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/cg.cpp b/src/game/t4/mp/components/cg.cpp
index bb43172..8bd729c 100644
--- a/src/game/t4/mp/components/cg.cpp
+++ b/src/game/t4/mp/components/cg.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "cg.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/cg.h b/src/game/t4/mp/components/cg.h
index b9aab1d..bad8ef5 100644
--- a/src/game/t4/mp/components/cg.h
+++ b/src/game/t4/mp/components/cg.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_client_fields.cpp b/src/game/t4/mp/components/gsc_client_fields.cpp
index 5790051..eed9160 100644
--- a/src/game/t4/mp/components/gsc_client_fields.cpp
+++ b/src/game/t4/mp/components/gsc_client_fields.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "gsc_client_fields.h"
-#include "common.h"
const unsigned int CLIENT_FIELD_MASK = 0xC000;
diff --git a/src/game/t4/mp/components/gsc_client_fields.h b/src/game/t4/mp/components/gsc_client_fields.h
index c67a16c..8248e44 100644
--- a/src/game/t4/mp/components/gsc_client_fields.h
+++ b/src/game/t4/mp/components/gsc_client_fields.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_client_methods.cpp b/src/game/t4/mp/components/gsc_client_methods.cpp
index e24721d..9329ce0 100644
--- a/src/game/t4/mp/components/gsc_client_methods.cpp
+++ b/src/game/t4/mp/components/gsc_client_methods.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "gsc_client_methods.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_client_methods.h b/src/game/t4/mp/components/gsc_client_methods.h
index efc9ee4..0fc831c 100644
--- a/src/game/t4/mp/components/gsc_client_methods.h
+++ b/src/game/t4/mp/components/gsc_client_methods.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_functions.cpp b/src/game/t4/mp/components/gsc_functions.cpp
index 8b1d8a0..f54ae26 100644
--- a/src/game/t4/mp/components/gsc_functions.cpp
+++ b/src/game/t4/mp/components/gsc_functions.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "gsc_functions.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_functions.h b/src/game/t4/mp/components/gsc_functions.h
index 3a25048..0183bd2 100644
--- a/src/game/t4/mp/components/gsc_functions.h
+++ b/src/game/t4/mp/components/gsc_functions.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_loader.cpp b/src/game/t4/mp/components/gsc_loader.cpp
index e47a637..56c8e9c 100644
--- a/src/game/t4/mp/components/gsc_loader.cpp
+++ b/src/game/t4/mp/components/gsc_loader.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "gsc_loader.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/gsc_loader.h b/src/game/t4/mp/components/gsc_loader.h
index 6e31f37..cff377c 100644
--- a/src/game/t4/mp/components/gsc_loader.h
+++ b/src/game/t4/mp/components/gsc_loader.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/image_loader.cpp b/src/game/t4/mp/components/image_loader.cpp
index 3ccab38..a4ae27d 100644
--- a/src/game/t4/mp/components/image_loader.cpp
+++ b/src/game/t4/mp/components/image_loader.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "image_loader.h"
-#include "common.h"
namespace
{
diff --git a/src/game/t4/mp/components/image_loader.h b/src/game/t4/mp/components/image_loader.h
index 7e34482..7d0f52a 100644
--- a/src/game/t4/mp/components/image_loader.h
+++ b/src/game/t4/mp/components/image_loader.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
// DDS Constants
const uint32_t DDS_MAGIC = MAKEFOURCC('D', 'D', 'S', ' ');
diff --git a/src/game/t4/mp/components/map.cpp b/src/game/t4/mp/components/map.cpp
index ad79f45..4a70b33 100644
--- a/src/game/t4/mp/components/map.cpp
+++ b/src/game/t4/mp/components/map.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "map.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/map.h b/src/game/t4/mp/components/map.h
index b74365a..ab0e4a3 100644
--- a/src/game/t4/mp/components/map.h
+++ b/src/game/t4/mp/components/map.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/test_module.cpp b/src/game/t4/mp/components/test_module.cpp
index 810fcec..2b55d8a 100644
--- a/src/game/t4/mp/components/test_module.cpp
+++ b/src/game/t4/mp/components/test_module.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "test_module.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/test_module.h b/src/game/t4/mp/components/test_module.h
index 2d0df67..9610f55 100644
--- a/src/game/t4/mp/components/test_module.h
+++ b/src/game/t4/mp/components/test_module.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/ui.cpp b/src/game/t4/mp/components/ui.cpp
index f2df5d0..716e41c 100644
--- a/src/game/t4/mp/components/ui.cpp
+++ b/src/game/t4/mp/components/ui.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "ui.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/mp/components/ui.h b/src/game/t4/mp/components/ui.h
index 4da1231..321ca68 100644
--- a/src/game/t4/mp/components/ui.h
+++ b/src/game/t4/mp/components/ui.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/mp/main.cpp b/src/game/t4/mp/main.cpp
index 1857c24..32d0277 100644
--- a/src/game/t4/mp/main.cpp
+++ b/src/game/t4/mp/main.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
#include "main.h"
#include "components/branding.h"
#include "components/brush_collision.h"
diff --git a/src/game/t4/sp/components/clipmap.cpp b/src/game/t4/sp/components/clipmap.cpp
index 4353b21..b41ba8c 100644
--- a/src/game/t4/sp/components/clipmap.cpp
+++ b/src/game/t4/sp/components/clipmap.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "clipmap.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/clipmap.h b/src/game/t4/sp/components/clipmap.h
index 84602bc..3c53e19 100644
--- a/src/game/t4/sp/components/clipmap.h
+++ b/src/game/t4/sp/components/clipmap.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/debug.cpp b/src/game/t4/sp/components/debug.cpp
index 1c55d91..7ae8a50 100644
--- a/src/game/t4/sp/components/debug.cpp
+++ b/src/game/t4/sp/components/debug.cpp
@@ -3,7 +3,7 @@ This module is not used anywhere in the project.
It contains useful code snippets for debugging and development purposes.
*/
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_client_fields.cpp b/src/game/t4/sp/components/g_client_fields.cpp
index aeb1722..15f474d 100644
--- a/src/game/t4/sp/components/g_client_fields.cpp
+++ b/src/game/t4/sp/components/g_client_fields.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_client_fields.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_client_fields.h b/src/game/t4/sp/components/g_client_fields.h
index 9e3c158..2d8d636 100644
--- a/src/game/t4/sp/components/g_client_fields.h
+++ b/src/game/t4/sp/components/g_client_fields.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_client_script_cmd.cpp b/src/game/t4/sp/components/g_client_script_cmd.cpp
index 4a5447c..368237d 100644
--- a/src/game/t4/sp/components/g_client_script_cmd.cpp
+++ b/src/game/t4/sp/components/g_client_script_cmd.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "g_client_script_cmd.h"
#include "g_scr_main.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_client_script_cmd.h b/src/game/t4/sp/components/g_client_script_cmd.h
index b9da9ec..8ad7f03 100644
--- a/src/game/t4/sp/components/g_client_script_cmd.h
+++ b/src/game/t4/sp/components/g_client_script_cmd.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_scr_main.cpp b/src/game/t4/sp/components/g_scr_main.cpp
index 4242dd3..22e3df4 100644
--- a/src/game/t4/sp/components/g_scr_main.cpp
+++ b/src/game/t4/sp/components/g_scr_main.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "g_scr_main.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_scr_main.h b/src/game/t4/sp/components/g_scr_main.h
index 742292d..e3622a4 100644
--- a/src/game/t4/sp/components/g_scr_main.h
+++ b/src/game/t4/sp/components/g_scr_main.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_scr_mover.cpp b/src/game/t4/sp/components/g_scr_mover.cpp
index cb65760..c64b9ef 100644
--- a/src/game/t4/sp/components/g_scr_mover.cpp
+++ b/src/game/t4/sp/components/g_scr_mover.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "g_scr_mover.h"
#include "g_scr_main.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/g_scr_mover.h b/src/game/t4/sp/components/g_scr_mover.h
index 735cbb4..c35c383 100644
--- a/src/game/t4/sp/components/g_scr_mover.h
+++ b/src/game/t4/sp/components/g_scr_mover.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/scr_parser.cpp b/src/game/t4/sp/components/scr_parser.cpp
index 3899116..1bca0f5 100644
--- a/src/game/t4/sp/components/scr_parser.cpp
+++ b/src/game/t4/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/scr_parser.h b/src/game/t4/sp/components/scr_parser.h
index 743a798..94df317 100644
--- a/src/game/t4/sp/components/scr_parser.h
+++ b/src/game/t4/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/ui.cpp b/src/game/t4/sp/components/ui.cpp
index 8844ccf..58d6414 100644
--- a/src/game/t4/sp/components/ui.cpp
+++ b/src/game/t4/sp/components/ui.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "ui.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t4/sp/components/ui.h b/src/game/t4/sp/components/ui.h
index 3a28881..b946a1b 100644
--- a/src/game/t4/sp/components/ui.h
+++ b/src/game/t4/sp/components/ui.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t4
{
diff --git a/src/game/t4/sp/main.cpp b/src/game/t4/sp/main.cpp
index 4c09891..84e4840 100644
--- a/src/game/t4/sp/main.cpp
+++ b/src/game/t4/sp/main.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "components/clipmap.h"
#include "components/g_client_fields.h"
#include "components/g_client_script_cmd.h"
@@ -6,7 +7,6 @@
#include "components/scr_parser.h"
#include "components/ui.h"
#include "main.h"
-#include "common.h"
namespace t4
{
diff --git a/src/game/t5/mp/components/scr_parser.cpp b/src/game/t5/mp/components/scr_parser.cpp
index a943d1f..0c6a76b 100644
--- a/src/game/t5/mp/components/scr_parser.cpp
+++ b/src/game/t5/mp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace t5
{
diff --git a/src/game/t5/mp/components/scr_parser.h b/src/game/t5/mp/components/scr_parser.h
index f67c724..f713a8b 100644
--- a/src/game/t5/mp/components/scr_parser.h
+++ b/src/game/t5/mp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t5
{
diff --git a/src/game/t5/mp/main.cpp b/src/game/t5/mp/main.cpp
index 86ab185..e629647 100644
--- a/src/game/t5/mp/main.cpp
+++ b/src/game/t5/mp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace t5
{
diff --git a/src/game/t5/sp/components/scr_parser.cpp b/src/game/t5/sp/components/scr_parser.cpp
index 34a78e3..ddf1933 100644
--- a/src/game/t5/sp/components/scr_parser.cpp
+++ b/src/game/t5/sp/components/scr_parser.cpp
@@ -1,5 +1,5 @@
+#include "pch.h"
#include "scr_parser.h"
-#include "common.h"
namespace t5
{
diff --git a/src/game/t5/sp/components/scr_parser.h b/src/game/t5/sp/components/scr_parser.h
index cab6667..5d0ec93 100644
--- a/src/game/t5/sp/components/scr_parser.h
+++ b/src/game/t5/sp/components/scr_parser.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
namespace t5
{
diff --git a/src/game/t5/sp/main.cpp b/src/game/t5/sp/main.cpp
index d270b49..33c002c 100644
--- a/src/game/t5/sp/main.cpp
+++ b/src/game/t5/sp/main.cpp
@@ -1,6 +1,6 @@
+#include "pch.h"
#include "components/scr_parser.h"
#include "main.h"
-#include "common.h"
namespace t5
{
diff --git a/src/pch.cpp b/src/pch.cpp
new file mode 100644
index 0000000..1d9f38c
--- /dev/null
+++ b/src/pch.cpp
@@ -0,0 +1 @@
+#include "pch.h"
diff --git a/src/common.h b/src/pch.h
similarity index 92%
rename from src/common.h
rename to src/pch.h
index 88d95fb..6d9174b 100644
--- a/src/common.h
+++ b/src/pch.h
@@ -23,6 +23,10 @@
#include
#include
+#pragma comment(lib, "d3d9ltcg.lib")
+#pragma comment(lib, "xgraphics.lib")
+#pragma comment(lib, "xjson.lib")
+
// Project-specific includes
#include "detour.h"
#include "filesystem.h"
@@ -93,14 +97,3 @@
#include "game/qos/mp/main.h"
#include "game/qos/mp/structs.h"
#include "game/qos/mp/symbols.h"
-
-/*
- * Usage:
- * Simply include this file in your source files:
- *
- * #include "common.h"
- *
- * This will include all commonly used headers for the project.
- */
-
-#include "compat.h"
diff --git a/src/plugin_manager.cpp b/src/plugin_manager.cpp
index 80a953e..884c572 100644
--- a/src/plugin_manager.cpp
+++ b/src/plugin_manager.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
#include "plugin_manager.h"
PluginManager::PluginManager()
diff --git a/src/plugin_manager.h b/src/plugin_manager.h
index 6a54c28..7157640 100644
--- a/src/plugin_manager.h
+++ b/src/plugin_manager.h
@@ -1,6 +1,6 @@
#pragma once
-#include "common.h"
+#include "pch.h"
#include
class PluginManager
diff --git a/src/xbox360.cpp b/src/xbox360.cpp
index 4099ebe..cdfc1d1 100644
--- a/src/xbox360.cpp
+++ b/src/xbox360.cpp
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "pch.h"
namespace xbox
{