summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 20:31:53 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-29 00:46:54 +0100
commita1490d77ace26ec01a60541239d9a8524b88fcec (patch)
tree8da577293325c3f585a4d031288339885ca26a65 /src/core/hle/service/time
parenthle_ipc: Rename ReadBuffer to ReadBufferCopy (diff)
downloadyuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.gz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.bz2
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.lz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.xz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.zst
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/time.cpp8
-rw-r--r--src/core/hle/service/time/time_zone_service.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index 9376e0902..f77cdbb43 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -328,8 +328,8 @@ void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(
Clock::ClockSnapshot snapshot_a;
Clock::ClockSnapshot snapshot_b;
- const auto snapshot_a_data = ctx.ReadBufferSpan(0);
- const auto snapshot_b_data = ctx.ReadBufferSpan(1);
+ const auto snapshot_a_data = ctx.ReadBuffer(0);
+ const auto snapshot_b_data = ctx.ReadBuffer(1);
std::memcpy(&snapshot_a, snapshot_a_data.data(), sizeof(Clock::ClockSnapshot));
std::memcpy(&snapshot_b, snapshot_b_data.data(), sizeof(Clock::ClockSnapshot));
@@ -355,8 +355,8 @@ void Module::Interface::CalculateSpanBetween(Kernel::HLERequestContext& ctx) {
Clock::ClockSnapshot snapshot_a;
Clock::ClockSnapshot snapshot_b;
- const auto snapshot_a_data = ctx.ReadBufferSpan(0);
- const auto snapshot_b_data = ctx.ReadBufferSpan(1);
+ const auto snapshot_a_data = ctx.ReadBuffer(0);
+ const auto snapshot_b_data = ctx.ReadBuffer(1);
std::memcpy(&snapshot_a, snapshot_a_data.data(), sizeof(Clock::ClockSnapshot));
std::memcpy(&snapshot_b, snapshot_b_data.data(), sizeof(Clock::ClockSnapshot));
diff --git a/src/core/hle/service/time/time_zone_service.cpp b/src/core/hle/service/time/time_zone_service.cpp
index 6d05a66f1..961040bfc 100644
--- a/src/core/hle/service/time/time_zone_service.cpp
+++ b/src/core/hle/service/time/time_zone_service.cpp
@@ -84,7 +84,7 @@ void ITimeZoneService::ToCalendarTime(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called, posix_time=0x{:016X}", posix_time);
TimeZone::TimeZoneRule time_zone_rule{};
- const auto buffer{ctx.ReadBufferSpan()};
+ const auto buffer{ctx.ReadBuffer()};
std::memcpy(&time_zone_rule, buffer.data(), buffer.size());
TimeZone::CalendarInfo calendar_info{};
@@ -128,7 +128,7 @@ void ITimeZoneService::ToPosixTime(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto calendar_time{rp.PopRaw<TimeZone::CalendarTime>()};
TimeZone::TimeZoneRule time_zone_rule{};
- std::memcpy(&time_zone_rule, ctx.ReadBufferSpan().data(), sizeof(TimeZone::TimeZoneRule));
+ std::memcpy(&time_zone_rule, ctx.ReadBuffer().data(), sizeof(TimeZone::TimeZoneRule));
s64 posix_time{};
if (const Result result{time_zone_content_manager.GetTimeZoneManager().ToPosixTime(