yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #4153 from ogniK5377/prepo-multibuf

prepo: : Don't read extra buffer from report unless passed
This commit is contained in:
bunnei 2020-06-30 22:37:13 -04:00 committed by GitHub
commit c6b0353c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -75,9 +75,14 @@ private:
const auto user_id = rp.PopRaw<u128>(); const auto user_id = rp.PopRaw<u128>();
const auto process_id = rp.PopRaw<u64>(); const auto process_id = rp.PopRaw<u64>();
std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)}; std::vector<std::vector<u8>> data{ctx.ReadBuffer(0)};
if constexpr (Type == Core::Reporter::PlayReportType::Old2) { if constexpr (Type == Core::Reporter::PlayReportType::Old2) {
const auto read_buffer_count =
ctx.BufferDescriptorX().size() + ctx.BufferDescriptorA().size();
if (read_buffer_count > 1) {
data.emplace_back(ctx.ReadBuffer(1)); data.emplace_back(ctx.ReadBuffer(1));
} }
}
LOG_DEBUG( LOG_DEBUG(
Service_PREPO, Service_PREPO,