mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
27 lines
645 B
C#
27 lines
645 B
C#
namespace Wabbajack.Configuration;
|
|
|
|
public class MainSettings
|
|
{
|
|
public const string SettingsFileName = "app_settings";
|
|
private const int SettingsVersion = 1;
|
|
|
|
public int CurrentSettingsVersion { get; private set; }
|
|
|
|
public PerformanceSettings PerformanceSettings { get; } = new();
|
|
|
|
public bool Upgrade()
|
|
{
|
|
if (CurrentSettingsVersion == SettingsVersion)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
if (CurrentSettingsVersion < 1)
|
|
{
|
|
PerformanceSettings.MaximumMemoryPerDownloadThreadMb = -1;
|
|
}
|
|
|
|
CurrentSettingsVersion = SettingsVersion;
|
|
return true;
|
|
}
|
|
} |