mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-17 04:17:15 +01:00
service/cecd: Add missing SessionData serialization
This commit is contained in:
parent
7e8041df28
commit
57efc41973
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
SERVICE_CONSTRUCT_IMPL(Service::CECD::Module)
|
SERVICE_CONSTRUCT_IMPL(Service::CECD::Module)
|
||||||
SERIALIZE_EXPORT_IMPL(Service::CECD::Module)
|
SERIALIZE_EXPORT_IMPL(Service::CECD::Module)
|
||||||
|
SERIALIZE_EXPORT_IMPL(Service::CECD::Module::SessionData)
|
||||||
|
|
||||||
namespace Service::CECD {
|
namespace Service::CECD {
|
||||||
|
|
||||||
|
@ -248,6 +248,19 @@ public:
|
|||||||
FileSys::Path path;
|
FileSys::Path path;
|
||||||
|
|
||||||
std::unique_ptr<FileSys::FileBackend> file;
|
std::unique_ptr<FileSys::FileBackend> file;
|
||||||
|
|
||||||
|
private:
|
||||||
|
template <class Archive>
|
||||||
|
void serialize(Archive& ar, const unsigned int) {
|
||||||
|
ar& boost::serialization::base_object<Kernel::SessionRequestHandler::SessionDataBase>(
|
||||||
|
*this);
|
||||||
|
ar& ncch_program_id;
|
||||||
|
ar& data_path_type;
|
||||||
|
ar& open_mode.raw;
|
||||||
|
ar& path;
|
||||||
|
ar& file;
|
||||||
|
}
|
||||||
|
friend class boost::serialization::access;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interface : public ServiceFramework<Interface, SessionData> {
|
class Interface : public ServiceFramework<Interface, SessionData> {
|
||||||
@ -626,3 +639,4 @@ void InstallInterfaces(Core::System& system);
|
|||||||
|
|
||||||
SERVICE_CONSTRUCT(Service::CECD::Module)
|
SERVICE_CONSTRUCT(Service::CECD::Module)
|
||||||
BOOST_CLASS_EXPORT_KEY(Service::CECD::Module)
|
BOOST_CLASS_EXPORT_KEY(Service::CECD::Module)
|
||||||
|
BOOST_CLASS_EXPORT_KEY(Service::CECD::Module::SessionData)
|
||||||
|
Loading…
Reference in New Issue
Block a user