chusan: added chusanhook, led board fix, config added

credits go to @domeori https://dev.s-ul.net/domeori/segatools/-/tree/mr-imports
This commit is contained in:
2023-07-14 00:58:02 +02:00
parent 90a6f1be7c
commit 2a6a8bf8b2
32 changed files with 2253 additions and 17 deletions

View File

@ -101,13 +101,13 @@ static void chunithm_jvs_read_switches(void *ctx, struct io3_switch_state *out)
out->p1 = 0x0000;
out->p2 = 0x0000;
if (opbtn & 0x01) {
if (opbtn & CHUNI_IO_OPBTN_TEST) {
out->system = 0x80;
} else {
out->system = 0x00;
}
if (opbtn & 0x02) {
if (opbtn & CHUNI_IO_OPBTN_SERVICE) {
out->p1 |= 0x4000;
}