From b87295374ec5baa088ac1e6fcdb51972b8353db1 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Fri, 6 May 2022 15:27:56 +0530 Subject: [PATCH] Improve Controller Applet log Improves the readability of the log and replaces the previously uninformative prefix of `operator()` due to being in a lambda with `Controller support`. --- app/src/main/cpp/skyline/applet/controller_applet.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/skyline/applet/controller_applet.cpp b/app/src/main/cpp/skyline/applet/controller_applet.cpp index 75348439..c39ab51a 100644 --- a/app/src/main/cpp/skyline/applet/controller_applet.cpp +++ b/app/src/main/cpp/skyline/applet/controller_applet.cpp @@ -20,9 +20,10 @@ namespace skyline::applet { void ControllerApplet::HandleShowControllerSupport(input::NpadStyleSet styleSet, ControllerAppletVersion version, span arg) { // Generic macro due to both versions of arguments sharing the same fields but having different layouts auto handle{[&](auto controllerSupportModeArg) { - Logger::Info("playerCountMin: {}, playerCountMax: {}, " - "enableTakeOverConnection: {}, enableLeftJustify: {}, enablePermitJoyDual: {}, enableSingleMode: {}, " - "enableIdentificationColor: {}, enableExplainText: {}", + Logger::InfoNoPrefix("Controller Support: " + "Player Count: {} - {}, " + "Take Over Connection: {}, Left Justify: {}, Dual Joy-Con Allowed: {}, Single Mode Enabled: {}, " + "Identification Color Enabled: {}, Explain Text Enabled: {}", controllerSupportModeArg.playerCountMin, controllerSupportModeArg.playerCountMax, controllerSupportModeArg.enableTakeOverConnection, controllerSupportModeArg.enableLeftJustify, controllerSupportModeArg.enablePermitJoyDual, controllerSupportModeArg.enableSingleMode, controllerSupportModeArg.enableIdentificationColor, controllerSupportModeArg.enableExplainText); @@ -108,4 +109,4 @@ namespace skyline::applet { } void ControllerApplet::PushInteractiveDataToApplet(std::shared_ptr data) {} -} \ No newline at end of file +}