Match CMemoryCardDriver::CheckCardCapacity

Former-commit-id: d7cf2ebdde
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 14:07:44 +03:00
parent d5b10b0daa
commit aac70facff
2 changed files with 8 additions and 3 deletions

View File

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

View File

@ -431,7 +431,12 @@ void CMemoryCardDriver::ClearError() {
x14_error = kE_OK; 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() {} void CMemoryCardDriver::NoCardFound() {}