Implement shared resources fix for HSR
This commit is contained in:
@ -11,12 +11,18 @@ enum game_id {
|
||||
GAME_HSR_CN
|
||||
};
|
||||
|
||||
#define INVOKE_CALLBACK(callback, ...) if (callback) { callback(__VA_ARGS__); }
|
||||
|
||||
typedef void (*unityplayer_callback_t)(HMODULE unityModule);
|
||||
|
||||
struct game_data {
|
||||
enum game_id id; // Temporary
|
||||
const char *name;
|
||||
const char *assembly_path;
|
||||
const char *tp6_section_name; // Unused for now
|
||||
const char *tvm_section_name;
|
||||
|
||||
unityplayer_callback_t unityplayer_callback;
|
||||
};
|
||||
|
||||
void game_detect(struct game_data *buf);
|
||||
|
||||
Reference in New Issue
Block a user