kernel: Move serialization code out of headers. (#7312)
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
#include "core/hle/kernel/kernel.h"
|
||||
#include "core/hle/kernel/object.h"
|
||||
|
||||
#include "common/archives.h"
|
||||
|
||||
SERIALIZE_EXPORT_IMPL(Kernel::Object)
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
Object::Object(KernelSystem& kernel) : object_id{kernel.GenerateObjectID()} {}
|
||||
@@ -37,4 +41,10 @@ bool Object::IsWaitable() const {
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
template <class Archive>
|
||||
void Object::serialize(Archive& ar, const unsigned int) {
|
||||
ar& object_id;
|
||||
}
|
||||
SERIALIZE_IMPL(Object)
|
||||
|
||||
} // namespace Kernel
|
||||
|
||||
Reference in New Issue
Block a user