mirror of https://github.com/hykilpikonna/AquaDX
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using AquaMai.UX;
|
|
using MelonLoader;
|
|
|
|
namespace AquaMai
|
|
{
|
|
public static class BuildInfo
|
|
{
|
|
public const string Name = "AquaMai";
|
|
public const string Description = "Mod for Sinmai";
|
|
public const string Author = "Aza";
|
|
public const string Company = null;
|
|
public const string Version = "1.0.0";
|
|
public const string DownloadLink = null;
|
|
}
|
|
|
|
public class AquaMai : MelonMod
|
|
{
|
|
public static Config AppConfig { get; private set; }
|
|
|
|
public override void OnInitializeMelon()
|
|
{
|
|
MelonLogger.Msg("Loading mod settings...");
|
|
|
|
// Read AquaMai.yaml to load settings
|
|
var yaml = new YamlDotNet.Serialization.Deserializer();
|
|
AppConfig = yaml.Deserialize<Config>(System.IO.File.ReadAllText("AquaMai.yaml"));
|
|
|
|
if (AppConfig.UX.SkipWarningScreen)
|
|
{
|
|
MelonLogger.Msg("> Patching SkipWarningScreen");
|
|
HarmonyLib.Harmony.CreateAndPatchAll(typeof(SkipWarningScreen));
|
|
}
|
|
|
|
if (AppConfig.UX.SinglePlayer)
|
|
{
|
|
MelonLogger.Msg("> Patching SinglePlayer");
|
|
HarmonyLib.Harmony.CreateAndPatchAll(typeof(SinglePlayer));
|
|
}
|
|
|
|
MelonLogger.Msg("Loaded!");
|
|
}
|
|
}
|
|
} |