mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-25 05:52:51 -05:00
17 lines
453 B
C++
17 lines
453 B
C++
#include "smoke_api/smoke_api.hpp"
|
|
|
|
// This header will be populated at build time
|
|
#include "linker_exports_for_steam_api.h"
|
|
#include "linker_exports_for_version.h"
|
|
|
|
EXTERN_C [[maybe_unused]] BOOL WINAPI
|
|
DllMain(const HMODULE module_handle, const DWORD reason, LPVOID) {
|
|
if(reason == DLL_PROCESS_ATTACH) {
|
|
smoke_api::init(module_handle);
|
|
} else if(reason == DLL_PROCESS_DETACH) {
|
|
smoke_api::shutdown();
|
|
}
|
|
|
|
return TRUE;
|
|
}
|