Match CMemoryCardDriver::StartMountCard

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 12:43:09 +03:00
parent 0a7858ac6b
commit e5832f4854
No known key found for this signature in database
GPG Key ID: E224F951761145F8
2 changed files with 8 additions and 1 deletions

View File

@ -55,6 +55,7 @@ public:
~CMemoryCardSys(); ~CMemoryCardSys();
static ECardResult GetResultCode(int); static ECardResult GetResultCode(int);
static ECardResult MountCard(EMemoryCardPort port);
static ProbeResults IsMemoryCardInserted(EMemoryCardPort); static ProbeResults IsMemoryCardInserted(EMemoryCardPort);
static ECardResult GetSerialNo(EMemoryCardPort port, long long& serialOut); static ECardResult GetSerialNo(EMemoryCardPort port, long long& serialOut);
static void UnmountCard(EMemoryCardPort); static void UnmountCard(EMemoryCardPort);

View File

@ -411,7 +411,13 @@ void CMemoryCardDriver::UpdateCardProbe() {
// } // }
} }
void CMemoryCardDriver::StartMountCard() {} void CMemoryCardDriver::StartMountCard() {
x10_state = kS_CardMount;
x14_error = kE_OK;
ECardResult result = CMemoryCardSys::MountCard(x0_cardPort);
if (result != kCR_READY)
UpdateMountCard(result);
}
void CMemoryCardDriver::StartCardCheck() {} void CMemoryCardDriver::StartCardCheck() {}