mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 14:50:41 -07:00
iidx: detect ldj/tdj I/O mismatch (#470)
## Link to GitHub Issue, if one exists #345 ## Description of change For IIDX31+, detect if BI2A or BI2X I/O emulation becomes active, and see if there is a mismatch between the -iidxtdj setting. Right now a mismatch results in warning in log + deferred error log, but in the future we could turn this into a fatal error and crash the game to make it more obvious. ## Testing Tested 4 combinations: 1. DLL in LDJ mode + -iidxtdj off (pass) 2. DLL in LDJ mode + -iidxtdj on (error) 3. DLL in TDJ mode + -iidxtdj off (error) 4. DLL in TDJ mode + -iidxtdj on (pass)
This commit is contained in:
@@ -120,6 +120,11 @@ namespace games::iidx {
|
||||
|
||||
static AIO_IOB2_BI2X_TDJ* __fastcall aioIob2Bi2xTDJ_Create(AIO_NMGR_IOB2 *nmgr, int a2) {
|
||||
if (!BI2X_PASSTHROUGH) {
|
||||
|
||||
log_info("bi2x_hook", "aioIob2Bi2xTDJ_Create called (TDJ I/O emulation active)");
|
||||
games::iidx::update_io_emulation_state(
|
||||
games::iidx::iidx_aio_emulation_state::bi2x_hook);
|
||||
|
||||
custom_node = new AIO_IOB2_BI2X_TDJ;
|
||||
memset(&custom_node->data, 0, sizeof(custom_node->data));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user