mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 15:33:17 -04:00
- Install script - Rewrote Why This Exists section - Method documentation comments
18 lines
495 B
C#
18 lines
495 B
C#
namespace S2PK;
|
|
|
|
public class Config
|
|
{
|
|
public string Destination { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Loads the configuration from the specified file path.
|
|
/// </summary>
|
|
/// <param name="path">The path to the configuration file.</param>
|
|
/// <returns>The loaded configuration.</returns>
|
|
public static Config Load(string path)
|
|
{
|
|
var file = File.ReadAllText(path);
|
|
var config = Toml.ToModel<Config>(file);
|
|
return config;
|
|
}
|
|
}
|