From 8284605d04812710f2bc8d2ba2aa1ba2df7d2332 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:37:14 -0400 Subject: [PATCH] Fix build error --- AssemblyRemapper/Remapper/Remapper.cs | 2 +- Templates/Settings.jsonc | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/AssemblyRemapper/Remapper/Remapper.cs b/AssemblyRemapper/Remapper/Remapper.cs index 5347ea2..b16f98c 100644 --- a/AssemblyRemapper/Remapper/Remapper.cs +++ b/AssemblyRemapper/Remapper/Remapper.cs @@ -82,7 +82,7 @@ internal class Remapper foreach (var nestedType in type.NestedTypes) { - ScoreType(nestedType, remap); + FindMatch(nestedType, remap); } var score = new ScoringModel diff --git a/Templates/Settings.jsonc b/Templates/Settings.jsonc index a54742d..f276309 100644 --- a/Templates/Settings.jsonc +++ b/Templates/Settings.jsonc @@ -1,10 +1,14 @@ { - "Debug": false, // Enables extra debug logging, slows down the program by alot - "SilentMode": true, // The tool will stop and prompt you to continue on every remapping if disabled - "MaxMatchCount": 5, // Default max matches the remapper will return - "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 - "AssemblyPath": "./Data/Managed/Assembly-CSharp.dll", // Path to the assembly we want to remap - "OutputPath": "./Data/Assembly-CSharp-Remapped.dll", // Path including the filename and extension we want to write the changes to - "MappingPath": "./Data/Mappings.jsonc" // Path to the mapping file + "AppSettings": { + "Debug": false, // Enables extra debug logging, slows down the program by alot + "SilentMode": true // The tool will stop and prompt you to continue on every remapping if disabled + }, + "Remapper": { + "MaxMatchCount": 5, // Max matches the remapper will return + "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 + "AssemblyPath": "./Data/Managed/Assembly-CSharp.dll", // Path to the assembly we want to remap + "OutputPath": "./Data/Assembly-CSharp-Remapped.dll", // Path including the filename and extension we want to write the changes to + "MappingPath": "./Data/Mappings.jsonc" // Path to the mapping file + } }