mirror of https://github.com/hykilpikonna/AquaDX
[+] Add option
parent
aa4fe50eeb
commit
aa5f4fb986
|
@ -266,8 +266,8 @@
|
|||
<Compile Include="Config.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Main.cs" />
|
||||
<Compile Include="UX\SinglePlayer.cs" />
|
||||
<Compile Include="UX\SkipWarningScreen.cs" />
|
||||
<Compile Include="SinglePlayer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace AquaMai
|
|||
public class UXConfig
|
||||
{
|
||||
public bool SkipWarningScreen { get; set; }
|
||||
public bool SinglePlayer { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue