Add carolhook for Wonderland Wars

This commit is contained in:
2022-12-10 22:01:52 -05:00
committed by Hay1tsme
parent 04ca905467
commit 376dad0bc8
29 changed files with 1296 additions and 1 deletions

22
carolhook/carol-dll.h Normal file
View File

@ -0,0 +1,22 @@
#pragma once
#include <windows.h>
#include "carolio/carolio.h"
struct carol_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 (*touch_init)();
HRESULT (*controlbd_init)();
};
struct carol_dll_config {
wchar_t path[MAX_PATH];
};
extern struct carol_dll carol_dll;
HRESULT carol_dll_init(const struct carol_dll_config *cfg, HINSTANCE self);