MemoryCardProtocol: Fix Wimplicit-fallthrough warnings.

This commit is contained in:
lightningterror 2022-11-19 07:51:43 +01:00
parent 3c4d48f45d
commit 5b583fefbc
1 changed files with 2 additions and 0 deletions

View File

@ -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;