mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 13:25:07 +01:00
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:
parent
98c730a644
commit
b87295374e
@ -20,9 +20,10 @@ namespace skyline::applet {
|
|||||||
void ControllerApplet::HandleShowControllerSupport(input::NpadStyleSet styleSet, ControllerAppletVersion version, span<u8> arg) {
|
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
|
// Generic macro due to both versions of arguments sharing the same fields but having different layouts
|
||||||
auto handle{[&](auto controllerSupportModeArg) {
|
auto handle{[&](auto controllerSupportModeArg) {
|
||||||
Logger::Info("playerCountMin: {}, playerCountMax: {}, "
|
Logger::InfoNoPrefix("Controller Support: "
|
||||||
"enableTakeOverConnection: {}, enableLeftJustify: {}, enablePermitJoyDual: {}, enableSingleMode: {}, "
|
"Player Count: {} - {}, "
|
||||||
"enableIdentificationColor: {}, enableExplainText: {}",
|
"Take Over Connection: {}, Left Justify: {}, Dual Joy-Con Allowed: {}, Single Mode Enabled: {}, "
|
||||||
|
"Identification Color Enabled: {}, Explain Text Enabled: {}",
|
||||||
controllerSupportModeArg.playerCountMin, controllerSupportModeArg.playerCountMax,
|
controllerSupportModeArg.playerCountMin, controllerSupportModeArg.playerCountMax,
|
||||||
controllerSupportModeArg.enableTakeOverConnection, controllerSupportModeArg.enableLeftJustify, controllerSupportModeArg.enablePermitJoyDual, controllerSupportModeArg.enableSingleMode,
|
controllerSupportModeArg.enableTakeOverConnection, controllerSupportModeArg.enableLeftJustify, controllerSupportModeArg.enablePermitJoyDual, controllerSupportModeArg.enableSingleMode,
|
||||||
controllerSupportModeArg.enableIdentificationColor, controllerSupportModeArg.enableExplainText);
|
controllerSupportModeArg.enableIdentificationColor, controllerSupportModeArg.enableExplainText);
|
||||||
|
Loading…
Reference in New Issue
Block a user