55 lines
840 B
C++
55 lines
840 B
C++
|
|||
#pragma once
|
|||
|
|||
#include "UnitLimit.hpp"
|
|||
#include "MegaMap.hpp"
|
|||
#include "RenderingExports.hpp"
|
|||
#include "Scripting.hpp"
|
|||
#include "MultiThreading.hpp"
|
|||
#include "CrashDumps.hpp"
|
|||
|
|||
#include <Windows.h>
|
|||
|
|||
namespace PatchFix
|
|||
{
|
|||
namespace DLL_Functions
|
|||
{
|
|||
void Init();
|
|||
void DeInit();
|
|||
}
|
|||
}
|
|||
|
|||
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved);
|
|||
|
|||
|
|||
|
|||
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
{
|
|||
switch (fdwReason)
|
|||
{
|
|||
case DLL_PROCESS_ATTACH:
|
|||
PatchFix::DLL_Functions::Init();
|
|||
break;
|
|||
case DLL_PROCESS_DETACH:
|
|||
PatchFix::DLL_Functions::DeInit();
|
|||
break;
|
|||
}
|
|||
|
|||
return TRUE;
|
|||
}
|
|||
|
|||
void PatchFix::DLL_Functions::Init()
|
|||
{
|
|||
CrashDumps::ApplyPatches();
|
|||
UnitLimit::ApplyPatches();
|
|||
Scripting::ApplyPatches();
|
|||
|
|||
//MultiThreading::ApplyPatches();
|
|||
}
|
|||
|
|||
void PatchFix::DLL_Functions::DeInit()
|
|||
{
|
|||
|
|||
}
|
|||
|