Match CMemoryCardDriver::CheckCardCapacity

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 14:07:44 +03:00
parent 72155084fa
commit d7cf2ebdde
No known key found for this signature in database
GPG Key ID: E224F951761145F8
2 changed files with 8 additions and 3 deletions

View File

@ -110,8 +110,8 @@ private:
CAssetId xc_saveIcon1;
EState x10_state;
EError x14_error;
int x18_cardFreeBytes;
int x1c_cardFreeFiles;
uint x18_cardFreeBytes;
uint x1c_cardFreeFiles;
uint x20_fileTime;
long long x28_cardSerial;
rstl::reserved_vector< u8, 174 > x30_systemData;

View File

@ -431,7 +431,12 @@ void CMemoryCardDriver::ClearError() {
x14_error = kE_OK;
}
void CMemoryCardDriver::CheckCardCapacity() {}
void CMemoryCardDriver::CheckCardCapacity() {
if (x18_cardFreeBytes >= 0x2000 && x1c_cardFreeFiles >= 1) {
return;
}
x14_error = kE_CardStillFull;
}
void CMemoryCardDriver::NoCardFound() {}