Added core serialization
This commit is contained in:
parent
dc04774ece
commit
ee2cae2093
5 changed files with 47 additions and 9 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <cstring>
|
||||
#include "boost/serialization/array.hpp"
|
||||
#include "boost/serialization/nvp.hpp"
|
||||
#include "boost/serialization/unique_ptr.hpp"
|
||||
#include "audio_core/dsp_interface.h"
|
||||
#include "common/archives.h"
|
||||
#include "common/assert.h"
|
||||
|
@ -107,11 +108,17 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
SERIALIZE_IMPL(MemorySystem::Impl)
|
||||
|
||||
MemorySystem::MemorySystem() : impl(std::make_unique<Impl>()) {}
|
||||
MemorySystem::~MemorySystem() = default;
|
||||
|
||||
template<class Archive>
|
||||
void MemorySystem::serialize(Archive & ar, const unsigned int file_version)
|
||||
{
|
||||
ar & impl;
|
||||
}
|
||||
|
||||
SERIALIZE_IMPL(MemorySystem)
|
||||
|
||||
void MemorySystem::SetCurrentPageTable(PageTable* page_table) {
|
||||
impl->current_page_table = page_table;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue