mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-25 14:02:55 -05:00
[WIP] Linux support
This commit is contained in:
16
src/main_win.cpp
Normal file
16
src/main_win.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user