mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	service/cecd: Add missing SessionData serialization
This commit is contained in:
		
							parent
							
								
									7e8041df28
								
							
						
					
					
						commit
						57efc41973
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue