diff options
author | ooa113y <13thSlayer@gmail.com> | 2021-08-05 00:28:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 23:28:19 +0200 |
commit | 46ffc81d90bd3a8f2d24c2997166d22f12ecbbb6 (patch) | |
tree | 7342e41c98a2af5317c4369c5c78cd16b5f18d84 /Ryujinx/Configuration/ConfigurationState.cs | |
parent | 5ceaf344ce02931da897c943048b5e653050038b (diff) |
Hide UI rework/arrow key fix (#2504)
* Unbreak arrow keys
* Use bitshift for Flags instead of literal
Diffstat (limited to 'Ryujinx/Configuration/ConfigurationState.cs')
-rw-r--r-- | Ryujinx/Configuration/ConfigurationState.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Ryujinx/Configuration/ConfigurationState.cs b/Ryujinx/Configuration/ConfigurationState.cs index c98fbcca..41bd64a7 100644 --- a/Ryujinx/Configuration/ConfigurationState.cs +++ b/Ryujinx/Configuration/ConfigurationState.cs @@ -543,7 +543,8 @@ namespace Ryujinx.Configuration Hid.Hotkeys.Value = new KeyboardHotkeys { ToggleVsync = Key.Tab, - Screenshot = Key.F8 + Screenshot = Key.F8, + ShowUi = Key.F4 }; Hid.InputConfig.Value = new List<InputConfig> { @@ -859,6 +860,20 @@ namespace Ryujinx.Configuration configurationFileUpdated = true; } + if (configurationFileFormat.Version < 29) + { + Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 29."); + + configurationFileFormat.Hotkeys = new KeyboardHotkeys + { + ToggleVsync = Key.Tab, + Screenshot = Key.F8, + ShowUi = Key.F4 + }; + + configurationFileUpdated = true; + } + Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog; Graphics.ResScale.Value = configurationFileFormat.ResScale; Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom; |