mirror of https://github.com/PCSX2/pcsx2.git
MemoryCardProtocol: Fix Wimplicit-fallthrough warnings.
This commit is contained in:
parent
3c4d48f45d
commit
5b583fefbc
|
@ -292,6 +292,7 @@ u8 MemoryCardProtocol::PS1Read(u8 data)
|
|||
case 10:
|
||||
ps1McState.checksum = ps1McState.sectorAddrMSB ^ ps1McState.sectorAddrLSB;
|
||||
mcd->Read(ps1McState.buf.data(), ps1McState.buf.size());
|
||||
[[fallthrough]];
|
||||
default:
|
||||
ret = ps1McState.buf.at(ps1McState.currentByte - 10);
|
||||
ps1McState.checksum ^= ret;
|
||||
|
@ -369,6 +370,7 @@ u8 MemoryCardProtocol::PS1Write(u8 data)
|
|||
break;
|
||||
case 6:
|
||||
ps1McState.checksum = ps1McState.sectorAddrMSB ^ ps1McState.sectorAddrLSB;
|
||||
[[fallthrough]];
|
||||
default:
|
||||
ps1McState.buf.at(ps1McState.currentByte - 6) = data;
|
||||
ps1McState.checksum ^= data;
|
||||
|
|
Loading…
Reference in New Issue