diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-24 15:01:00 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-24 15:01:00 +0200 |
commit | 2f0b322e721625def489f1dfaf9eb061e2eedb9a (patch) | |
tree | 57e45ffcf62e3b7d3729b73f3015faaa399b6e4d | |
parent | Merge pull request #4129 from Morph1984/texture-shadow-lod-workaround (diff) | |
download | yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar.gz yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar.bz2 yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar.lz yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar.xz yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.tar.zst yuzu-2f0b322e721625def489f1dfaf9eb061e2eedb9a.zip |
-rw-r--r-- | src/core/hle/service/prepo/prepo.cpp | 7 |
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( |