mirror of https://github.com/JorjBauer/aiie.git
flush any cached changes before serializing
This commit is contained in:
parent
94fc3f8077
commit
845a0f6175
|
@ -17,7 +17,8 @@ const char *WozSerializer::diskName()
|
|||
|
||||
bool WozSerializer::Serialize(int8_t fd)
|
||||
{
|
||||
// FIXME: if trackDirty is set, we MUST flush first before exiting!
|
||||
// If we're being asked to serialize, make sure we've flushed any data first
|
||||
flush();
|
||||
|
||||
g_filemanager->writeByte(fd, WOZMAGIC);
|
||||
|
||||
|
|
Loading…
Reference in New Issue