mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-13 14:07:08 +03:00
20 lines
No EOL
381 B
C++
20 lines
No EOL
381 B
C++
#include "GLRage.hpp"
|
|
|
|
#include <glrage_util/Logger.hpp>
|
|
|
|
using namespace glrage;
|
|
|
|
extern "C" { int _afxForceUSRDLL; }
|
|
|
|
BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
|
|
{
|
|
LOG_TRACE("%p,%d", hInst, dwReason);
|
|
|
|
switch (dwReason) {
|
|
case DLL_PROCESS_ATTACH:
|
|
GLRage::getPatcher().patch();
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
} |