From c16b80311990158e843bc9d86778668bbf686f42 Mon Sep 17 00:00:00 2001
From: Cj <161484149+CJ-SPT@users.noreply.github.com>
Date: Thu, 13 Jun 2024 17:31:38 -0400
Subject: [PATCH] Minor changes
---
AssemblyRemapper/Remapper/Remapper.cs | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/AssemblyRemapper/Remapper/Remapper.cs b/AssemblyRemapper/Remapper/Remapper.cs
index ec167f1..5347ea2 100644
--- a/AssemblyRemapper/Remapper/Remapper.cs
+++ b/AssemblyRemapper/Remapper/Remapper.cs
@@ -60,23 +60,18 @@ internal class Remapper
{
foreach (var type in DataProvider.ModuleDefinition.Types)
{
- var result = ScoreType(type, mapping);
-
- if (result is not EMatchResult.NoMatch)
- {
- //Logger.LogDebug($"Remap [{type.Name} : {mapping.NewTypeName}] failed with reason {result}", silent: true);
- }
+ var _ = FindMatch(type, mapping);
}
}
///
- /// Score the type against the remap checking against all remap properties
+ /// Find a match result
///
/// Type to score
/// Remap to check against
///
- /// Failure reason or none if matched
- private EMatchResult ScoreType(TypeDefinition type, RemapModel remap)
+ /// EMatchResult
+ private EMatchResult FindMatch(TypeDefinition type, RemapModel remap)
{
// Handle Direct Remaps by strict naming first bypasses everything else
if (remap.UseForceRename)