mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Implement GetDefaultDisplayResolutionChangeEvent
Require by Toki Tori and Toki Tori 2+
This commit is contained in:
		
							parent
							
								
									3fd78f4d24
								
							
						
					
					
						commit
						928e78dced
					
				| @ -306,7 +306,8 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter" | |||||||
|         {52, nullptr, "SwitchLcdBacklight"}, |         {52, nullptr, "SwitchLcdBacklight"}, | ||||||
|         {55, nullptr, "IsInControllerFirmwareUpdateSection"}, |         {55, nullptr, "IsInControllerFirmwareUpdateSection"}, | ||||||
|         {60, nullptr, "GetDefaultDisplayResolution"}, |         {60, nullptr, "GetDefaultDisplayResolution"}, | ||||||
|         {61, nullptr, "GetDefaultDisplayResolutionChangeEvent"}, |         {61, &ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent, | ||||||
|  |             "GetDefaultDisplayResolutionChangeEvent"}, | ||||||
|         {62, nullptr, "GetHdcpAuthenticationState"}, |         {62, nullptr, "GetHdcpAuthenticationState"}, | ||||||
|         {63, nullptr, "GetHdcpAuthenticationStateChangeEvent"}, |         {63, nullptr, "GetHdcpAuthenticationStateChangeEvent"}, | ||||||
|     }; |     }; | ||||||
| @ -341,6 +342,16 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | |||||||
|     LOG_WARNING(Service_AM, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) { | ||||||
|  |     event->Signal(); | ||||||
|  | 
 | ||||||
|  |     IPC::ResponseBuilder rb{ctx, 2, 1}; | ||||||
|  |     rb.Push(RESULT_SUCCESS); | ||||||
|  |     rb.PushCopyObjects(event); | ||||||
|  | 
 | ||||||
|  |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | ||||||
|     const bool use_docked_mode{Settings::values.use_docked_mode}; |     const bool use_docked_mode{Settings::values.use_docked_mode}; | ||||||
|     IPC::ResponseBuilder rb{ctx, 3}; |     IPC::ResponseBuilder rb{ctx, 3}; | ||||||
|  | |||||||
| @ -110,6 +110,7 @@ private: | |||||||
|     void GetEventHandle(Kernel::HLERequestContext& ctx); |     void GetEventHandle(Kernel::HLERequestContext& ctx); | ||||||
|     void ReceiveMessage(Kernel::HLERequestContext& ctx); |     void ReceiveMessage(Kernel::HLERequestContext& ctx); | ||||||
|     void GetCurrentFocusState(Kernel::HLERequestContext& ctx); |     void GetCurrentFocusState(Kernel::HLERequestContext& ctx); | ||||||
|  |     void GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx); | ||||||
|     void GetOperationMode(Kernel::HLERequestContext& ctx); |     void GetOperationMode(Kernel::HLERequestContext& ctx); | ||||||
|     void GetPerformanceMode(Kernel::HLERequestContext& ctx); |     void GetPerformanceMode(Kernel::HLERequestContext& ctx); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 greggameplayer
						greggameplayer