mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-24 13:32:51 -05:00
Switch to DLL_MAIN helper
This commit is contained in:
@@ -114,7 +114,7 @@ namespace {
|
||||
}
|
||||
|
||||
namespace smoke_api {
|
||||
void init(const HMODULE module_handle) {
|
||||
void init(void* module_handle) {
|
||||
try {
|
||||
kb::globals::init_globals(module_handle, PROJECT_NAME);
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace smoke_api {
|
||||
const auto exe_name = kb::path::to_str(exe_path.filename());
|
||||
|
||||
LOG_DEBUG("Process name: '{}' [{}-bit]", exe_name, kb::util::BITNESS);
|
||||
LOG_DEBUG("Self handle: {}", reinterpret_cast<void*>(module_handle));
|
||||
LOG_DEBUG("Self handle: {}", module_handle);
|
||||
|
||||
// We need to hook functions in either mode
|
||||
kb::hook::init(true);
|
||||
|
||||
Reference in New Issue
Block a user