-
Notifications
You must be signed in to change notification settings - Fork 4
/
ModSettings.cs
24 lines (20 loc) · 979 Bytes
/
ModSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using MelonLoader;
namespace CustomAlbums
{
internal static class ModSettings
{
private static MelonPreferences_Entry<bool> _verboseLogging;
private static MelonPreferences_Entry<bool> _savingEnabled;
private static MelonPreferences_Entry<bool> _enableLogWriteToFile;
public static bool VerboseLogging => _verboseLogging.Value;
public static bool SavingEnabled => _savingEnabled.Value;
public static bool LoggingToFileEnabled => _enableLogWriteToFile.Value;
internal static void Register()
{
var category = MelonPreferences.CreateCategory("CustomAlbums", "Custom Albums");
_verboseLogging = category.CreateEntry("VerboseLogging", false, "Verbose Logging");
_savingEnabled = category.CreateEntry("SavingEnabled", true, "Enable Saving");
_enableLogWriteToFile = category.CreateEntry("LogWriteToFile", false, "Enable Log Write to File");
}
}
}