Match CMemoryCardDriver::UpdateCardFormat

Former-commit-id: 23fd21ff1d
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 12:05:12 +03:00
parent ab500d3d22
commit 6bb106c522
1 changed files with 10 additions and 1 deletions

View File

@ -353,7 +353,16 @@ void CMemoryCardDriver::UpdateFileAltDeleteTransactional(ECardResult result) {
}
}
void CMemoryCardDriver::UpdateCardFormat(ECardResult) {}
void CMemoryCardDriver::UpdateCardFormat(ECardResult result) {
if (result == kCR_READY)
x10_state = kS_CardFormatted;
else if (result == kCR_BROKEN) {
x10_state = kS_CardFormatFailed;
x14_error = kE_CardIOError;
} else {
HandleCardError(result, kS_CardFormatFailed);
}
}
void CMemoryCardDriver::StartCardProbe() {}