formatting

pull/7/head
Tianyi Cao 2024-02-07 02:21:46 -08:00
parent abe1d3ad29
commit 017d00371d
4 changed files with 8 additions and 9 deletions

View File

@ -279,4 +279,4 @@
<Content Include="AquaMai.toml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

View File

@ -7,12 +7,12 @@ namespace AquaMai
{
public UXConfig UX { get; set; }
public CheatConfig Cheat { get; set; }
public class CheatConfig
{
public bool TicketUnlock { get; set; }
}
public class UXConfig
{
public bool SkipWarningScreen { get; set; }
@ -20,4 +20,4 @@ namespace AquaMai
public bool SkipToMusicSelection { get; set; }
}
}
}
}

View File

@ -50,7 +50,6 @@ namespace AquaMai
if (AppConfig.Cheat.TicketUnlock)
Patch(typeof(TicketUnlock));
if (AppConfig.UX.SkipToMusicSelection)
{
Patch(typeof(SkipToMusicSelection));

View File

@ -3,19 +3,19 @@ using Manager;
using Process;
using Process.Information;
namespace AquaMai.UX
namespace AquaMai.UX
{
public class SkipToMusicSelection
public class SkipToMusicSelection
{
/*
* Highly experimental, may well break some stuff
* Works by overriding the info screen (where it shows new events and stuff)
* to directly exit to the music selection screen, skipping character and
* to directly exit to the music selection screen, skipping character and
* event selection, among others
*/
[HarmonyPrefix]
[HarmonyPatch(typeof(InformationProcess), "OnUpdate")]
public static bool OnUpdate(InformationProcess __instance, ProcessDataContainer ___container)
public static bool OnUpdate(InformationProcess __instance, ProcessDataContainer ___container)
{
GameManager.SetMaxTrack();
___container.processManager.AddProcess(new MusicSelectProcess(___container), 50);