pl_u: Simplify WriteBuffer() calls in GetSharedFontInOrderOfPriority()

With the new overload, we can simply pass the container directly.
This commit is contained in:
Lioncash 2018-07-19 19:50:27 -04:00
parent d3cfaf95c8
commit 1bdb67440b
1 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,9 @@ void PL_U::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) {
font_sizes.push_back(SHARED_FONT_REGIONS[i].size); font_sizes.push_back(SHARED_FONT_REGIONS[i].size);
} }
ctx.WriteBuffer(font_codes.data(), font_codes.size() * sizeof(u32), 0); ctx.WriteBuffer(font_codes, 0);
ctx.WriteBuffer(font_offsets.data(), font_offsets.size() * sizeof(u32), 1); ctx.WriteBuffer(font_offsets, 1);
ctx.WriteBuffer(font_sizes.data(), font_sizes.size() * sizeof(u32), 2); ctx.WriteBuffer(font_sizes, 2);
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);
rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded rb.Push<u8>(static_cast<u8>(LoadState::Done)); // Fonts Loaded