mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Stub QTM_S:GetHeadtrackingInfo (#7166)
* Stub QTM_S:GetHeadtrackingInfo * Suggestions
This commit is contained in:
		
							parent
							
								
									e28c2a390c
								
							
						
					
					
						commit
						e9936e01c2
					
				
					 2 changed files with 15 additions and 1 deletions
				
			
		|  | @ -10,12 +10,24 @@ SERIALIZE_EXPORT_IMPL(Service::QTM::QTM_S) | |||
| 
 | ||||
| namespace Service::QTM { | ||||
| 
 | ||||
| void QTM_S::GetHeadtrackingInfo(Kernel::HLERequestContext& ctx) { | ||||
|     IPC::RequestParser rp(ctx); | ||||
|     [[maybe_unused]] const u64 unknown = rp.Pop<u64>(); | ||||
| 
 | ||||
|     std::array<u8, 0x40> data{}; | ||||
|     IPC::RequestBuilder rb = rp.MakeBuilder(17, 0); | ||||
|     rb.Push(RESULT_SUCCESS); | ||||
|     rb.PushRaw<std::array<u8, 0x40>>(data); | ||||
| 
 | ||||
|     LOG_DEBUG(Service, "(STUBBED) called"); | ||||
| } | ||||
| 
 | ||||
| QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) { | ||||
|     static const FunctionInfo functions[] = { | ||||
|         // qtm common commands
 | ||||
|         // clang-format off
 | ||||
|         {0x0001, nullptr, "GetHeadtrackingInfoRaw"}, | ||||
|         {0x0002, nullptr, "GetHeadtrackingInfo"}, | ||||
|         {0x0002, &QTM_S::GetHeadtrackingInfo, "GetHeadtrackingInfo"}, | ||||
|         // clang-format on
 | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,6 +15,8 @@ public: | |||
| 
 | ||||
| private: | ||||
|     SERVICE_SERIALIZATION_SIMPLE | ||||
| 
 | ||||
|     void GetHeadtrackingInfo(Kernel::HLERequestContext& ctx); | ||||
| }; | ||||
| 
 | ||||
| } // namespace Service::QTM
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue