mirror of https://github.com/hykilpikonna/AquaDX
commit
2bf86423c9
|
@ -269,6 +269,7 @@
|
||||||
<Compile Include="Performance\ImproveLoadSpeed.cs" />
|
<Compile Include="Performance\ImproveLoadSpeed.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Main.cs" />
|
<Compile Include="Main.cs" />
|
||||||
|
<Compile Include="UX\CustomVersionString.cs" />
|
||||||
<Compile Include="UX\SinglePlayer.cs" />
|
<Compile Include="UX\SinglePlayer.cs" />
|
||||||
<Compile Include="UX\SkipWarningScreen.cs" />
|
<Compile Include="UX\SkipWarningScreen.cs" />
|
||||||
<Compile Include="UX\SkipToMusicSelection.cs" />
|
<Compile Include="UX\SkipToMusicSelection.cs" />
|
||||||
|
|
|
@ -12,8 +12,10 @@ TicketUnlock=true
|
||||||
SkipWarningScreen=true
|
SkipWarningScreen=true
|
||||||
# Single player: Show 1P only, at the center of the screen
|
# Single player: Show 1P only, at the center of the screen
|
||||||
SinglePlayer=true
|
SinglePlayer=true
|
||||||
# !!EXPERIMENTAL!! Skip from the card-scanning screen directly to the music selection screen
|
# !!EXPERIMENTAL!! Skip from the card-scanning screen directly to music selection screen
|
||||||
SkipToMusicSelection=false
|
SkipToMusicSelection=false
|
||||||
|
# Set the version string displayed at the top-right corner of the screen
|
||||||
|
CustomVersionString=""
|
||||||
|
|
||||||
[Performance]
|
[Performance]
|
||||||
# Disable some useless checks and delays to speed up the game boot process
|
# Disable some useless checks and delays to speed up the game boot process
|
||||||
|
|
|
@ -19,6 +19,7 @@ namespace AquaMai
|
||||||
public bool SkipWarningScreen { get; set; }
|
public bool SkipWarningScreen { get; set; }
|
||||||
public bool SinglePlayer { get; set; }
|
public bool SinglePlayer { get; set; }
|
||||||
public bool SkipToMusicSelection { get; set; }
|
public bool SkipToMusicSelection { get; set; }
|
||||||
|
public string CustomVersionString { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PerformanceConfig
|
public class PerformanceConfig
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using AquaMai.Fix;
|
using AquaMai.Fix;
|
||||||
|
using AquaMai.UX;
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
using Tomlet;
|
using Tomlet;
|
||||||
|
|
||||||
|
@ -77,6 +78,7 @@ namespace AquaMai
|
||||||
// Fixes that does not have side effects
|
// Fixes that does not have side effects
|
||||||
// These don't need to be configurable
|
// These don't need to be configurable
|
||||||
Patch(typeof(FixCharaCrash));
|
Patch(typeof(FixCharaCrash));
|
||||||
|
Patch(typeof(CustomVersionString));
|
||||||
|
|
||||||
MelonLogger.Msg("Loaded!");
|
MelonLogger.Msg("Loaded!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace AquaMai.UX
|
||||||
|
{
|
||||||
|
public class CustomVersionString
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Patch displayVersionString Property Getter
|
||||||
|
*/
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(MAI2System.Config), "displayVersionString", MethodType.Getter)]
|
||||||
|
public static bool GetDisplayVersionString(ref string __result)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(AquaMai.AppConfig.UX.CustomVersionString))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
__result = AquaMai.AppConfig.UX.CustomVersionString;
|
||||||
|
// Return false to block the original method
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue