mirror of https://github.com/PrimeDecomp/prime.git
Add CMemoryCardDriver::ExportPersistentOptions
This commit is contained in:
parent
46335059ec
commit
93ef9574e1
|
@ -14,6 +14,7 @@ public:
|
|||
CSystemOptions();
|
||||
explicit CSystemOptions(CInputStream&);
|
||||
~CSystemOptions();
|
||||
void PutTo(COutputStream&);
|
||||
|
||||
void SetHasFusion(bool v);
|
||||
bool GetHasFusion() const { return xd0_28_fusionSuitActive; }
|
||||
|
|
|
@ -747,7 +747,15 @@ void CMemoryCardDriver::ImportPersistentOptions() {
|
|||
gpGameState->ImportPersistentOptions(opts);
|
||||
}
|
||||
|
||||
void CMemoryCardDriver::ExportPersistentOptions() {}
|
||||
void CMemoryCardDriver::ExportPersistentOptions() {
|
||||
u8* data = x30_systemData.data();
|
||||
CMemoryInStream r(data, x30_systemData.capacity());
|
||||
CSystemOptions opts(r);
|
||||
gpGameState->ExportPersistentOptions(opts);
|
||||
|
||||
CMemoryStreamOut w(data, x30_systemData.capacity());
|
||||
opts.PutTo(w);
|
||||
}
|
||||
|
||||
// SSaveHeader::SSaveHeader(int)
|
||||
|
||||
|
|
Loading…
Reference in New Issue