Fixed file services serialization

This commit is contained in:
Hamish Milne 2020-01-16 00:53:20 +00:00 committed by zhupengfei
parent c24ea0f0ee
commit 2217b3558d
6 changed files with 26 additions and 14 deletions

View file

@ -306,7 +306,7 @@ public:
}
private:
bool Open(const std::string& filename, const char openmode[], int flags = 0);
bool Open();
std::FILE* m_file = nullptr;
bool m_good = true;
@ -330,6 +330,7 @@ private:
ar >> flags;
u64 pos;
ar >> pos;
Open();
Seek(pos, SEEK_SET);
}