mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-16 13:37:03 +00:00
Fix: Configuration migration for Turbo Mode
This commit is contained in:
parent
d751cfa81a
commit
1abf5b82c5
2 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue