/// <summary> /// Constructs a ModPrefs object for the provide plugin. /// </summary> /// <param name="plugin">the plugin to get the preferences file for</param> public ModPrefs(PluginMetadata plugin) { _instance = new IniFile(Path.Combine(Environment.CurrentDirectory, "UserData", "ModPrefs", $"{plugin.Name}.ini")); }
private ModPrefs() { _instance = new IniFile(Path.Combine(Environment.CurrentDirectory, "UserData", "modprefs.ini")); }
/// <summary> /// Constructs a ModPrefs object for the provide plugin. /// </summary> /// <param name="plugin">the plugin to get the preferences file for</param> public ModPrefs(IBeatSaberPlugin plugin) { _instance = new IniFile(Path.Combine(Environment.CurrentDirectory, "UserData", "ModPrefs", $"{plugin.Name}.ini")); ModPrefss.Add(plugin, this); }