2024-02-07 15:38:36 +08:00
|
|
|
|
using AquaMai.UX;
|
|
|
|
|
using MelonLoader;
|
|
|
|
|
using Tomlyn;
|
2024-02-07 13:45:47 +08:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
{
|
2024-02-07 15:38:36 +08:00
|
|
|
|
public static Config AppConfig { get; private set; }
|
|
|
|
|
|
2024-02-07 13:45:47 +08:00
|
|
|
|
public override void OnInitializeMelon()
|
|
|
|
|
{
|
|
|
|
|
MelonLogger.Msg("OnApplicationStart");
|
2024-02-07 15:38:36 +08:00
|
|
|
|
|
|
|
|
|
// Read AquaMai.toml to load settings
|
|
|
|
|
AppConfig = Toml.ToModel<Config>("AquaMai.toml");
|
|
|
|
|
|
|
|
|
|
if (AppConfig.UX.SkipWarningScreen)
|
|
|
|
|
{
|
|
|
|
|
MelonLogger.Msg("Patching CutsceneSkipping");
|
|
|
|
|
HarmonyLib.Harmony.CreateAndPatchAll(typeof(SkipWarningScreen));
|
|
|
|
|
}
|
2024-02-07 13:45:47 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|