Add CMemoryCardDriver::UpdateMountCard

Former-commit-id: 4b98d8c3ae
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 02:04:24 +03:00
parent 3abff9b9c6
commit 2d98788360
1 changed files with 12 additions and 1 deletions

View File

@ -130,7 +130,18 @@ void CMemoryCardDriver::HandleCardError(ECardResult result, EState state) {
}
}
void CMemoryCardDriver::UpdateMountCard(ECardResult) {}
void CMemoryCardDriver::UpdateMountCard(ECardResult result) {
if (result == kCR_READY) {
x10_state = kS_CardMountDone;
StartCardCheck();
} else if (result == kCR_BROKEN) {
x10_state = kS_CardMountDone;
x14_error = kE_CardBroken;
StartCardCheck();
} else {
HandleCardError(result, kS_CardMountFailed);
}
}
void CMemoryCardDriver::UpdateCardCheck(ECardResult) {}