2023-06-06 00:23:08 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
2023-06-08 20:13:21 +03:00
|
|
|
#define INVOKE_CALLBACK(callback, ...) if (callback) { callback(__VA_ARGS__); }
|
|
|
|
|
|
|
|
|
|
typedef void (*unityplayer_callback_t)(HMODULE unityModule);
|
|
|
|
|
|
2023-06-06 00:23:08 +03:00
|
|
|
struct game_data {
|
2023-08-04 00:19:02 +03:00
|
|
|
const char *base_module_name;
|
2023-08-05 09:28:36 +03:00
|
|
|
const char *assembly_path;
|
2023-08-04 22:17:31 +03:00
|
|
|
const char *txs_section_name;
|
2023-06-06 00:23:08 +03:00
|
|
|
const char *tvm_section_name;
|
2023-06-08 20:13:21 +03:00
|
|
|
|
|
|
|
|
unityplayer_callback_t unityplayer_callback;
|
2023-06-06 00:23:08 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void game_detect(struct game_data *buf);
|
2023-06-06 21:14:21 +03:00
|
|
|
|
|
|
|
|
void hi3_fill_data(struct game_data *buf);
|
2023-06-08 18:36:22 +03:00
|
|
|
void hsr_fill_data(struct game_data *buf);
|