2025-08-22 02:19:48 +01:00
|
|
|
|
using MareSynchronos.MareConfiguration.Configurations;
|
|
|
|
|
|
|
|
|
|
namespace MareSynchronos.MareConfiguration;
|
|
|
|
|
|
|
|
|
|
public static class ConfigurationExtensions
|
|
|
|
|
{
|
|
|
|
|
public static bool HasValidSetup(this MareConfig configuration)
|
|
|
|
|
{
|
|
|
|
|
return configuration.AcceptedAgreement && configuration.InitialScanComplete
|
|
|
|
|
&& !string.IsNullOrEmpty(configuration.CacheFolder)
|
2025-08-29 20:47:00 +01:00
|
|
|
|
&& Directory.Exists(configuration.CacheFolder) && configuration.AcceptedTOSVersion == configuration.ExpectedTOSVersion;
|
2025-08-22 02:19:48 +01:00
|
|
|
|
}
|
|
|
|
|
}
|