mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	service: added additional hack to return success on unimplemented service calls
This commit is contained in:
		
							parent
							
								
									b08b3c154f
								
							
						
					
					
						commit
						545e6919ce
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -87,12 +87,20 @@ public: | |||
|         if (itr == m_functions.end()) { | ||||
|             ERROR_LOG(OSHLE, "Unknown/unimplemented function: port = %s, command = 0x%08X!",  | ||||
|                 GetPortName(), cmd_buff[0]); | ||||
|             return 0; // TODO(bunnei): Hack - ignore error
 | ||||
| 
 | ||||
|             // TODO(bunnei): Hack - ignore error
 | ||||
|             u32* cmd_buff = Service::GetCommandBuffer(); | ||||
|             cmd_buff[1] = 0; | ||||
|             return 0;  | ||||
|         } | ||||
|         if (itr->second.func == NULL) { | ||||
|             ERROR_LOG(OSHLE, "Unimplemented function: port = %s, name = %s!",  | ||||
|                 GetPortName(), itr->second.name.c_str()); | ||||
|             return 0; // TODO(bunnei): Hack - ignore error
 | ||||
| 
 | ||||
|             // TODO(bunnei): Hack - ignore error
 | ||||
|             u32* cmd_buff = Service::GetCommandBuffer(); | ||||
|             cmd_buff[1] = 0; | ||||
|             return 0;  | ||||
|         }  | ||||
| 
 | ||||
|         itr->second.func(this); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue