From 41a1e75946ba565b2ec16f8bd515ed936fc22f8d Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Fri, 6 Oct 2023 20:23:48 -0400 Subject: [PATCH] Formatting/cleanup --- .editorconfig | 8 ++++++++ ConsoleCommands.cs | 1 - PatchEntryPoint.cs | 1 - Patches/GhostRaceMarbleControllerPatches.cs | 1 - Patches/MarbleControllerPatches.cs | 2 -- Patches/MarbleHolderPatches.cs | 4 +--- Patches/VoteAvatarPatches.cs | 1 - Shared.cs | 4 +--- UserProperties.xml | 16 ++++++++-------- 9 files changed, 18 insertions(+), 20 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3b04cea --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +# https://editorconfig.org/ + +root = true + +[*.cs] +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/ConsoleCommands.cs b/ConsoleCommands.cs index 13d604d..cfd4c1e 100644 --- a/ConsoleCommands.cs +++ b/ConsoleCommands.cs @@ -1,5 +1,4 @@ using MIU; -using System; using System.Collections.Generic; using System.Reflection; using UnityEngine; diff --git a/PatchEntryPoint.cs b/PatchEntryPoint.cs index 8f8ff7e..a124793 100644 --- a/PatchEntryPoint.cs +++ b/PatchEntryPoint.cs @@ -1,5 +1,4 @@ using HarmonyLib; -using System; using System.IO; using System.Reflection; using UnityEngine; diff --git a/Patches/GhostRaceMarbleControllerPatches.cs b/Patches/GhostRaceMarbleControllerPatches.cs index 83ca281..bd47df9 100644 --- a/Patches/GhostRaceMarbleControllerPatches.cs +++ b/Patches/GhostRaceMarbleControllerPatches.cs @@ -1,6 +1,5 @@ using HarmonyLib; using MIU; -using System; using System.Collections.Generic; using UnityEngine; diff --git a/Patches/MarbleControllerPatches.cs b/Patches/MarbleControllerPatches.cs index 0d6c092..6235d9f 100644 --- a/Patches/MarbleControllerPatches.cs +++ b/Patches/MarbleControllerPatches.cs @@ -1,8 +1,6 @@ using HarmonyLib; using MIU; -using System; using System.Collections.Generic; -using UnityEngine; namespace CustomCosmeticLoader.Patches { diff --git a/Patches/MarbleHolderPatches.cs b/Patches/MarbleHolderPatches.cs index 7e48295..adf0dca 100644 --- a/Patches/MarbleHolderPatches.cs +++ b/Patches/MarbleHolderPatches.cs @@ -1,7 +1,5 @@ using HarmonyLib; using MIU; -using Parse.Common.Internal; -using System; using System.Collections.Generic; using System.Reflection; using UnityEngine; @@ -56,7 +54,7 @@ namespace CustomCosmeticLoader.Patches return; skin = Config.skins[Config.otherPlayers[controller.nickname]]; } - } + } else { if (MarbleManager.Replaying) diff --git a/Patches/VoteAvatarPatches.cs b/Patches/VoteAvatarPatches.cs index b4ef5cd..e6c5b08 100644 --- a/Patches/VoteAvatarPatches.cs +++ b/Patches/VoteAvatarPatches.cs @@ -1,5 +1,4 @@ using HarmonyLib; -using System; using UnityEngine; namespace CustomCosmeticLoader.Patches diff --git a/Shared.cs b/Shared.cs index b58aa8b..8b360cf 100644 --- a/Shared.cs +++ b/Shared.cs @@ -1,6 +1,4 @@ -using System; -using System.Runtime.Remoting.Messaging; -using UnityEngine; +using UnityEngine; namespace CustomCosmeticLoader { diff --git a/UserProperties.xml b/UserProperties.xml index 9972341..844fda9 100644 --- a/UserProperties.xml +++ b/UserProperties.xml @@ -1,10 +1,10 @@ - - - True - - - - $(GameDir)\Mods\CustomCosmeticLoader - + + + True + + + + $(GameDir)\Mods\CustomCosmeticLoader +