-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cs
42 lines (37 loc) · 1.34 KB
/
Main.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 System.IO;
using MelonLoader;
using GbHapticsIntegration.Hooks;
using GbHapticsIntegration.Managers;
namespace GbHapticsIntegration
{
internal class GbHapticsIntegration : MelonMod
{
internal static HarmonyLib.Harmony ModHarmony = null;
internal static MelonLogger.Instance Logger = null;
internal static string BaseUserDataDirectory = null;
public override void OnApplicationStart()
{
ModHarmony = HarmonyInstance;
Logger = LoggerInstance;
BaseUserDataDirectory = Path.Combine(MelonUtils.UserDataDirectory, "bHaptics");
if (!Directory.Exists(BaseUserDataDirectory))
Directory.CreateDirectory(BaseUserDataDirectory);
Config.I_General.Init();
Config.I_HapticDevices.Init();
Config.I_HapticEffects.Init();
M_Tact.Setup();
H_Bow.Initialize();
H_CrossbowCaestus.Initialize();
H_DamageRelay.Initialize();
H_DamagerRigidbody.Initialize();
H_GameController.Initialize();
H_Gong.Initialize();
H_GrabHand.Initialize();
H_Grapple.Initialize();
H_Gun.Initialize();
H_PlayerDamageRelay.Initialize();
H_SurpriseBox.Initialize();
Logger.Msg("Initialized!");
}
}
}