Match CMemoryCardDriver::WriteBackupBuf

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 12:03:10 +03:00
parent fecef57a18
commit d780a22b4e
No known key found for this signature in database
GPG Key ID: E224F951761145F8
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@ public:
rstl::rc_ptr< CPlayerState >& PlayerState();
CAssetId CurrentWorldAssetId();
void WriteBackupBuf();
CSystemOptions& SystemOptions() { return xa8_systemOptions; }
CGameOptions& GameOptions() { return x17c_gameOptions; }
@ -29,6 +30,8 @@ public:
uint& SaveIdx() { return x20c_saveIdx; }
u64& CardSerial() { return x210_cardSerial; }
rstl::vector< uchar >& BackupBuf() { return x218_backupBuf; }
void SetCardSerial(u64 serial) { x210_cardSerial = serial; }
u64 GetCardSerial() const { return x210_cardSerial; }
struct GameFileStateInfo {
double x0_playTime;

View File

@ -338,7 +338,10 @@ void CMemoryCardDriver::StartFileRenameBtoA() {
}
}
void CMemoryCardDriver::WriteBackupBuf() {}
void CMemoryCardDriver::WriteBackupBuf() {
gpGameState->WriteBackupBuf();
gpGameState->SetCardSerial(x28_cardSerial);
}
void CMemoryCardDriver::UpdateFileAltDeleteTransactional(ECardResult) {}