mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-12-18 06:45:53 +01:00
32596acab7
These never get called at the moment, so we have no way of guaranteeing that any existing implementations are even correct. If we do decide to start emulating the coin blocker then we will need to advance the API versions, which will (hopefully) force any third-party devs to test their coin blocker code before opting in.
25 lines
590 B
C
25 lines
590 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include "divaio/divaio.h"
|
|
|
|
struct diva_dll {
|
|
uint16_t api_version;
|
|
HRESULT (*jvs_init)(void);
|
|
void (*jvs_poll)(uint8_t *opbtn, uint8_t *beams);
|
|
void (*jvs_read_coin_counter)(uint16_t *total);
|
|
HRESULT (*slider_init)(void);
|
|
void (*slider_start)(diva_io_slider_callback_t callback);
|
|
void (*slider_stop)(void);
|
|
void (*slider_set_leds)(const uint8_t *rgb);
|
|
};
|
|
|
|
struct diva_dll_config {
|
|
wchar_t path[MAX_PATH];
|
|
};
|
|
|
|
extern struct diva_dll diva_dll;
|
|
|
|
HRESULT diva_dll_init(const struct diva_dll_config *cfg, HINSTANCE self);
|