-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModManager.cs
41 lines (30 loc) · 986 Bytes
/
ModManager.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
using UnityEngine;
using MelonLoader;
using System.IO;
using static UnhollowerRuntimeLib.ClassInjector;
using ModManager.utils;
namespace ModManager
{
public class ModManager : MelonMod
{
public static GameObject ModPnlAsset;
public static GameObject ModBoxAsset;
public static string modsPath = "mods/", disabledModsPath = "UserData/ModManager/disabledMods/";
public override void OnInitializeMelon()
{
RegisterTypeInIl2Cpp<ModsPnlScript>();
RegisterTypeInIl2Cpp<ModBoxScript>();
Settings.load();
FileWriter.deleteFiles();
}
public override void OnFixedUpdate()
{
FileWriter.WriteAll();
}
public const string Name = "ModManager";
public const string Description = "A Simple ModManager inside your Settings";
public const string Version = "1.0.0";
public const string Author = "Creepler13";
}
}