Fix Linux building + some warning fixes

This commit is contained in:
987123879113 2022-06-09 13:13:43 +09:00
parent 79f5cac673
commit 89db85faf6
6 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ void LinuxPipeThread::ExecuteTaskInThread()
{
ConsoleColorScope cs(m_color);
Console.WriteRaw(fromUTF8(buffer));
Console.WriteRaw(fromUTF8(buffer).c_str());
}
}
}

View File

@ -139,7 +139,7 @@ namespace usb_python2
#ifdef PCSX2_DEVBUILD
printf("acio_device response: ");
for (int i = 0; i < response.size(); i++)
for (size_t i = 0; i < response.size(); i++)
{
printf("%02x ", response[i]);
}

View File

@ -39,8 +39,8 @@ namespace usb_python2
resp[0] = 0; // Status
int8_t ffb1 = packet[6]; // Controls X?
int8_t ffb2 = packet[7];
int8_t ffb3 = packet[8];
//int8_t ffb2 = packet[7];
//int8_t ffb3 = packet[8];
int8_t ffb4 = packet[9];
int16_t* val = (int16_t*)&resp[2];

View File

@ -693,7 +693,7 @@ namespace usb_python2
#ifdef PCSX2_DEVBUILD
Python2Con.WriteLn("p2io: P2IO_CMD_SCI_WRITE: ");
for (auto i = 0; i < s->buf.size(); i++)
for (size_t i = 0; i < s->buf.size(); i++)
{
printf("%02x ", s->buf[i]);
}
@ -734,7 +734,7 @@ namespace usb_python2
{
#ifdef PCSX2_DEVBUILD
printf("usb_python2_handle_data %02x\n", s->buf.size());
for (auto i = 0; i < s->buf.size(); i++)
for (size_t i = 0; i < s->buf.size(); i++)
{
printf("%02x ", s->buf[i]);
}