[Save State] Recover Disk Seek Address when loading from Zip

This commit is contained in:
LuigiBlood 2020-06-10 15:30:06 +02:00
parent c5c6167f05
commit 8bb117e4de
1 changed files with 5 additions and 0 deletions

View File

@ -2047,6 +2047,11 @@ bool CN64System::LoadState(const char * FileName)
//Extra Info v2 (Project64 2.4)
//Disk Interface Info
unzReadCurrentFile(file, m_Reg.m_DiskInterface, sizeof(uint32_t) * 22);
//Recover Disk Seek Address (if the save state is done while loading/saving data)
if (g_Disk)
DiskBMReadWrite(false);
//System Timers Info
m_SystemTimer.LoadData(file);
}