fix specialExitEmulator -> SpecialExitEmulator, Added description to clarify function

This commit is contained in:
Vova
2025-01-11 22:20:08 +10:00
parent de18c4927f
commit 11f1922a82
7 changed files with 14 additions and 12 deletions
@@ -369,7 +369,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
/// <summary>
/// Allows you to choose from three options: do nothing, exit the application, exit the emulator
/// </summary>
public int specialExitEmulator { get; set; }
public int SpecialExitEmulator { get; set; }
/// <summary>
/// Hotkey Keyboard Bindings
@@ -136,7 +136,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
Hid.EnableKeyboard.Value = cff.EnableKeyboard;
Hid.EnableMouse.Value = cff.EnableMouse;
Hid.specialExitEmulator.Value = cff.specialExitEmulator;
Hid.SpecialExitEmulator.Value = cff.SpecialExitEmulator;
Hid.Hotkeys.Value = cff.Hotkeys;
Hid.InputConfig.Value = cff.InputConfig ?? [];
@@ -421,9 +421,11 @@ namespace Ryujinx.Ava.Utilities.Configuration
public ReactiveObject<bool> EnableMouse { get; private set; }
/// <summary>
/// Allows you to choose from three options: do nothing, exit the application, exit the emulator
/// Allows you to choose one of several behaviors when pressing hotkeys:
/// 0 - Do nothing, 1 - Close the emulator application, 2 - Exit the game.
/// </summary>
public ReactiveObject<int> specialExitEmulator { get; private set; }
public ReactiveObject<int> SpecialExitEmulator { get; private set; }
/// <summary>
/// Hotkey Keyboard Bindings
@@ -441,7 +443,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
{
EnableKeyboard = new ReactiveObject<bool>();
EnableMouse = new ReactiveObject<bool>();
specialExitEmulator = new ReactiveObject<int>();
SpecialExitEmulator = new ReactiveObject<int>();
Hotkeys = new ReactiveObject<KeyboardHotkeys>();
InputConfig = new ReactiveObject<List<InputConfig>>();
}
@@ -128,7 +128,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
ShowConsole = UI.ShowConsole,
EnableKeyboard = Hid.EnableKeyboard,
EnableMouse = Hid.EnableMouse,
specialExitEmulator = Hid.specialExitEmulator,
SpecialExitEmulator = Hid.SpecialExitEmulator,
Hotkeys = Hid.Hotkeys,
KeyboardConfig = [],
ControllerConfig = [],
@@ -242,7 +242,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
UI.WindowStartup.WindowMaximized.Value = false;
Hid.EnableKeyboard.Value = false;
Hid.EnableMouse.Value = false;
Hid.specialExitEmulator.Value = 0;
Hid.SpecialExitEmulator.Value = 0;
Hid.Hotkeys.Value = new KeyboardHotkeys
{
ToggleVSyncMode = Key.F1,