mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	remove GetCurrentModule() functions in HLE Services
This commit is contained in:
		
							parent
							
								
									4ee914c7a8
								
							
						
					
					
						commit
						9d53136f20
					
				
					 14 changed files with 99 additions and 69 deletions
				
			
		| 
						 | 
				
			
			@ -12,28 +12,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Service::IR {
 | 
			
		||||
 | 
			
		||||
static std::weak_ptr<IR_RST> current_ir_rst;
 | 
			
		||||
static std::weak_ptr<IR_USER> current_ir_user;
 | 
			
		||||
 | 
			
		||||
void ReloadInputDevices() {
 | 
			
		||||
    if (auto ir_user = current_ir_user.lock())
 | 
			
		||||
        ir_user->ReloadInputDevices();
 | 
			
		||||
 | 
			
		||||
    if (auto ir_rst = current_ir_rst.lock())
 | 
			
		||||
        ir_rst->ReloadInputDevices();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void InstallInterfaces(Core::System& system) {
 | 
			
		||||
    auto& service_manager = system.ServiceManager();
 | 
			
		||||
    std::make_shared<IR_U>()->InstallAsService(service_manager);
 | 
			
		||||
 | 
			
		||||
    auto ir_user = std::make_shared<IR_USER>();
 | 
			
		||||
    ir_user->InstallAsService(service_manager);
 | 
			
		||||
    current_ir_user = ir_user;
 | 
			
		||||
 | 
			
		||||
    auto ir_rst = std::make_shared<IR_RST>();
 | 
			
		||||
    ir_rst->InstallAsService(service_manager);
 | 
			
		||||
    current_ir_rst = ir_rst;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace Service::IR
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,9 +14,6 @@ class ServiceManager;
 | 
			
		|||
 | 
			
		||||
namespace Service::IR {
 | 
			
		||||
 | 
			
		||||
/// Reload input devices. Used when input configuration changed
 | 
			
		||||
void ReloadInputDevices();
 | 
			
		||||
 | 
			
		||||
void InstallInterfaces(Core::System& system);
 | 
			
		||||
 | 
			
		||||
} // namespace Service::IR
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue