diff --git a/AssemblyRemapper/Models/AppSettingsModel.cs b/AssemblyRemapper/Models/AppSettingsModel.cs index 74daef8..4307928 100644 --- a/AssemblyRemapper/Models/AppSettingsModel.cs +++ b/AssemblyRemapper/Models/AppSettingsModel.cs @@ -32,6 +32,9 @@ internal class RemapperSettings internal class AutoMapperSettings { + public int RequiredMatches { get; set; } = 5; + public bool MatchMode { get; set; } = true; public bool Publicize { get; set; } = false; public bool Unseal { get; set; } = false; + public List NamesToIgnore { get; set; } = []; } \ No newline at end of file diff --git a/AssemblyRemapper/AssemblyRemapper.csproj b/AssemblyRemapper/RemapperLib.csproj similarity index 100% rename from AssemblyRemapper/AssemblyRemapper.csproj rename to AssemblyRemapper/RemapperLib.csproj diff --git a/AssemblyRemapperGUI/Form1.Designer.cs b/AssemblyRemapperGUI/Form1.Designer.cs new file mode 100644 index 0000000..82de90e --- /dev/null +++ b/AssemblyRemapperGUI/Form1.Designer.cs @@ -0,0 +1,45 @@ +namespace AssemblyRemapperGUI +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + SuspendLayout(); + // + // Form1 + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1584, 1027); + Name = "Form1"; + Text = "Cj's Assembly Tool V0.1.0"; + ResumeLayout(false); + } + + #endregion + } +} diff --git a/AssemblyRemapperGUI/Form1.cs b/AssemblyRemapperGUI/Form1.cs new file mode 100644 index 0000000..8ec66c4 --- /dev/null +++ b/AssemblyRemapperGUI/Form1.cs @@ -0,0 +1,10 @@ +namespace AssemblyRemapperGUI +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/AssemblyRemapperGUI/Form1.resx b/AssemblyRemapperGUI/Form1.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/AssemblyRemapperGUI/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AssemblyRemapperGUI/Program.cs b/AssemblyRemapperGUI/Program.cs new file mode 100644 index 0000000..09b9a65 --- /dev/null +++ b/AssemblyRemapperGUI/Program.cs @@ -0,0 +1,17 @@ +namespace AssemblyRemapperGUI +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/AssemblyRemapperGUI/RemapperGUI.csproj b/AssemblyRemapperGUI/RemapperGUI.csproj new file mode 100644 index 0000000..556b92a --- /dev/null +++ b/AssemblyRemapperGUI/RemapperGUI.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + + + + + \ No newline at end of file diff --git a/AssemblyRemapper.sln b/Assembly_Tool.sln similarity index 60% rename from AssemblyRemapper.sln rename to Assembly_Tool.sln index 940c7c6..de42deb 100644 --- a/AssemblyRemapper.sln +++ b/Assembly_Tool.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.9.34728.123 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyRemapper", "AssemblyRemapper\AssemblyRemapper.csproj", "{84BF5F6E-9EEC-4B08-BE72-9F419A369124}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RemapperLib", "AssemblyRemapper\RemapperLib.csproj", "{84BF5F6E-9EEC-4B08-BE72-9F419A369124}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RemapperGUI", "AssemblyRemapperGUI\RemapperGUI.csproj", "{A854A2C9-EB8B-4B70-BB79-17F689756F48}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Debug|Any CPU.Build.0 = Debug|Any CPU {84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Release|Any CPU.ActiveCfg = Release|Any CPU {84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Release|Any CPU.Build.0 = Release|Any CPU + {A854A2C9-EB8B-4B70-BB79-17F689756F48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A854A2C9-EB8B-4B70-BB79-17F689756F48}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A854A2C9-EB8B-4B70-BB79-17F689756F48}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A854A2C9-EB8B-4B70-BB79-17F689756F48}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Templates/Settings.jsonc b/Templates/Settings.jsonc index 5915295..6c7a155 100644 --- a/Templates/Settings.jsonc +++ b/Templates/Settings.jsonc @@ -13,7 +13,12 @@ "MappingPath": "./Data/Mappings.jsonc" // Path to the mapping file }, "AutoMapper": { - "Publicize": true, // Publicize all types, methods, and properties : NOTE: Not run until after the remap has completed - "Unseal": true, // Unseal all types : NOTE: Not run until after the remap has completed + "RequiredMatches": 5, // Minimum number of times a member must have this name in the assembly before considering it for remapping + "MatchMode": true, // Disable making changes, only find matches and log + "Publicize": false, // Publicize all types, methods, and properties : NOTE: Not run until after the remap has completed + "Unseal": false, // Unseal all types : NOTE: Not run until after the remap has completed + "NamesToIgnore": [ // Any member name you want to ignore while iterating through the assembly + + ] } }