From e4aa6556834737d82816f51244f2aaa69982dba6 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:04:11 -0400 Subject: [PATCH] Don't allow remapper to run on obfuscated assemblies --- RecodeItLib/Remapper/ReCodeItRemapper.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/RecodeItLib/Remapper/ReCodeItRemapper.cs b/RecodeItLib/Remapper/ReCodeItRemapper.cs index 8989366..959a96d 100644 --- a/RecodeItLib/Remapper/ReCodeItRemapper.cs +++ b/RecodeItLib/Remapper/ReCodeItRemapper.cs @@ -69,7 +69,13 @@ public class ReCodeItRemapper Stopwatch.Start(); var types = Module.GetTypes(); - + + if (!types.Any(t => t.Name.Contains("GClass"))) + { + Logger.Log("You must de-obfuscate the assembly before remapping it.\n", ConsoleColor.Red); + return; + } + var tasks = new List(remapModels.Count); foreach (var remap in remapModels) {