Preserve and rename the configuration file when it is deemed invalid (ryubing/ryujinx!216)

See merge request ryubing/ryujinx!216
This commit is contained in:
Coxxs
2025-11-12 08:23:05 -06:00
committed by LotP
parent e8225ce7aa
commit 1baaa1c365
3 changed files with 43 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ namespace Ryujinx.Ava.Systems.Configuration
{
RyuLogger.Warning?.Print(LogClass.Application, $"Unsupported configuration version {cff.Version}, loading default.");
ConfigurationFileFormat.RenameInvalidConfigFile(configurationFilePath);
LoadDefault();
return;
}