From 57513c61d9d25083ff49d33554566656b662e5f9 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Wed, 6 Apr 2022 21:37:28 +0200 Subject: [PATCH] Fix dedi --- src/Components/Modules/AssetInterfaces/IComWorld.cpp | 2 +- src/Components/Modules/AssetInterfaces/IFxEffectDef.cpp | 2 +- src/Components/Modules/AssetInterfaces/IFxWorld.cpp | 2 +- src/Components/Modules/AssetInterfaces/IGameWorldMp.cpp | 2 +- src/Components/Modules/AssetInterfaces/IGameWorldSp.cpp | 2 +- src/Components/Modules/AssetInterfaces/IGfxImage.cpp | 2 +- src/Components/Modules/AssetInterfaces/IclipMap_t.cpp | 2 +- src/Utils/Library.hpp | 6 +++--- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IComWorld.cpp b/src/Components/Modules/AssetInterfaces/IComWorld.cpp index b25d832a..4854c3a6 100644 --- a/src/Components/Modules/AssetInterfaces/IComWorld.cpp +++ b/src/Components/Modules/AssetInterfaces/IComWorld.cpp @@ -1,4 +1,4 @@ -#include +#include #define IW4X_COMMAP_VERSION 0 diff --git a/src/Components/Modules/AssetInterfaces/IFxEffectDef.cpp b/src/Components/Modules/AssetInterfaces/IFxEffectDef.cpp index 92c17ba7..0cdd6b3a 100644 --- a/src/Components/Modules/AssetInterfaces/IFxEffectDef.cpp +++ b/src/Components/Modules/AssetInterfaces/IFxEffectDef.cpp @@ -1,4 +1,4 @@ -#include +#include #define IW4X_FX_VERSION 1 diff --git a/src/Components/Modules/AssetInterfaces/IFxWorld.cpp b/src/Components/Modules/AssetInterfaces/IFxWorld.cpp index eda6b0ca..9473dfd0 100644 --- a/src/Components/Modules/AssetInterfaces/IFxWorld.cpp +++ b/src/Components/Modules/AssetInterfaces/IFxWorld.cpp @@ -1,4 +1,4 @@ -#include +#include namespace Assets { diff --git a/src/Components/Modules/AssetInterfaces/IGameWorldMp.cpp b/src/Components/Modules/AssetInterfaces/IGameWorldMp.cpp index 513c5df9..17c7702e 100644 --- a/src/Components/Modules/AssetInterfaces/IGameWorldMp.cpp +++ b/src/Components/Modules/AssetInterfaces/IGameWorldMp.cpp @@ -1,4 +1,4 @@ -#include +#include namespace Assets { diff --git a/src/Components/Modules/AssetInterfaces/IGameWorldSp.cpp b/src/Components/Modules/AssetInterfaces/IGameWorldSp.cpp index 12a71890..04fba9c2 100644 --- a/src/Components/Modules/AssetInterfaces/IGameWorldSp.cpp +++ b/src/Components/Modules/AssetInterfaces/IGameWorldSp.cpp @@ -1,4 +1,4 @@ -#include +#include namespace Assets { diff --git a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp index 06a4b440..f0981c9e 100644 --- a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp +++ b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp @@ -1,4 +1,4 @@ -#include +#include #define IW4X_IMG_VERSION "0" diff --git a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp index 6ba84557..df933bbc 100644 --- a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp +++ b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp @@ -1,4 +1,4 @@ -#include +#include #define IW4X_CLIPMAP_VERSION 2 diff --git a/src/Utils/Library.hpp b/src/Utils/Library.hpp index 2262987d..552c91e2 100644 --- a/src/Utils/Library.hpp +++ b/src/Utils/Library.hpp @@ -10,13 +10,13 @@ namespace Utils static Library GetByAddress(void* address); Library() : _module(nullptr), freeOnDestroy(false) {}; - Library(const std::string& buffer, bool freeOnDestroy); - explicit Library(const std::string& name); + explicit Library(const std::string& name, bool freeOnDestroy); + explicit Library(const std::string& name) : _module(GetModuleHandleA(name.data())), freeOnDestroy(true) {}; explicit Library(HMODULE handle); ~Library(); bool isValid() const; - HMODULE getModule(); + HMODULE getModule() const; template T getProc(const std::string& process) const