mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 11: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) {
|
||||
// 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<service::am::IStorage> data) {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user