Files
SmokeAPI/src/main_win.cpp
2025-09-20 07:36:49 +05:00

18 lines
425 B
C++

#include <koalabox/win.hpp>
#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"
DLL_MAIN(void* handle, const uint32_t reason, void*) {
if(reason == DLL_PROCESS_ATTACH) {
smoke_api::init(handle);
} else if(reason == DLL_PROCESS_DETACH) {
smoke_api::shutdown();
}
return TRUE;
}