From: notaz Date: Wed, 6 Jul 2011 17:16:51 +0000 (+0300) Subject: sio: no DTR resets device X-Git-Tag: r9~42 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d95d6faffdcbd6a4f2b1b2990fa7ff5851bb2d5;p=pcsx_rearmed.git sio: no DTR resets device tested on the real thing --- 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);