Almost match CMemoryCardDriver::BuildNewFileSlot

Former-commit-id: cdfda89fa6
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-11 19:08:45 +03:00
parent 4f2a8704db
commit b079ad7432
2 changed files with 27 additions and 5 deletions

View File

@@ -20,6 +20,8 @@ public:
CGameState();
CGameState(CInputStream& in, int saveIdx);
void ReadSystemOptions(CInputStream& in);
rstl::rc_ptr< CPlayerState >& PlayerState();
CAssetId CurrentWorldAssetId();
void WriteBackupBuf();
@@ -30,6 +32,8 @@ public:
uint& SaveIdx() { return x20c_saveIdx; }
u64& CardSerial() { return x210_cardSerial; }
rstl::vector< uchar >& BackupBuf() { return x218_backupBuf; }
u32 GetFileIdx() const { return x20c_saveIdx; }
void SetFileIdx(u32 idx) { x20c_saveIdx = idx; }
void SetCardSerial(u64 serial) { x210_cardSerial = serial; }
u64 GetCardSerial() const { return x210_cardSerial; }