From 735e9a4a36bd3285bed750794e3ac5695178e963 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:47:51 -0500 Subject: [PATCH] rename remapper class --- ReCodeItCLI/Commands/ReMap.cs | 2 +- RecodeItGUI/GUI/Main.cs | 4 ++-- RecodeItLib/Remapper/{ReCodeItRemapper.cs => ReMapper.cs} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename RecodeItLib/Remapper/{ReCodeItRemapper.cs => ReMapper.cs} (99%) diff --git a/ReCodeItCLI/Commands/ReMap.cs b/ReCodeItCLI/Commands/ReMap.cs index c507ea4..b412a46 100644 --- a/ReCodeItCLI/Commands/ReMap.cs +++ b/ReCodeItCLI/Commands/ReMap.cs @@ -9,7 +9,7 @@ namespace ReCodeItCLI.Commands; [Command("ReMap", Description = "Generates a re-mapped dll provided a mapping file and de-obfuscated dll")] public class ReMap : ICommand { - private ReCodeItRemapper _remapper { get; set; } = new(); + private ReMapper _remapper { get; set; } = new(); [CommandParameter(0, IsRequired = true, Description = "The absolute path to your mapping.json file, supports .json and .jsonc")] public required string MappingJsonPath { get; init; } diff --git a/RecodeItGUI/GUI/Main.cs b/RecodeItGUI/GUI/Main.cs index 773e794..761aaea 100644 --- a/RecodeItGUI/GUI/Main.cs +++ b/RecodeItGUI/GUI/Main.cs @@ -7,7 +7,7 @@ namespace ReCodeIt.GUI; public partial class ReCodeItForm : Form { - private static ReCodeItRemapper Remapper { get; set; } = new(); + private static ReMapper Remapper { get; set; } = new(); private static Settings AppSettings => DataProvider.Settings; private bool _isSearched = false; @@ -349,7 +349,7 @@ public partial class ReCodeItForm : Form private void RunRemapButton_Click(object sender, EventArgs e) { - if (ReCodeItRemapper.IsRunning) { return; } + if (ReMapper.IsRunning) { return; } if (string.IsNullOrEmpty(AppSettings.Remapper.AssemblyPath)) { diff --git a/RecodeItLib/Remapper/ReCodeItRemapper.cs b/RecodeItLib/Remapper/ReMapper.cs similarity index 99% rename from RecodeItLib/Remapper/ReCodeItRemapper.cs rename to RecodeItLib/Remapper/ReMapper.cs index 2618426..3dc340a 100644 --- a/RecodeItLib/Remapper/ReCodeItRemapper.cs +++ b/RecodeItLib/Remapper/ReMapper.cs @@ -9,7 +9,7 @@ using System.Reflection; namespace ReCodeItLib.ReMapper; -public class ReCodeItRemapper +public class ReMapper { private ModuleDefMD? Module { get; set; }