mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Kernel: Capture SharedMemory attributes at creation, not when mapping
This commit is contained in:
		
							parent
							
								
									088f6ae2c6
								
							
						
					
					
						commit
						c96f22490a
					
				
					 7 changed files with 51 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -34,7 +34,9 @@ void Init() {
 | 
			
		|||
    AddService(new IR_U_Interface);
 | 
			
		||||
    AddService(new IR_User_Interface);
 | 
			
		||||
 | 
			
		||||
    shared_memory = SharedMemory::Create("IR:SharedMemory");
 | 
			
		||||
    using Kernel::MemoryPermission;
 | 
			
		||||
    shared_memory = SharedMemory::Create(0x1000, Kernel::MemoryPermission::ReadWrite,
 | 
			
		||||
            Kernel::MemoryPermission::ReadWrite, "IR:SharedMemory");
 | 
			
		||||
 | 
			
		||||
    // Create event handle(s)
 | 
			
		||||
    handle_event  = Event::Create(RESETTYPE_ONESHOT, "IR:HandleEvent");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue