mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 11:43:56 +00:00
Support afd endpoint serialization
This commit is contained in:
@@ -1046,6 +1046,13 @@ void windows_emulator::serialize(utils::buffer_serializer& buffer) const
|
||||
|
||||
void windows_emulator::deserialize(utils::buffer_deserializer& buffer)
|
||||
{
|
||||
buffer.register_factory<emulator_wrapper>([this]
|
||||
{
|
||||
return emulator_wrapper{
|
||||
.emu = &this->emu(),
|
||||
};
|
||||
});
|
||||
|
||||
buffer.register_factory<emulator_thread>([this]
|
||||
{
|
||||
return emulator_thread(this->emu());
|
||||
|
||||
Reference in New Issue
Block a user