jadeite/game_payload/include/game.h

22 lines
513 B
C
Raw Permalink Normal View History

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