segatools/mercuryhook/mercury-dll.h

23 lines
496 B
C
Raw Normal View History

2021-12-21 05:02:17 +00:00
#pragma once
#include <windows.h>
#include "mercuryio/mercuryio.h"
struct mercury_dll {
uint16_t api_version;
HRESULT (*init)(void);
HRESULT (*poll)(void);
void (*get_opbtns)(uint8_t *opbtn);
void (*get_gamebtns)(uint16_t *player1, uint16_t *player2);
2021-12-30 18:57:05 +00:00
HRESULT (*elisabeth_init)(void);
2021-12-21 05:02:17 +00:00
};
struct mercury_dll_config {
wchar_t path[MAX_PATH];
};
extern struct mercury_dll mercury_dll;
HRESULT mercury_dll_init(const struct mercury_dll_config *cfg, HINSTANCE self);