From b8f2a139a30d5709b0ca182d44ece7ea18399bb4 Mon Sep 17 00:00:00 2001 From: Tianyi Cao Date: Wed, 7 Feb 2024 02:21:46 -0800 Subject: [PATCH] formatting --- AquaMai.csproj | 2 +- Config.cs | 6 +++--- Main.cs | 1 - UX/SkipToMusicSelection.cs | 8 ++++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/AquaMai.csproj b/AquaMai.csproj index 86d93700..815e02d6 100644 --- a/AquaMai.csproj +++ b/AquaMai.csproj @@ -279,4 +279,4 @@ - \ No newline at end of file + diff --git a/Config.cs b/Config.cs index 1102c7a2..a9b8fb56 100644 --- a/Config.cs +++ b/Config.cs @@ -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; } } } -} \ No newline at end of file +} diff --git a/Main.cs b/Main.cs index 0f0abeea..472533f0 100644 --- a/Main.cs +++ b/Main.cs @@ -50,7 +50,6 @@ namespace AquaMai if (AppConfig.Cheat.TicketUnlock) Patch(typeof(TicketUnlock)); - if (AppConfig.UX.SkipToMusicSelection) { Patch(typeof(SkipToMusicSelection)); diff --git a/UX/SkipToMusicSelection.cs b/UX/SkipToMusicSelection.cs index 0b63f268..42e4de48 100644 --- a/UX/SkipToMusicSelection.cs +++ b/UX/SkipToMusicSelection.cs @@ -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);