Match CMemoryCardDriver::GetGameFileStateInfo

Former-commit-id: eb3be0bc36
This commit is contained in:
Phillip Stephens 2022-10-11 10:12:00 -07:00
parent cc98c4bdaf
commit e8b2c502d4
1 changed files with 5 additions and 2 deletions

View File

@ -794,8 +794,11 @@ void SGameFileSlot::InitializeFromGameState() {
void SGameFileSlot::LoadGameState(int) {} void SGameFileSlot::LoadGameState(int) {}
const CGameState::GameFileStateInfo* CMemoryCardDriver::GetGameFileStateInfo(int) { const CGameState::GameFileStateInfo* CMemoryCardDriver::GetGameFileStateInfo(int saveIdx) {
return nullptr; if (xe4_fileSlots[saveIdx].null()) {
return nullptr;
}
return &xe4_fileSlots[saveIdx]->x944_fileInfo;
}; };
bool CMemoryCardDriver::GetCardFreeBytes() { bool CMemoryCardDriver::GetCardFreeBytes() {