From ab4cee9646771e6a62530b940029720d696fffa6 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Sat, 15 Jun 2024 21:37:55 -0400 Subject: [PATCH] Misc --- RecodeItLib/AutoMapper/ReCodeItAutoMapper.cs | 2 ++ RecodeItLib/Remapper/Search/TypeDefExtensions.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RecodeItLib/AutoMapper/ReCodeItAutoMapper.cs b/RecodeItLib/AutoMapper/ReCodeItAutoMapper.cs index 56c5add..ed29b1f 100644 --- a/RecodeItLib/AutoMapper/ReCodeItAutoMapper.cs +++ b/RecodeItLib/AutoMapper/ReCodeItAutoMapper.cs @@ -238,6 +238,8 @@ public class ReCodeItAutoMapper Logger.Log($"IsStruct: {pair.IsStruct}"); Logger.Log($"------------------------------------------------------------------------"); } + + Logger.Log($"Automatically remapped {MappingPairs.Count} objects"); } private void WriteChanges() diff --git a/RecodeItLib/Remapper/Search/TypeDefExtensions.cs b/RecodeItLib/Remapper/Search/TypeDefExtensions.cs index 3427591..7341843 100644 --- a/RecodeItLib/Remapper/Search/TypeDefExtensions.cs +++ b/RecodeItLib/Remapper/Search/TypeDefExtensions.cs @@ -177,7 +177,6 @@ internal static class TypeDefExtensions { return EMatchResult.Disabled; } - var attrs = type.CustomAttributes; if (type.HasCustomAttributes == parms.HasAttribute) {