mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 07:23:17 -04:00
Renamed games option to paths
This commit is contained in:
parent
7af7fc427b
commit
f65698fcb6
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[games]
|
||||
[paths]
|
||||
sims2 ≡ "path/to/sims2"
|
||||
sims3 ≡ "path/to/sims3"
|
||||
|
|
Loading…
Add table
Reference in a new issue