Fixed serialization runtime exceptions

This commit is contained in:
Hamish Milne 2020-01-11 16:33:48 +00:00 committed by zhupengfei
parent ca971ff31f
commit e4f05884c3
23 changed files with 140 additions and 24 deletions

View file

@ -24,6 +24,9 @@
#include "core/hle/service/nwm/uds_data.h"
#include "core/memory.h"
SERIALIZE_EXPORT_IMPL(Service::NWM::NWM_UDS)
SERVICE_CONSTRUCT_IMPL(Service::NWM::NWM_UDS)
namespace Service::NWM {
template <class Archive>
@ -34,7 +37,6 @@ void NWM_UDS::serialize(Archive& ar, const unsigned int) {
ar& received_beacons;
// wifi_packet_received set in constructor
}
SERIALIZE_IMPL(NWM_UDS)
namespace ErrCodes {
enum {

View file

@ -557,6 +557,7 @@ private:
template <class Archive>
void serialize(Archive& ar, const unsigned int);
friend class boost::serialization::access;
};
} // namespace Service::NWM