mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Finished AC and ACT service serialization
This commit is contained in:
		
							parent
							
								
									3fd5c431f1
								
							
						
					
					
						commit
						89e4e49a63
					
				
					 11 changed files with 33 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -20,9 +20,13 @@ public:
 | 
			
		|||
        Interface(std::shared_ptr<Module> act, const char* name);
 | 
			
		||||
        ~Interface();
 | 
			
		||||
 | 
			
		||||
    private:
 | 
			
		||||
    protected:
 | 
			
		||||
        std::shared_ptr<Module> act;
 | 
			
		||||
    };
 | 
			
		||||
private:
 | 
			
		||||
    template <class Archive>
 | 
			
		||||
    inline void serialize(Archive& ar, const unsigned int file_version) { }
 | 
			
		||||
    friend class boost::serialization::access;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void InstallInterfaces(Core::System& system);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/act/act_a.h"
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
 | 
			
		||||
namespace Service::ACT {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -24,3 +25,5 @@ ACT_A::ACT_A(std::shared_ptr<Module> act) : Module::Interface(std::move(act), "a
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
} // namespace Service::ACT
 | 
			
		||||
 | 
			
		||||
SERIALIZE_EXPORT_IMPL(Service::ACT::ACT_A)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,6 +11,11 @@ namespace Service::ACT {
 | 
			
		|||
class ACT_A final : public Module::Interface {
 | 
			
		||||
public:
 | 
			
		||||
    explicit ACT_A(std::shared_ptr<Module> act);
 | 
			
		||||
private:
 | 
			
		||||
    SERVICE_SERIALIZATION(ACT_A, act)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace Service::ACT
 | 
			
		||||
 | 
			
		||||
BOOST_CLASS_EXPORT_KEY(Service::ACT::ACT_A)
 | 
			
		||||
BOOST_SERIALIZATION_CONSTRUCT(Service::ACT::ACT_A)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/act/act_u.h"
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
 | 
			
		||||
namespace Service::ACT {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -20,3 +21,5 @@ ACT_U::ACT_U(std::shared_ptr<Module> act) : Module::Interface(std::move(act), "a
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
} // namespace Service::ACT
 | 
			
		||||
 | 
			
		||||
SERIALIZE_EXPORT_IMPL(Service::ACT::ACT_U)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,6 +11,11 @@ namespace Service::ACT {
 | 
			
		|||
class ACT_U final : public Module::Interface {
 | 
			
		||||
public:
 | 
			
		||||
    explicit ACT_U(std::shared_ptr<Module> act);
 | 
			
		||||
private:
 | 
			
		||||
    SERVICE_SERIALIZATION(ACT_U, act)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace Service::ACT
 | 
			
		||||
 | 
			
		||||
BOOST_CLASS_EXPORT_KEY(Service::ACT::ACT_U)
 | 
			
		||||
BOOST_SERIALIZATION_CONSTRUCT(Service::ACT::ACT_U)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue