jadeite/game_payload/include/game.h
2023-08-05 09:28:36 +03:00

22 lines
513 B
C

#pragma once
#include <windows.h>
#define INVOKE_CALLBACK(callback, ...) if (callback) { callback(__VA_ARGS__); }
typedef void (*unityplayer_callback_t)(HMODULE unityModule);
struct game_data {
const char *base_module_name;
const char *assembly_path;
const char *txs_section_name;
const char *tvm_section_name;
unityplayer_callback_t unityplayer_callback;
};
void game_detect(struct game_data *buf);
void hi3_fill_data(struct game_data *buf);
void hsr_fill_data(struct game_data *buf);