WIP: bemanitools 6
highly WIP, what’s “working”: - iidxhook 9 to 24 - launcher - inject
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#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");
|
||||
}
|
||||
Reference in New Issue
Block a user