Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 9326fe0

Browse files
committed
Refactor wrapper_generic to use a pch
1 parent df5d4fb commit 9326fe0

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

source/wrapper_generic/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ add_library(
3434
${SOURCE_FILES}
3535
)
3636

37+
target_precompile_headers(
38+
${CURRENT_PROJECT}
39+
PRIVATE
40+
pch.h
41+
)
42+
3743
target_include_directories(
3844
${CURRENT_PROJECT}
3945
PRIVATE

source/wrapper_generic/EOSOverlay.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#include <cstdint>
2-
#include <string.h>
3-
41
constinit const char *TargetFunctionNames[] = {
52
"EOS_Overlay_ApplicationWillShutdown",
63
"EOS_Overlay_CloseBrowser",

source/wrapper_generic/dllmain.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
#include <Windows.h>
2-
#include <algorithm>
3-
#include <string_view>
4-
#include <mutex>
5-
#include <unordered_set>
61
#include "Hooking/Hooks.h"
72

83
//

source/wrapper_generic/nvapi.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include <cstdint>
2-
#include <string.h>
31

42
enum class NV_STATUS : uint32_t
53
{

source/wrapper_generic/pch.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <Windows.h>
2+
#include <algorithm>
3+
#include <string_view>
4+
#include <mutex>
5+
#include <unordered_set>

source/wrapper_generic/proxies.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
#include <Windows.h>
2-
31
void *CustomLibraryResolverCallback();
42

53
#define DLL_PROXY_EXPORT_LISTING_FILE "ExportListing.inc" // List of exported functions
64
#define DLL_PROXY_TLS_CALLBACK_AUTOINIT // Enable automatic initialization through a thread local storage callback
75
#define DLL_PROXY_DECLARE_IMPLEMENTATION // Define the whole implementation
86
#define DLL_PROXY_LIBRARY_RESOLVER_CALLBACK CustomLibraryResolverCallback // Custom DLL path resolver
9-
#include "DllProxy.h"
7+
#include "DllProxy/DllProxy.h"
108

119
extern bool EnableAggressiveHooking;
1210

0 commit comments

Comments
 (0)