diff --git a/AquaMai/AquaMai.csproj b/AquaMai/AquaMai.csproj index a9f6589f..4d1d320b 100644 --- a/AquaMai/AquaMai.csproj +++ b/AquaMai/AquaMai.csproj @@ -266,8 +266,8 @@ + - diff --git a/AquaMai/AquaMai.yaml b/AquaMai/AquaMai.yaml index 0ccaa1fa..8ec7bc6a 100644 --- a/AquaMai/AquaMai.yaml +++ b/AquaMai/AquaMai.yaml @@ -4,4 +4,5 @@ UX: # Skip the warning screen and logo shown after the POST sequence SkipWarningScreen: true - + # Single player: Show 1P only, at the center of the screen + SinglePlayer: true diff --git a/AquaMai/Config.cs b/AquaMai/Config.cs index 41399699..8f20891e 100644 --- a/AquaMai/Config.cs +++ b/AquaMai/Config.cs @@ -10,6 +10,7 @@ namespace AquaMai public class UXConfig { public bool SkipWarningScreen { get; set; } + public bool SinglePlayer { get; set; } } } } \ No newline at end of file diff --git a/AquaMai/Main.cs b/AquaMai/Main.cs index 201d4401..99461d13 100644 --- a/AquaMai/Main.cs +++ b/AquaMai/Main.cs @@ -19,7 +19,7 @@ namespace AquaMai public override void OnInitializeMelon() { - MelonLogger.Msg("OnApplicationStart"); + MelonLogger.Msg("Loading mod settings..."); // Read AquaMai.yaml to load settings var yaml = new YamlDotNet.Serialization.Deserializer(); @@ -27,9 +27,17 @@ namespace AquaMai if (AppConfig.UX.SkipWarningScreen) { - MelonLogger.Msg("Patching CutsceneSkipping"); + MelonLogger.Msg("> Patching CutsceneSkipping"); HarmonyLib.Harmony.CreateAndPatchAll(typeof(SkipWarningScreen)); } + + if (AppConfig.UX.SinglePlayer) + { + MelonLogger.Msg("> Patching SinglePlayer"); + HarmonyLib.Harmony.CreateAndPatchAll(typeof(SinglePlayer)); + } + + MelonLogger.Msg("Loaded!"); } } } \ No newline at end of file diff --git a/AquaMai/SinglePlayer.cs b/AquaMai/UX/SinglePlayer.cs similarity index 100% rename from AquaMai/SinglePlayer.cs rename to AquaMai/UX/SinglePlayer.cs