mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 13:20:03 +00:00 
			
		
		
		
	Kernel/Events: Log an error when trying to create Pulse events and timers.
Related to #1904
This commit is contained in:
		
							parent
							
								
									fb13bfe693
								
							
						
					
					
						commit
						4ab8692475
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		|  | @ -22,6 +22,11 @@ SharedPtr<Event> Event::Create(ResetType reset_type, std::string name) { | |||
|     evt->reset_type = reset_type; | ||||
|     evt->name = std::move(name); | ||||
| 
 | ||||
|     if (reset_type == ResetType::Pulse) { | ||||
|         LOG_ERROR(Kernel, "Unimplemented event reset type Pulse"); | ||||
|         UNIMPLEMENTED(); | ||||
|     } | ||||
| 
 | ||||
|     return evt; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,6 +31,11 @@ SharedPtr<Timer> Timer::Create(ResetType reset_type, std::string name) { | |||
|     timer->interval_delay = 0; | ||||
|     timer->callback_handle = timer_callback_handle_table.Create(timer).MoveFrom(); | ||||
| 
 | ||||
|     if (reset_type == ResetType::Pulse) { | ||||
|         LOG_ERROR(Kernel, "Unimplemented timer reset type Pulse"); | ||||
|         UNIMPLEMENTED(); | ||||
|     } | ||||
| 
 | ||||
|     return timer; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue