mirror of https://github.com/acidicoala/SmokeAPI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
389 B
C++
15 lines
389 B
C++
#include <smoke_api/smoke_api.hpp>
|
|
|
|
// This header will be populated at build time
|
|
#include <linker_exports.h>
|
|
|
|
EXTERN_C [[maybe_unused]] BOOL WINAPI DllMain(HMODULE module_handle, DWORD reason, LPVOID) {
|
|
if (reason == DLL_PROCESS_ATTACH) {
|
|
smoke_api::init(module_handle);
|
|
} else if (reason == DLL_PROCESS_DETACH) {
|
|
smoke_api::shutdown();
|
|
}
|
|
|
|
return TRUE;
|
|
}
|