mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
All routines are now fully implemented. This was delayed on purpose as some bit buffer functions have changed due to the use of 64bit integers for sizes, and also the coord types. The porting of this has to be done carefully; all reimplemented functions have been changed to feature 64bit integers (where necessary) for syze types, and all values in coordsize.h have been tweaked to reflect the changes in the R5 engine 1:1, allowing us to properly implement the coord bit buffer functions as well.
79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
//===========================================================================//
|
|
//
|
|
// Purpose: Shared precompiled header file.
|
|
//
|
|
//===========================================================================//
|
|
#ifndef SHARED_PCH_H
|
|
#define SHARED_PCH_H
|
|
|
|
#if defined(_DEBUG) || defined(_PROFILE)
|
|
#pragma message ("Profiling is turned on; do not release this binary!\n")
|
|
#endif // _DEBUG || _PROFILE
|
|
|
|
// System includes.
|
|
#define WIN32_LEAN_AND_MEAN // Prevent winsock2 redefinition.
|
|
#include <windows.h>
|
|
#include <WinSock2.h>
|
|
#include <Ws2tcpip.h>
|
|
#include <bcrypt.h>
|
|
#include <comdef.h>
|
|
#include <direct.h>
|
|
#include <dbghelp.h>
|
|
#include <timeapi.h>
|
|
#include <shellapi.h>
|
|
#include <Psapi.h>
|
|
#include <setjmp.h>
|
|
#include <stdio.h>
|
|
#include <shlobj.h>
|
|
#include <objbase.h>
|
|
#include <intrin.h>
|
|
#include <emmintrin.h>
|
|
#include <cmath>
|
|
#include <cctype>
|
|
#include <cinttypes>
|
|
#include <regex>
|
|
#include <mutex>
|
|
#include <thread>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <sstream>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <cassert>
|
|
#include <filesystem>
|
|
#include <map>
|
|
#include <unordered_map>
|
|
#include <set>
|
|
#include <unordered_set>
|
|
#include <functional>
|
|
|
|
#include <smmintrin.h>
|
|
|
|
// Core includes.
|
|
#include "core/assert.h"
|
|
#include "core/termutil.h"
|
|
|
|
// Common includes.
|
|
#include "common/experimental.h"
|
|
#include "common/pseudodefs.h"
|
|
#include "common/x86defs.h"
|
|
#include "common/sdkdefs.h"
|
|
|
|
// Windows specifics, to support compiling the SDK with older versions of the Windows 10 SDK.
|
|
#ifndef FILE_SUPPORTS_GHOSTING
|
|
#define FILE_SUPPORTS_GHOSTING 0x40000000 // winnt
|
|
#endif
|
|
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
|
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
|
|
#endif
|
|
|
|
#define MAIN_WORKER_DLL "gamesdk.dll"
|
|
#define SERVER_WORKER_DLL "dedicated.dll"
|
|
#define CLIENT_WORKER_DLL "bin\\x64_retail\\client.dll"
|
|
|
|
#define MAIN_GAME_DLL "r5apex.exe"
|
|
#define SERVER_GAME_DLL "r5apex_ds.exe"
|
|
|
|
#endif // SHARED_PCH_H
|