summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/psc/time/service_manager.cpp
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2024-02-02 15:10:46 +0100
committerGitHub <noreply@github.com>2024-02-02 15:10:46 +0100
commit6baf965777145fd9c76bd06a3c140afa46a50e87 (patch)
tree52a9b8ea293bb9b378e7e662b92e9c56d1f87d4c /src/core/hle/service/psc/time/service_manager.cpp
parentMerge pull request #12845 from liamwhite/notif (diff)
parentservice: use const references for input raw data (diff)
downloadyuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.gz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.bz2
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.lz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.xz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.zst
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/psc/time/service_manager.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/core/hle/service/psc/time/service_manager.cpp b/src/core/hle/service/psc/time/service_manager.cpp
index 4e1643fcb..ed9fb32cd 100644
--- a/src/core/hle/service/psc/time/service_manager.cpp
+++ b/src/core/hle/service/psc/time/service_manager.cpp
@@ -78,8 +78,9 @@ Result ServiceManager::GetStaticServiceAsServiceManager(OutInterface<StaticServi
}
Result ServiceManager::SetupStandardSteadyClockCore(bool is_rtc_reset_detected,
- Common::UUID& clock_source_id, s64 rtc_offset,
- s64 internal_offset, s64 test_offset) {
+ const Common::UUID& clock_source_id,
+ s64 rtc_offset, s64 internal_offset,
+ s64 test_offset) {
LOG_DEBUG(Service_Time,
"called. is_rtc_reset_detected={} clock_source_id={} rtc_offset={} "
"internal_offset={} test_offset={}",
@@ -102,7 +103,8 @@ Result ServiceManager::SetupStandardSteadyClockCore(bool is_rtc_reset_detected,
R_SUCCEED();
}
-Result ServiceManager::SetupStandardLocalSystemClockCore(SystemClockContext& context, s64 time) {
+Result ServiceManager::SetupStandardLocalSystemClockCore(const SystemClockContext& context,
+ s64 time) {
LOG_DEBUG(Service_Time,
"called. context={} context.steady_time_point.clock_source_id={} time={}", context,
context.steady_time_point.clock_source_id.RawString(), time);
@@ -114,7 +116,7 @@ Result ServiceManager::SetupStandardLocalSystemClockCore(SystemClockContext& con
R_SUCCEED();
}
-Result ServiceManager::SetupStandardNetworkSystemClockCore(SystemClockContext& context,
+Result ServiceManager::SetupStandardNetworkSystemClockCore(SystemClockContext context,
s64 accuracy) {
LOG_DEBUG(Service_Time, "called. context={} steady_time_point.clock_source_id={} accuracy={}",
context, context.steady_time_point.clock_source_id.RawString(), accuracy);
@@ -131,7 +133,7 @@ Result ServiceManager::SetupStandardNetworkSystemClockCore(SystemClockContext& c
}
Result ServiceManager::SetupStandardUserSystemClockCore(bool automatic_correction,
- SteadyClockTimePoint& time_point) {
+ SteadyClockTimePoint time_point) {
LOG_DEBUG(Service_Time, "called. automatic_correction={} time_point={} clock_source_id={}",
automatic_correction, time_point, time_point.clock_source_id.RawString());
@@ -144,9 +146,9 @@ Result ServiceManager::SetupStandardUserSystemClockCore(bool automatic_correctio
R_SUCCEED();
}
-Result ServiceManager::SetupTimeZoneServiceCore(LocationName& name, RuleVersion& rule_version,
- u32 location_count,
- SteadyClockTimePoint& time_point,
+Result ServiceManager::SetupTimeZoneServiceCore(const LocationName& name,
+ const RuleVersion& rule_version, u32 location_count,
+ const SteadyClockTimePoint& time_point,
InBuffer<BufferAttr_HipcAutoSelect> rule_buffer) {
LOG_DEBUG(Service_Time,
"called. name={} rule_version={} location_count={} time_point={} "