From 7d95d6faffdcbd6a4f2b1b2990fa7ff5851bb2d5 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 6 Jul 2011 20:16:51 +0300 Subject: [PATCH] sio: no DTR resets device tested on the real thing --- libpcsxcore/sio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index df130e81..12fd0bd7 100644 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -279,7 +279,7 @@ void sioWriteMode16(unsigned short value) { void sioWriteCtrl16(unsigned short value) { CtrlReg = value & ~RESET_ERR; if (value & RESET_ERR) StatReg &= ~IRQ; - if ((CtrlReg & SIO_RESET) || (!CtrlReg)) { + if ((CtrlReg & SIO_RESET) || !(CtrlReg & DTR)) { padst = 0; mcdst = 0; parp = 0; StatReg = TX_RDY | TX_EMPTY; psxRegs.interrupt &= ~(1 << PSXINT_SIO); -- 2.39.5