From 55af70586001d3de00d29b8b1556f5f90f123013 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 1 Sep 2023 18:42:41 +0300 Subject: [PATCH] Fix clang-format stupidity --- src/core/services/y2r.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/services/y2r.cpp b/src/core/services/y2r.cpp index 3c527230..40a6a04d 100644 --- a/src/core/services/y2r.cpp +++ b/src/core/services/y2r.cpp @@ -107,7 +107,9 @@ void Y2RService::driverFinalize(u32 messagePointer) { void Y2RService::getTransferEndEvent(u32 messagePointer) { log("Y2R::GetTransferEndEvent\n"); - if (!transferEndEvent.has_value()) transferEndEvent = kernel.makeEvent(ResetType::OneShot); + if (!transferEndEvent.has_value()) { + transferEndEvent = kernel.makeEvent(ResetType::OneShot); + } mem.write32(messagePointer, IPC::responseHeader(0xF, 1, 2)); mem.write32(messagePointer + 4, Result::Success); @@ -284,7 +286,9 @@ void Y2RService::setInputLines(u32 messagePointer) { Helpers::panic("Y2R: Invalid input line count"); } else { // According to Citra, the Y2R module seems to accidentally skip setting the line # if it's 1024 - if (lines != 1024) inputLines = lines; + if (lines != 1024) { + inputLines = lines; + } mem.write32(messagePointer + 4, Result::Success); } }