citra-emu
/
citra-canary
Archived
1
0
Fork 0

Correctly register AddressArbiter as a type of WakeupCallback

This commit is contained in:
Hamish Milne 2020-04-17 14:11:58 +01:00
parent 7af4b1a18e
commit f5b23eff4b
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#include <boost/serialization/shared_ptr.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/version.hpp>
#include "common/common_types.h"
#include "core/hle/kernel/object.h"
#include "core/hle/kernel/thread.h"
@ -81,6 +82,9 @@ private:
template <class Archive>
void serialize(Archive& ar, const unsigned int file_version) {
ar& boost::serialization::base_object<Object>(*this);
if (file_version > 0) {
ar& boost::serialization::base_object<WakeupCallback>(*this);
}
ar& name;
ar& waiting_threads;
}
@ -89,4 +93,5 @@ private:
} // namespace Kernel
BOOST_CLASS_EXPORT_KEY(Kernel::AddressArbiter)
BOOST_CLASS_VERSION(Kernel::AddressArbiter, 1)
CONSTRUCT_KERNEL_OBJECT(Kernel::AddressArbiter)