mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Services: Initialize all state variables at bootup.
This commit is contained in:
		
							parent
							
								
									bbabed8e98
								
							
						
					
					
						commit
						e0cb85691a
					
				
					 8 changed files with 38 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -15,8 +15,8 @@
 | 
			
		|||
namespace Service {
 | 
			
		||||
namespace IR {
 | 
			
		||||
 | 
			
		||||
static Kernel::SharedPtr<Kernel::Event> handle_event = nullptr;
 | 
			
		||||
static Kernel::SharedPtr<Kernel::SharedMemory> shared_memory = nullptr;
 | 
			
		||||
static Kernel::SharedPtr<Kernel::Event> handle_event;
 | 
			
		||||
static Kernel::SharedPtr<Kernel::SharedMemory> shared_memory;
 | 
			
		||||
 | 
			
		||||
void GetHandles(Service::Interface* self) {
 | 
			
		||||
    u32* cmd_buff = Kernel::GetCommandBuffer();
 | 
			
		||||
| 
						 | 
				
			
			@ -41,6 +41,8 @@ void Init() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Shutdown() {
 | 
			
		||||
    shared_memory = nullptr;
 | 
			
		||||
    handle_event = nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace IR
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue