Esempio n. 1
0
 /// <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"));
 }
Esempio n. 2
0
 private ModPrefs()
 {
     _instance = new IniFile(Path.Combine(Environment.CurrentDirectory, "UserData", "modprefs.ini"));
 }
Esempio n. 3
0
 /// <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);
 }