mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	time: Add GetStandardLocalSystemClock, used by libnx
This commit is contained in:
		
							parent
							
								
									6a2197806e
								
							
						
					
					
						commit
						944132dbe5
					
				| @ -146,6 +146,13 @@ void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { | |||||||
|     LOG_DEBUG(Service_Time, "called"); |     LOG_DEBUG(Service_Time, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) { | ||||||
|  |     IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|  |     rb.Push(RESULT_SUCCESS); | ||||||
|  |     rb.PushIpcInterface<ISystemClock>(); | ||||||
|  |     LOG_DEBUG(Service_Time, "called"); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) | Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) | ||||||
|     : ServiceFramework(name), time(std::move(time)) {} |     : ServiceFramework(name), time(std::move(time)) {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -56,6 +56,7 @@ public: | |||||||
|         void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); |         void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); | ||||||
|         void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); |         void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); | ||||||
|         void GetTimeZoneService(Kernel::HLERequestContext& ctx); |         void GetTimeZoneService(Kernel::HLERequestContext& ctx); | ||||||
|  |         void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx); | ||||||
| 
 | 
 | ||||||
|     protected: |     protected: | ||||||
|         std::shared_ptr<Module> time; |         std::shared_ptr<Module> time; | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time) | |||||||
|         {1, &TIME_U::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, |         {1, &TIME_U::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, | ||||||
|         {2, &TIME_U::GetStandardSteadyClock, "GetStandardSteadyClock"}, |         {2, &TIME_U::GetStandardSteadyClock, "GetStandardSteadyClock"}, | ||||||
|         {3, &TIME_U::GetTimeZoneService, "GetTimeZoneService"}, |         {3, &TIME_U::GetTimeZoneService, "GetTimeZoneService"}, | ||||||
|  |         {4, &TIME_U::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"}, | ||||||
|     }; |     }; | ||||||
|     RegisterHandlers(functions); |     RegisterHandlers(functions); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 shinyquagsire23
						shinyquagsire23