carol: fix ports

This commit is contained in:
2023-04-11 00:20:51 -04:00
parent 8c97dc09c0
commit ef00932c64
14 changed files with 308 additions and 143 deletions

View File

@ -12,8 +12,9 @@
#include "carolhook/carol-dll.h"
#include "carolhook/jvs.h"
#include "carolhook/touch.h"
#include "carolhook/controlbd.h"
#include "carolhook/ledbd.h"
#include "carolhook/serial.h"
#include "carolhook/controlbd.h"
#include "hook/process.h"
@ -30,10 +31,10 @@ static struct carol_hook_config carol_hook_cfg;
/*
COM Layout
01:(?) Touchscreen
01: Touchscreen
10: Aime reader
11: Control board
12(?): LED Board
11: LED board
12: LED Board
*/
static DWORD CALLBACK carol_pre_startup(void)
@ -81,9 +82,7 @@ static DWORD CALLBACK carol_pre_startup(void)
}
gfx_hook_init(&carol_hook_cfg.gfx);
gfx_d3d9_hook_init(&carol_hook_cfg.gfx, carol_hook_mod);
//serial_init();
gfx_d3d9_hook_init(&carol_hook_cfg.gfx, carol_hook_mod);
hr = touch_hook_init(&carol_hook_cfg.touch);
@ -91,6 +90,12 @@ static DWORD CALLBACK carol_pre_startup(void)
goto fail;
}
hr = ledbd_hook_init(&carol_hook_cfg.ledbd);
if (FAILED(hr)) {
goto fail;
}
hr = controlbd_hook_init(&carol_hook_cfg.controlbd);
if (FAILED(hr)) {