Match CMemoryCardDriver::StartFileRead

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 14:56:25 +03:00
parent 8fd374a0bb
commit 50d7b3633f
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 13 additions and 1 deletions

View File

@ -549,7 +549,19 @@ void CMemoryCardDriver::StartFileDeleteAlt() {
UpdateFileDeleteAlt(result);
}
void CMemoryCardDriver::StartFileRead() {}
void CMemoryCardDriver::StartFileRead() {
x14_error = kE_OK;
x10_state = kS_FileRead;
ECardResult result = x100_mcFileInfos[x194_fileIdx].second.Open();
if (result != kCR_READY) {
UpdateFileRead(result);
return;
}
result = x100_mcFileInfos[x194_fileIdx].second.StartRead();
if (result != kCR_READY)
UpdateFileRead(result);
}
void CMemoryCardDriver::StartFileCreate() {}