mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 23:00:42 -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:
@@ -195,11 +195,11 @@ bool games::iidx::IIDXFMSerialHandle::open(LPCWSTR lpFileName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
log_info("iidx", "Opened COM2 (FM DEVICE)");
|
||||
log_info("iidx", "Opened COM2 (FM DEVICE / bi2a)");
|
||||
games::iidx::update_io_emulation_state(games::iidx::iidx_aio_emulation_state::bi2a_com2);
|
||||
|
||||
// ACIO device
|
||||
acio_emu.add_device(new FMSerialDevice());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ int games::iidx::IIDXFMSerialHandle::device_io(DWORD dwIoControlCode, LPVOID lpI
|
||||
}
|
||||
|
||||
bool games::iidx::IIDXFMSerialHandle::close() {
|
||||
log_info("iidx", "Closed COM2 (FM DEVICE)");
|
||||
log_info("iidx", "Closed COM2 (FM DEVICE / bi2a)");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user