mirror of https://github.com/PCSX2/pcsx2.git
HW: Use more sensible variable names for logging
This commit is contained in:
parent
d13c7b6b3e
commit
e283831841
|
@ -293,18 +293,18 @@ void _hwWrite8(u32 mem, u8 value)
|
||||||
#endif
|
#endif
|
||||||
if (mem == SIO_TXFIFO)
|
if (mem == SIO_TXFIFO)
|
||||||
{
|
{
|
||||||
static bool iggy_newline = false;
|
static bool included_newline = false;
|
||||||
static char sio_buffer[1024];
|
static char sio_buffer[1024];
|
||||||
static int sio_count;
|
static int sio_count;
|
||||||
|
|
||||||
if (value == '\r')
|
if (value == '\r')
|
||||||
{
|
{
|
||||||
iggy_newline = true;
|
included_newline = true;
|
||||||
sio_buffer[sio_count++] = '\n';
|
sio_buffer[sio_count++] = '\n';
|
||||||
}
|
}
|
||||||
else if (!iggy_newline || (value != '\n'))
|
else if (!included_newline || (value != '\n'))
|
||||||
{
|
{
|
||||||
iggy_newline = false;
|
included_newline = false;
|
||||||
sio_buffer[sio_count++] = value;
|
sio_buffer[sio_count++] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,16 +126,16 @@ void iopHwWrite8_Page3( u32 addr, mem8_t val )
|
||||||
{
|
{
|
||||||
static char pbuf[1024];
|
static char pbuf[1024];
|
||||||
static int pidx;
|
static int pidx;
|
||||||
static bool iggy_newline = false;
|
static bool included_newline = false;
|
||||||
|
|
||||||
if (val == '\r')
|
if (val == '\r')
|
||||||
{
|
{
|
||||||
iggy_newline = true;
|
included_newline = true;
|
||||||
pbuf[pidx++] = '\n';
|
pbuf[pidx++] = '\n';
|
||||||
}
|
}
|
||||||
else if (!iggy_newline || (val != '\n'))
|
else if (!included_newline || (val != '\n'))
|
||||||
{
|
{
|
||||||
iggy_newline = false;
|
included_newline = false;
|
||||||
pbuf[pidx++] = val;
|
pbuf[pidx++] = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue