From 470d2acae467d33debd84ea982503280a10ec1a2 Mon Sep 17 00:00:00 2001 From: akanyan Date: Tue, 2 Jul 2024 10:35:45 +0900 Subject: [PATCH] chore: cleanup --- LockSelectionTime/MU3/patch_SystemUI.cs | 2 +- LockSelectionTime/MU3/patch_UITimer.cs | 2 +- NaiveRating/MU3/NaiveRating.cs | 4 ++-- NaiveRating/MU3/patch_ANM_SWH_Profile.cs | 6 +++--- NaiveRating/MU3/patch_Scene_37_Result_Score.cs | 4 ++-- SkipPreMusicRitual/MU3.Battle/patch_GameEngine.cs | 6 ++---- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/LockSelectionTime/MU3/patch_SystemUI.cs b/LockSelectionTime/MU3/patch_SystemUI.cs index 091ac91..ab03f6f 100644 --- a/LockSelectionTime/MU3/patch_SystemUI.cs +++ b/LockSelectionTime/MU3/patch_SystemUI.cs @@ -4,7 +4,7 @@ namespace MU3; public class patch_SystemUI: SystemUI { public class patch_Timer: SystemUI.Timer { - public patch_Timer(UITimer timer): base(timer) { /* nop */ } + public patch_Timer(UITimer timer) : base(timer) { /* nop */ } public new void execute() { /* nop */ } public extern bool orig_get_show(); public extern void orig_set_show(bool value); diff --git a/LockSelectionTime/MU3/patch_UITimer.cs b/LockSelectionTime/MU3/patch_UITimer.cs index 6295ad3..04e26c8 100644 --- a/LockSelectionTime/MU3/patch_UITimer.cs +++ b/LockSelectionTime/MU3/patch_UITimer.cs @@ -6,7 +6,7 @@ namespace MU3; public class patch_UITimer: UITimer { public new void update() { /* nop */ } - public new void update(float externalCounter) { /* nop */ } + public new void update(float externalCounter) { /* nop */ } public extern void orig_initialize(float counter); public new void initialize(float counter) { orig_initialize(counter); diff --git a/NaiveRating/MU3/NaiveRating.cs b/NaiveRating/MU3/NaiveRating.cs index 974f55d..6cf3bbc 100644 --- a/NaiveRating/MU3/NaiveRating.cs +++ b/NaiveRating/MU3/NaiveRating.cs @@ -3,12 +3,12 @@ #pragma warning disable IDE0051 #pragma warning disable IDE1006 -using System.Collections.Generic; -using System.Linq; using MU3.Data; using MU3.DataStudio; using MU3.User; using MU3.Util; +using System.Collections.Generic; +using System.Linq; namespace MU3; diff --git a/NaiveRating/MU3/patch_ANM_SWH_Profile.cs b/NaiveRating/MU3/patch_ANM_SWH_Profile.cs index e69327f..b42c227 100644 --- a/NaiveRating/MU3/patch_ANM_SWH_Profile.cs +++ b/NaiveRating/MU3/patch_ANM_SWH_Profile.cs @@ -5,17 +5,17 @@ using MU3.Util; namespace MU3; -public class patch_ANM_SWH_Profile : ANM_SWH_Profile { +public class patch_ANM_SWH_Profile: ANM_SWH_Profile { public extern void orig_setUpLogin(); // Fixes login display public new void setUpLogin() { - UserManager instance = Singleton.instance; + UserManager instance = Singleton.instance; var prev = instance.userPreview; var temp = prev; temp.dispRating = 0; instance.userPreview = temp; orig_setUpLogin(); instance.userPreview = prev; - } + } } \ No newline at end of file diff --git a/NaiveRating/MU3/patch_Scene_37_Result_Score.cs b/NaiveRating/MU3/patch_Scene_37_Result_Score.cs index 9dd2286..be365d4 100644 --- a/NaiveRating/MU3/patch_Scene_37_Result_Score.cs +++ b/NaiveRating/MU3/patch_Scene_37_Result_Score.cs @@ -13,7 +13,7 @@ public class patch_Scene_37_Result_Score: Scene_37_Result_Score { // Fixes rating+/rating- display private void TechRating_Init() { - var origRating = playInfo_.sessionResult.rating_; + var origRating = playInfo_.sessionResult.rating_; var origPrevRating = playInfo_.sessionResult.prevRating_; playInfo_.sessionResult.rating_ = NaiveRating.Get(); @@ -23,5 +23,5 @@ public class patch_Scene_37_Result_Score: Scene_37_Result_Score { playInfo_.sessionResult.rating_ = origRating; playInfo_.sessionResult.prevRating_ = origPrevRating; - } + } } \ No newline at end of file diff --git a/SkipPreMusicRitual/MU3.Battle/patch_GameEngine.cs b/SkipPreMusicRitual/MU3.Battle/patch_GameEngine.cs index 478ef5b..b9230cc 100644 --- a/SkipPreMusicRitual/MU3.Battle/patch_GameEngine.cs +++ b/SkipPreMusicRitual/MU3.Battle/patch_GameEngine.cs @@ -1,9 +1,7 @@ -#pragma warning disable CS0108 - -namespace MU3.Battle; +namespace MU3.Battle; public class patch_GameEngine: GameEngine { - public bool isStartCutsceneFinish() { + public new bool isStartCutsceneFinish() { return true; } } \ No newline at end of file