summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/prepo/prepo.cpp
diff options
context:
space:
mode:
authorFranco M <francomaro@gmail.com>2023-10-21 07:25:27 +0200
committerGitHub <noreply@github.com>2023-10-21 07:25:27 +0200
commitb76a1d987ff83b831a19a0c19f9fcd96c504c077 (patch)
tree4b08482cc3d34e341d7d8620182854c248f899b5 /src/core/hle/service/prepo/prepo.cpp
parentReverted dirty code in main. (diff)
parentMerge pull request #11748 from liamwhite/kern_1700 (diff)
downloadyuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.gz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.bz2
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.lz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.xz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.zst
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.zip
Diffstat (limited to 'src/core/hle/service/prepo/prepo.cpp')
-rw-r--r--src/core/hle/service/prepo/prepo.cpp40
1 files changed, 8 insertions, 32 deletions
diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp
index ec4a84989..14e8df63a 100644
--- a/src/core/hle/service/prepo/prepo.cpp
+++ b/src/core/hle/service/prepo/prepo.cpp
@@ -58,14 +58,8 @@ private:
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
- const auto data1 = ctx.ReadBuffer(0);
- const auto data2 = [&ctx] {
- if (ctx.CanReadBuffer(1)) {
- return ctx.ReadBuffer(1);
- }
-
- return std::span<const u8>{};
- }();
+ const auto data1 = ctx.ReadBufferA(0);
+ const auto data2 = ctx.ReadBufferX(0);
LOG_DEBUG(Service_PREPO,
"called, type={:02X}, process_id={:016X}, data1_size={:016X}, data2_size={:016X}",
@@ -85,14 +79,8 @@ private:
const auto user_id = rp.PopRaw<u128>();
const auto process_id = rp.PopRaw<u64>();
- const auto data1 = ctx.ReadBuffer(0);
- const auto data2 = [&ctx] {
- if (ctx.CanReadBuffer(1)) {
- return ctx.ReadBuffer(1);
- }
-
- return std::span<const u8>{};
- }();
+ const auto data1 = ctx.ReadBufferA(0);
+ const auto data2 = ctx.ReadBufferX(0);
LOG_DEBUG(Service_PREPO,
"called, type={:02X}, user_id={:016X}{:016X}, process_id={:016X}, "
@@ -137,14 +125,8 @@ private:
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
- const auto data1 = ctx.ReadBuffer(0);
- const auto data2 = [&ctx] {
- if (ctx.CanReadBuffer(1)) {
- return ctx.ReadBuffer(1);
- }
-
- return std::span<const u8>{};
- }();
+ const auto data1 = ctx.ReadBufferA(0);
+ const auto data2 = ctx.ReadBufferX(0);
LOG_DEBUG(Service_PREPO, "called, title_id={:016X}, data1_size={:016X}, data2_size={:016X}",
title_id, data1.size(), data2.size());
@@ -161,14 +143,8 @@ private:
const auto user_id = rp.PopRaw<u128>();
const auto title_id = rp.PopRaw<u64>();
- const auto data1 = ctx.ReadBuffer(0);
- const auto data2 = [&ctx] {
- if (ctx.CanReadBuffer(1)) {
- return ctx.ReadBuffer(1);
- }
-
- return std::span<const u8>{};
- }();
+ const auto data1 = ctx.ReadBufferA(0);
+ const auto data2 = ctx.ReadBufferX(0);
LOG_DEBUG(Service_PREPO,
"called, user_id={:016X}{:016X}, title_id={:016X}, data1_size={:016X}, "