mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-03-21 17:44:15 -05:00
42 lines
853 B
C
42 lines
853 B
C
#define LOG_MODULE "btsdk-hook-example"
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "btapi/hook-core.h"
|
|
#include "btapi/hook-main.h"
|
|
|
|
#include "core/log.h"
|
|
#include "core/thread.h"
|
|
|
|
void btapi_hook_core_thread_impl_set(
|
|
btapi_thread_create_t create,
|
|
btapi_thread_join_t join,
|
|
btapi_thread_destroy_t destroy)
|
|
{
|
|
core_thread_impl_set(create, join, destroy);
|
|
}
|
|
|
|
void btapi_hook_core_log_impl_set(
|
|
btapi_log_formatter_t misc,
|
|
btapi_log_formatter_t info,
|
|
btapi_log_formatter_t warning,
|
|
btapi_log_formatter_t fatal)
|
|
{
|
|
core_log_impl_set(misc, info, warning, fatal);
|
|
}
|
|
|
|
bool btapi_hook_main_init(
|
|
HMODULE game_module, struct property_node *property_node_config)
|
|
{
|
|
log_info("btapi_hook_main_init");
|
|
|
|
return true;
|
|
}
|
|
|
|
void btapi_hook_main_fini()
|
|
{
|
|
log_info("btapi_hook_main_fini");
|
|
} |