Address some comments

This commit is contained in:
Thog 2019-11-22 21:47:46 +01:00
commit 54af6910a5
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
2 changed files with 4 additions and 6 deletions

View file

@ -410,7 +410,7 @@ namespace Ryujinx.Configuration
Hid.JoystickControls.Value = new NpadController Hid.JoystickControls.Value = new NpadController
{ {
Enabled = true, Enabled = true,
Index = 0, Index = 0,
Deadzone = 0.05f, Deadzone = 0.05f,
TriggerThreshold = 0.5f, TriggerThreshold = 0.5f,
@ -425,7 +425,6 @@ namespace Ryujinx.Configuration
ButtonMinus = ControllerInputId.Button6, ButtonMinus = ControllerInputId.Button6,
ButtonL = ControllerInputId.Button4, ButtonL = ControllerInputId.Button4,
ButtonZl = ControllerInputId.Axis2, ButtonZl = ControllerInputId.Axis2,
}, },
RightJoycon = new NpadControllerRight RightJoycon = new NpadControllerRight
{ {
@ -446,7 +445,7 @@ namespace Ryujinx.Configuration
{ {
if (configurationFileFormat.Version != 1 && configurationFileFormat.Version != 0) if (configurationFileFormat.Version != 1 && configurationFileFormat.Version != 0)
{ {
Common.Logging.Logger.PrintWarning(LogClass.Application, $"Unsupported configuration version {configurationFileFormat.Version}, loading default!"); Common.Logging.Logger.PrintWarning(LogClass.Application, $"Unsupported configuration version {configurationFileFormat.Version}, loading default.");
LoadDefault(); LoadDefault();
@ -495,7 +494,7 @@ namespace Ryujinx.Configuration
{ {
if (Instance != null) if (Instance != null)
{ {
throw new InvalidOperationException("Configuration is already initialized!"); throw new InvalidOperationException("Configuration is already initialized");
} }
Instance = new ConfigurationState(); Instance = new ConfigurationState();

View file

@ -42,8 +42,7 @@ namespace Ryujinx.Common.Logging
AddTarget(new AsyncLogTargetWrapper( AddTarget(new AsyncLogTargetWrapper(
new ConsoleLogTarget("console"), new ConsoleLogTarget("console"),
1000, 1000,
AsyncLogTargetOverflowAction.Block AsyncLogTargetOverflowAction.Block));
));
} }
public static void RestartTime() public static void RestartTime()