mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	SVC: Enable CloseHandle, clean up DuplicateHandle
This commit is contained in:
		
							parent
							
								
									e8330dd162
								
							
						
					
					
						commit
						c4208c1171
					
				
					 1 changed files with 5 additions and 9 deletions
				
			
		|  | @ -131,9 +131,8 @@ static ResultCode SendSyncRequest(Handle handle) { | ||||||
| 
 | 
 | ||||||
| /// Close a handle
 | /// Close a handle
 | ||||||
| static ResultCode CloseHandle(Handle handle) { | static ResultCode CloseHandle(Handle handle) { | ||||||
|     // ImplementMe
 |     LOG_TRACE(Kernel_SVC, "Closing handle 0x%08X", handle); | ||||||
|     LOG_ERROR(Kernel_SVC, "(UNIMPLEMENTED) called handle=0x%08X", handle); |     return Kernel::g_handle_table.Close(handle); | ||||||
|     return RESULT_SUCCESS; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /// Wait for a handle to synchronize, timeout after the specified nanoseconds
 | /// Wait for a handle to synchronize, timeout after the specified nanoseconds
 | ||||||
|  | @ -445,12 +444,9 @@ static ResultCode CreateEvent(Handle* out_handle, u32 reset_type) { | ||||||
| 
 | 
 | ||||||
| /// Duplicates a kernel handle
 | /// Duplicates a kernel handle
 | ||||||
| static ResultCode DuplicateHandle(Handle* out, Handle handle) { | static ResultCode DuplicateHandle(Handle* out, Handle handle) { | ||||||
|     ResultVal<Handle> out_h = Kernel::g_handle_table.Duplicate(handle); |     CASCADE_RESULT(*out, Kernel::g_handle_table.Duplicate(handle)); | ||||||
|     if (out_h.Succeeded()) { |     LOG_TRACE(Kernel_SVC, "duplicated 0x%08X to 0x%08X", handle, *out); | ||||||
|         *out = *out_h; |     return RESULT_SUCCESS; | ||||||
|         LOG_TRACE(Kernel_SVC, "duplicated 0x%08X to 0x%08X", handle, *out); |  | ||||||
|     } |  | ||||||
|     return out_h.Code(); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /// Signals an event
 | /// Signals an event
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue