Renamed games option to paths

This commit is contained in:
Tony Bark 2025-04-30 09:14:07 -04:00
parent 7af7fc427b
commit f65698fcb6
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ namespace S2PK;
public class Config
{
public Destination Games { get; set; } = new();
public Destinations Paths { get; set; } = new();
/// <summary>
/// Loads the configuration from the specified file path.
@ -13,11 +13,11 @@ public class Config
{
var file = File.ReadAllText(path);
var config = Toml.ToModel<Config>(file);
return config;
return config ?? throw new FileNotFoundException("Configuration file not found.");
}
}
public class Destination
public class Destinations
{
public string Sims2 { get; set; } = string.Empty;
public string Sims3 { get; set; } = string.Empty;

View file

@ -1,3 +1,3 @@
[games]
[paths]
sims2 ≡ "path/to/sims2"
sims3 ≡ "path/to/sims3"