diff options
author | german77 <juangerman-13@hotmail.com> | 2023-10-15 05:19:22 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-10-17 07:36:46 +0200 |
commit | c73bb33ff138e72c134f1fedbd9fb59c50c6bf62 (patch) | |
tree | 74b12cbf901ef4fbf1ca78d390285d6e9a8ab6c4 /src/core/hle/service/prepo | |
parent | Improvement in Directory Path Detection for Shortcuts (#11749) (diff) | |
download | yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar.gz yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar.bz2 yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar.lz yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar.xz yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.tar.zst yuzu-c73bb33ff138e72c134f1fedbd9fb59c50c6bf62.zip |
Diffstat (limited to 'src/core/hle/service/prepo')
-rw-r--r-- | src/core/hle/service/prepo/prepo.cpp | 40 |
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}, " |