1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-24 01:20:10 +01:00
segatools-hay1tsme/cxbhook/cxb-dll.h
2023-02-13 03:08:41 -05:00

25 lines
519 B
C

#pragma once
#include <windows.h>
#include <stdint.h>
#include "cxbio/cxbio.h"
struct cxb_dll {
uint16_t api_version;
HRESULT (*revio_init)(void);
void (*revio_poll)(uint16_t *opbtn);
void (*revio_get_coins)(long *coins);
void (*revio_set_coins)(int coins);
HRESULT (*led_init)(void);
void (*led_update)(int id, int color);
};
struct cxb_dll_config {
wchar_t path[MAX_PATH];
};
extern struct cxb_dll cxb_dll;
HRESULT cxb_dll_init(const struct cxb_dll_config *cfg, HINSTANCE self);