Fixed TAS movie serialization
This commit is contained in:
parent
ac37de10fc
commit
7ff985cef9
5 changed files with 39 additions and 37 deletions
|
@ -88,15 +88,11 @@ u16 GetResolutionScaleFactor() {
|
|||
}
|
||||
}
|
||||
|
||||
void Save(std::ostream& stream) {
|
||||
oarchive oa{stream};
|
||||
oa& Pica::g_state;
|
||||
}
|
||||
|
||||
void Load(std::istream& stream) {
|
||||
iarchive ia{stream};
|
||||
ia& Pica::g_state;
|
||||
// TODO: Flush/reset things
|
||||
template <class Archive>
|
||||
void serialize(Archive& ar, const unsigned int) {
|
||||
ar& Pica::g_state;
|
||||
}
|
||||
|
||||
} // namespace VideoCore
|
||||
|
||||
SERIALIZE_IMPL(VideoCore)
|
||||
|
|
|
@ -62,7 +62,7 @@ void RequestScreenshot(void* data, std::function<void()> callback,
|
|||
|
||||
u16 GetResolutionScaleFactor();
|
||||
|
||||
void Save(std::ostream& stream);
|
||||
void Load(std::istream& stream);
|
||||
template <class Archive>
|
||||
void serialize(Archive& ar, const unsigned int file_version);
|
||||
|
||||
} // namespace VideoCore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue