public SettingsManager(RiZhi log) { Executables = new ExecutableManager(log); _log = log; string configPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "appsettings.json"); if (File.Exists(configPath)) { LoadConfigFile(configPath); } else { _log.Information("No config file found, creating new defaults"); Settings = new ObservableSettings(); } }
public SettingsManager(RiZhi log) { _log = log ?? throw new ArgumentNullException(nameof(log)); Executables = new ExecutableManager(log); if (File.Exists(_configPath)) { LoadConfigFile(); } else { _log.Information("No config file found, creating new defaults"); Settings = new ObservableSettings(); } LoadTemporaryValues(); }
protected internal override void CallOn(HacknetPlugin plugin, MemberInfo targettedInfo) { ExecutableManager.RegisterExecutable((Type)targettedInfo, XmlName); }