mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
* wip * make pretty * Remove CRT version check from IM * fix * Simplify IsDebuggerPresent hook
84 lines
2.1 KiB
C++
84 lines
2.1 KiB
C++
// pch.h: This is a precompiled header file.
|
|
// Files listed below are compiled only once, improving build performance for future builds.
|
|
// This also affects IntelliSense performance, including code completion and many code browsing features.
|
|
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
|
|
// Do not add files here that you will be updating frequently as this negates the performance advantage.
|
|
|
|
#ifndef PCH_H
|
|
#define PCH_H
|
|
|
|
// Exclude rarely-used stuff from Windows headers
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define NOMINMAX
|
|
|
|
// https://developercommunity.visualstudio.com/t/Access-violation-with-std::mutex::lock-a/10664660
|
|
#define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
|
|
|
|
// Windows Header Files (1)
|
|
#include <Windows.h>
|
|
|
|
// Windows Header Files (2)
|
|
#include <DbgHelp.h>
|
|
#include <Dbt.h>
|
|
#include <dwmapi.h>
|
|
#include <iphlpapi.h>
|
|
#include <PathCch.h>
|
|
#include <Psapi.h>
|
|
#include <shellapi.h>
|
|
#include <ShlObj.h>
|
|
#include <Shlwapi.h>
|
|
#include <SubAuth.h>
|
|
#include <TlHelp32.h>
|
|
|
|
// Windows Header Files (3)
|
|
#include <icmpapi.h> // Must be loaded after iphlpapi.h
|
|
|
|
// MSVC Compiler Intrinsic
|
|
#include <intrin.h>
|
|
|
|
// COM
|
|
#include <comdef.h>
|
|
|
|
// C++ Standard Libraries
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <chrono>
|
|
#include <cstdio>
|
|
#include <deque>
|
|
#include <filesystem>
|
|
#include <format>
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iostream>
|
|
#include <mutex>
|
|
#include <ranges>
|
|
#include <set>
|
|
#include <span>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <type_traits>
|
|
|
|
// https://www.akenotsuki.com/misc/srell/en/
|
|
#include "../lib/srell3_009/single-header/srell.hpp"
|
|
|
|
// https://github.com/TsudaKageyu/minhook
|
|
#include "../lib/TsudaKageyu-minhook/include/MinHook.h"
|
|
|
|
// https://github.com/Nomade040/nmd
|
|
#include "../lib/Nomade040-nmd/nmd_assembly.h"
|
|
|
|
// https://github.com/dotnet/coreclr
|
|
#include "../lib/CoreCLR/boot.h"
|
|
#include "../lib/CoreCLR/CoreCLR.h"
|
|
|
|
// https://github.com/nlohmann/json
|
|
#include "../lib/nlohmann-json/json.hpp"
|
|
|
|
#include "unicode.h"
|
|
|
|
// Global variables
|
|
extern HMODULE g_hModule;
|
|
extern HINSTANCE g_hGameInstance;
|
|
extern std::optional<CoreCLR> g_clr;
|
|
|
|
#endif //PCH_H
|