Match CMemoryCardDriver::WriteBackupBuf

Former-commit-id: d780a22b4e
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 12:03:10 +03:00
parent 7a2928b531
commit 165cc200e4
2 changed files with 7 additions and 1 deletions

View File

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