mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 23:35:38 +00:00
Merge pull request #4153 from ogniK5377/prepo-multibuf
prepo: : Don't read extra buffer from report unless passed
This commit is contained in:
commit
c6b0353c4d
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue