Match CMemoryCardDriver::UpdateCardFormat

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 12:05:12 +03:00
parent bd4afb5aae
commit 23fd21ff1d
No known key found for this signature in database
GPG Key ID: E224F951761145F8
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() {}