summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-01 04:37:13 +0200
committerGitHub <noreply@github.com>2020-07-01 04:37:13 +0200
commitc6b0353c4dac96a592b67f6360909d2ac0836ea6 (patch)
treebdedafe1c1ac84177e46ebfaadada8a4337807d6 /src/core/hle
parentMerge pull request #4063 from FreddyFunk/game-version-in-title (diff)
parentprepo: : Don't read extra buffer from report unless passed (diff)
downloadyuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.gz
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.bz2
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.lz
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.xz
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.zst
yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/prepo/prepo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp
index 14309c679..67833d9af 100644
--- a/src/core/hle/service/prepo/prepo.cpp
+++ b/src/core/hle/service/prepo/prepo.cpp
@@ -75,8 +75,13 @@ private:
const auto user_id = rp.PopRaw<u128>();
const auto process_id = rp.PopRaw<u64>();
std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)};
+
if constexpr (Type == Core::Reporter::PlayReportType::Old2) {
- data.emplace_back(ctx.ReadBuffer(1));
+ const auto read_buffer_count =
+ ctx.BufferDescriptorX().size() + ctx.BufferDescriptorA().size();
+ if (read_buffer_count > 1) {
+ data.emplace_back(ctx.ReadBuffer(1));
+ }
}
LOG_DEBUG(