15 lines
425 B
C#
15 lines
425 B
C#
namespace BangumiRenamer.Tools;
|
|
|
|
public class Config
|
|
{
|
|
private static readonly Lazy<LLCSharpUtils.Config> _lazyConfig = new (() =>
|
|
{
|
|
var config = new LLCSharpUtils.Config
|
|
{
|
|
ConfigPath = "config.json"
|
|
};
|
|
if (!config.Load(true)) throw new Exception("Failed to load config.json");
|
|
return config;
|
|
});
|
|
public static LLCSharpUtils.Config G => _lazyConfig.Value;
|
|
} |