mirror of https://github.com/PCSX2/pcsx2.git
Sio: Fix Wunused-variable warning.
This commit is contained in:
parent
f2a9c8558b
commit
4a5f9df7bf
|
@ -528,8 +528,7 @@ void Sio2::SetRecv1(u32 value)
|
||||||
void Sio2::Pad()
|
void Sio2::Pad()
|
||||||
{
|
{
|
||||||
// Send PAD our current port, and get back whatever it says the first response byte should be.
|
// Send PAD our current port, and get back whatever it says the first response byte should be.
|
||||||
u8 commandByte = 0x01;
|
const u8 firstResponseByte = PADstartPoll(port, slot);
|
||||||
u8 firstResponseByte = PADstartPoll(port, slot);
|
|
||||||
fifoOut.push_back(firstResponseByte);
|
fifoOut.push_back(firstResponseByte);
|
||||||
// Some games will refuse to read ALL pads, if RECV1 is not set to the CONNECTED value when ANY pad is polled,
|
// Some games will refuse to read ALL pads, if RECV1 is not set to the CONNECTED value when ANY pad is polled,
|
||||||
// REGARDLESS of whether that pad is truly connected or not.
|
// REGARDLESS of whether that pad is truly connected or not.
|
||||||
|
@ -538,9 +537,9 @@ void Sio2::Pad()
|
||||||
// Then for every byte in fifoIn, pass to PAD and see what it kicks back to us.
|
// Then for every byte in fifoIn, pass to PAD and see what it kicks back to us.
|
||||||
while (!fifoIn.empty())
|
while (!fifoIn.empty())
|
||||||
{
|
{
|
||||||
u8 commandByte = fifoIn.front();
|
const u8 commandByte = fifoIn.front();
|
||||||
fifoIn.pop_front();
|
fifoIn.pop_front();
|
||||||
u8 responseByte = PADpoll(commandByte);
|
const u8 responseByte = PADpoll(commandByte);
|
||||||
fifoOut.push_back(responseByte);
|
fifoOut.push_back(responseByte);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue