diff options
| author | 2020-06-30 22:37:13 -0400 | |
|---|---|---|
| committer | 2020-06-30 22:37:13 -0400 | |
| commit | c6b0353c4dac96a592b67f6360909d2ac0836ea6 (patch) | |
| tree | bdedafe1c1ac84177e46ebfaadada8a4337807d6 /src | |
| parent | Merge pull request #4063 from FreddyFunk/game-version-in-title (diff) | |
| parent | prepo: : Don't read extra buffer from report unless passed (diff) | |
| download | yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.gz yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.tar.xz yuzu-c6b0353c4dac96a592b67f6360909d2ac0836ea6.zip | |
Merge pull request #4153 from ogniK5377/prepo-multibuf
prepo: : Don't read extra buffer from report unless passed
Diffstat (limited to 'src')
| -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: | |||
| 75 | const auto user_id = rp.PopRaw<u128>(); | 75 | const auto user_id = rp.PopRaw<u128>(); |
| 76 | const auto process_id = rp.PopRaw<u64>(); | 76 | const auto process_id = rp.PopRaw<u64>(); |
| 77 | std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)}; | 77 | std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)}; |
| 78 | |||
| 78 | if constexpr (Type == Core::Reporter::PlayReportType::Old2) { | 79 | if constexpr (Type == Core::Reporter::PlayReportType::Old2) { |
| 79 | data.emplace_back(ctx.ReadBuffer(1)); | 80 | const auto read_buffer_count = |
| 81 | ctx.BufferDescriptorX().size() + ctx.BufferDescriptorA().size(); | ||
| 82 | if (read_buffer_count > 1) { | ||
| 83 | data.emplace_back(ctx.ReadBuffer(1)); | ||
| 84 | } | ||
| 80 | } | 85 | } |
| 81 | 86 | ||
| 82 | LOG_DEBUG( | 87 | LOG_DEBUG( |