Match SGameFileSlot::LoadGameState

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 20:14:48 +03:00
parent eb3be0bc36
commit 8674f1e6a3
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 4 additions and 1 deletions

View File

@ -792,7 +792,10 @@ void SGameFileSlot::InitializeFromGameState() {
x944_fileInfo = CGameState::LoadGameFileState(x0_saveBuffer.data());
}
void SGameFileSlot::LoadGameState(int) {}
void SGameFileSlot::LoadGameState(int idx) {
CMemoryInStream r(x0_saveBuffer.data(), x0_saveBuffer.capacity());
gpMain->StreamNewGameState(r, idx);
}
const CGameState::GameFileStateInfo* CMemoryCardDriver::GetGameFileStateInfo(int saveIdx) {
if (xe4_fileSlots[saveIdx].null()) {