mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Fix: Configuration migration for Turbo Mode
This commit is contained in:
1 parent
d751cfa81a
commit
1abf5b82c5
2 files changed
+9
-4
No files matched your search
@@ -16,7 +16,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current version of the file format
|
/// The current version of the file format
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const int CurrentVersion = 58;
|
public const int CurrentVersion = 59;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Version of the configuration file format
|
/// Version of the configuration file format
|
||||||
|
|||||||
@@ -1708,8 +1708,13 @@ namespace Ryujinx.UI.Common.Configuration
|
|||||||
|
|
||||||
configurationFileFormat.MatchSystemTime = false;
|
configurationFileFormat.MatchSystemTime = false;
|
||||||
|
|
||||||
// Turbo Mode should be version 59 - KeatonTheBot
|
configurationFileUpdated = true;
|
||||||
// TODO: Fix config migration for Turbo Mode
|
}
|
||||||
|
|
||||||
|
if (configurationFileFormat.Version < 59)
|
||||||
|
{
|
||||||
|
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 59.");
|
||||||
|
|
||||||
configurationFileFormat.TickScalar = 200;
|
configurationFileFormat.TickScalar = 200;
|
||||||
configurationFileFormat.Hotkeys = new KeyboardHotkeys
|
configurationFileFormat.Hotkeys = new KeyboardHotkeys
|
||||||
{
|
{
|
||||||
@@ -1730,7 +1735,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|||||||
|
|
||||||
configurationFileUpdated = true;
|
configurationFileUpdated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog;
|
Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog;
|
||||||
Graphics.ResScale.Value = configurationFileFormat.ResScale;
|
Graphics.ResScale.Value = configurationFileFormat.ResScale;
|
||||||
Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom;
|
Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom;
|
||||||
|
|||||||
Reference in new issue
Block a user