mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Event: Fixed some bugs and cleanup (Subv)
This commit is contained in:
		
							parent
							
								
									1f7a04f05a
								
							
						
					
					
						commit
						e4a5d8ad4f
					
				
					 4 changed files with 16 additions and 57 deletions
				
			
		| 
						 | 
				
			
			@ -50,8 +50,8 @@ void Initialize(Service::Interface* self) {
 | 
			
		|||
    cmd_buff[3] = notification_event_handle;
 | 
			
		||||
    cmd_buff[4] = pause_event_handle;
 | 
			
		||||
 | 
			
		||||
    Kernel::SetEventLocked(notification_event_handle, true);
 | 
			
		||||
    Kernel::SetEventLocked(pause_event_handle, false); // Fire start event
 | 
			
		||||
    Kernel::ClearEvent(notification_event_handle);
 | 
			
		||||
    Kernel::SignalEvent(pause_event_handle); // Fire start event
 | 
			
		||||
 | 
			
		||||
    _assert_msg_(KERNEL, (0 != lock_handle), "Cannot initialize without lock");
 | 
			
		||||
    Kernel::ReleaseMutex(lock_handle);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ static void GetProcSemaphore(Service::Interface* self) {
 | 
			
		|||
 | 
			
		||||
    // TODO(bunnei): Change to a semaphore once these have been implemented
 | 
			
		||||
    g_event_handle = Kernel::CreateEvent(RESETTYPE_ONESHOT, "SRV:Event");
 | 
			
		||||
    Kernel::SetEventLocked(g_event_handle, false);
 | 
			
		||||
    Kernel::ClearEvent(g_event_handle);
 | 
			
		||||
 | 
			
		||||
    cmd_buff[1] = 0; // No error
 | 
			
		||||
    cmd_buff[3] = g_event_handle;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue