mirror of
https://github.com/PabloMK7/citra.git
synced 2025-11-03 23:28:48 +00:00
Serialize ArchiveManager and other code review actions
This commit is contained in:
parent
04aa351c40
commit
6760ea18b6
43 changed files with 102 additions and 67 deletions
|
|
@ -22,6 +22,8 @@ void Module::serialize(Archive& ar, const unsigned int) {
|
|||
ar& tag_out_of_range_event;
|
||||
ar& nfc_tag_state;
|
||||
ar& nfc_status;
|
||||
ar& amiibo_data;
|
||||
ar& amiibo_in_range;
|
||||
}
|
||||
SERIALIZE_IMPL(Module)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
#include <boost/serialization/binary_object.hpp>
|
||||
#include "common/common_types.h"
|
||||
#include "core/hle/service/service.h"
|
||||
|
||||
|
|
@ -35,6 +36,13 @@ struct AmiiboData {
|
|||
u16_be model_number;
|
||||
u8 series;
|
||||
INSERT_PADDING_BYTES(0x1C1);
|
||||
|
||||
private:
|
||||
template <class Archive>
|
||||
void serialize(Archive& ar, const unsigned int) {
|
||||
ar& boost::serialization::make_binary_object(this, sizeof(AmiiboData));
|
||||
}
|
||||
friend class boost::serialization::access;
|
||||
};
|
||||
static_assert(sizeof(AmiiboData) == 0x21C, "AmiiboData is an invalid size");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue