#pragma once // Version number #include #ifndef RESOURCE_DATA #define VC_EXTRALEAN #define WIN32_LEAN_AND_MEAN #include //#include //#include //#include //#include #include #include //#include //#include #include //#include #include #include //#include //#include //#include //#include #include #include //#include //#include //#include #include //#include #include #include //#include #include #include // Submodules // Ignore the warnings, it's no our code! #pragma warning(push) #pragma warning(disable: 4005) #pragma warning(disable: 4100) #pragma warning(disable: 4389) #pragma warning(disable: 4702) #pragma warning(disable: 6001) #pragma warning(disable: 6011) #pragma warning(disable: 6031) #pragma warning(disable: 6255) #pragma warning(disable: 6258) #pragma warning(disable: 6386) #pragma warning(disable: 6387) #include #include #include #include #include #include #ifdef max #undef max #endif #ifdef min #undef min #endif #include // Protobuf #include "proto/network.pb.h" #include "proto/party.pb.h" #include "proto/auth.pb.h" #include "proto/node.pb.h" #include "proto/rcon.pb.h" #pragma warning(pop) #include "Utils\IO.hpp" #include "Utils\CSV.hpp" #include "Utils\Utils.hpp" #include "Utils\WebIO.hpp" #include "Utils\Memory.hpp" #include "Utils\String.hpp" #include "Utils\Hooking.hpp" #include "Utils\InfoString.hpp" #include "Utils\Compression.hpp" #include "Utils\Cryptography.hpp" #include "Steam\Steam.hpp" #include "Game\Structs.hpp" #include "Game\Functions.hpp" #include "Utils\Stream.hpp" #include "Components\Loader.hpp" // Libraries #pragma comment(lib, "Winmm.lib") #pragma comment(lib, "Crypt32.lib") #pragma comment(lib, "Ws2_32.lib") #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "Wininet.lib") #pragma comment(lib, "shlwapi.lib") #pragma comment(lib, "Urlmon.lib") #pragma comment(lib, "Advapi32.lib") // Enable additional literals using namespace std::literals; #endif // Revision number #define STRINGIZE_(x) #x #define STRINGIZE(x) STRINGIZE_(x) #define BASEGAME "iw4x" #define CLIENT_CONFIG "iw4x_config.cfg" #define REVISION_STR STRINGIZE(REVISION) #if !REVISION_CLEAN #define REVISION_SUFFIX "*" #else #define REVISION_SUFFIX "" #endif #define VERSION 4,2,REVISION #define VERSION_STR "4.2." REVISION_STR #define Assert_Size(x, size) static_assert(sizeof(x) == size, STRINGIZE(x) " structure has an invalid size.") // Resource stuff #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS // Defines below make accessing the resources from the code easier. #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif