1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-28 00:10:51 +01:00

Update BIO2 IIDX emulation to support watchdog poll

This commit is contained in:
Will Toohey 2023-10-09 21:01:15 +10:00 committed by icex2
parent 5c08e966d9
commit 2920e2b2cf
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ enum bio2_bi2a_cmd {
BIO2_BI2A_CMD_INIT = 0x0100,
BIO2_BI2A_CMD_WATCHDOG = 0x0120,
BIO2_BI2A_CMD_POLL = 0x0152, // For IIDX
BIO2_BI2A_CMD_POLL_WD = 0x0153, // For IIDX
// For games using libacio for BIO2 communication
BIO2_BI2A_CMD_ACIO_POLL_NOWD = 0x0112,
BIO2_BI2A_CMD_ACIO_POLL_WD = 0x0113,
@ -18,4 +19,4 @@ enum bio2_bi2a_cmd {
BIO2_BI2A_CMD_TAPELED_SEND = 0x0141,
};
#endif
#endif

View File

@ -91,11 +91,12 @@ void bio2_emu_bi2a_dispatch_request(
break;
case BIO2_BI2A_CMD_WATCHDOG:
log_misc("BIO2_BI2A_CMD_WATCHDOGX(%d)", req->addr);
log_misc("BIO2_BI2A_CMD_WATCHDOG(%d)", req->addr);
bio2_emu_bi2a_send_status(&bio2port->acio, req, 0x00);
break;
case BIO2_BI2A_CMD_POLL:
case BIO2_BI2A_CMD_POLL_WD:
// log_misc("BIO2_BI2A_CMD_POLL");
bio2_emu_bi2a_send_state(&bio2port->acio, req);
break;