nomai-vr/NomaiVR/Loaders/NomaiVRLoaderOWML.cs
2021-11-14 12:13:29 +01:00

27 lines
776 B
C#

using OWML.Common;
using OWML.ModHelper;
using NomaiVR.Loaders.Harmony;
using NomaiVR.ModConfig;
namespace NomaiVR.Loaders
{
public class NomaiVRLoaderOwml : ModBehaviour
{
public static IModHelper Helper { get; private set; }
internal void Start()
{
NomaiVR.HarmonyInstance = new OwmlHarmonyInstance(ModHelper);
NomaiVR.ModFolderPath = Helper.Manifest.ModFolderPath;
NomaiVR.GameDataPath = Helper.OwmlConfig.DataPath;
NomaiVR.ApplyMod();
}
public override void Configure(IModConfig config)
{
Helper = ModHelper;
var settingsProvider = new OwmlSettingsProvider(config);
ModSettings.SetProvider(settingsProvider);
}
}
}