-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigManager.cs
42 lines (35 loc) · 1.53 KB
/
ConfigManager.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using MelonLoader;
namespace Mu3Assist
{
public class ConfigManager
{
// [Common]
public bool InfinityTimer {get; private set; }
public bool SkipWarningScreen {get; private set; }
public bool ShowFPS {get; private set; }
// [Cheat]
public bool FastSkip {get; private set; }
public bool FastRestart { get; private set; }
public bool UnlockMaster { get; private set; }
public bool UnlockEvent { get; private set; }
public bool UnlockMusic { get; private set; }
// [Fix]
public bool DisableEncryption { get; private set; }
public void Initialize()
{
var iniFile = new IniFile($"{BuildInfo.Name}/Config.ini");
// [Common]
InfinityTimer = iniFile.GetBool("Common", "InfinityTimer", false);
SkipWarningScreen = iniFile.GetBool("Common", "SkipWarningScreen", false);
ShowFPS = iniFile.GetBool("Common", "ShowFPS", false);
// [Cheat]
FastSkip = iniFile.GetBool("Cheat", "FastSkip", false);
FastRestart = iniFile.GetBool("Cheat", "FastRestart", false);
UnlockMaster = iniFile.GetBool("Cheat", "UnlockMaster", false);
UnlockEvent = iniFile.GetBool("Cheat", "UnlockEvent", false);
UnlockMusic = iniFile.GetBool("Cheat", "UnlockMusic", false);
// [Fix]
DisableEncryption = iniFile.GetBool("Fix", "DisableEncryption", false);
}
}
}