namespace S2PK;
public class Config
{
public Destination Games { get; set; } = new();
///
/// Loads the configuration from the specified file path.
///
/// The path to the configuration file.
/// The loaded configuration.
public static Config Load(string path)
{
var file = File.ReadAllText(path);
var config = Toml.ToModel(file);
return config;
}
}
public class Destination
{
public string Sims2 { get; set; } = string.Empty;
public string Sims3 { get; set; } = string.Empty;
}