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`.
This commit is contained in:
PixelyIon 2022-05-06 15:27:56 +05:30
parent 98c730a644
commit b87295374e

View File

@ -20,9 +20,10 @@ namespace skyline::applet {
void ControllerApplet::HandleShowControllerSupport(input::NpadStyleSet styleSet, ControllerAppletVersion version, span<u8> 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);