mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
33 lines
792 B
C++
33 lines
792 B
C++
#include "shared.hpp"
|
|
#include "logging.hpp"
|
|
#include "dynloader.hpp"
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
BOOLEAN WINAPI DllMain(IN HINSTANCE hDllHandle,
|
|
IN DWORD nReason,
|
|
IN LPVOID Reserved) {
|
|
BOOLEAN bSuccess = TRUE;
|
|
el::Configurations conf;
|
|
|
|
switch (nReason) {
|
|
case DLL_PROCESS_ATTACH:
|
|
conf.setGlobally(el::ConfigurationType::Filename, "logs/ace_dynload.log");
|
|
el::Loggers::setDefaultConfigurations(conf, true);
|
|
|
|
conf.set(
|
|
el::Level::Global,
|
|
el::ConfigurationType::Filename,
|
|
"logs/server_events.log");
|
|
|
|
// Register functions
|
|
ace::dynloader::get().register_functions();
|
|
|
|
break;
|
|
case DLL_PROCESS_DETACH:
|
|
break;
|
|
}
|
|
|
|
return bSuccess;
|
|
|
|
} |