diff --git a/RecodeItLib/CrossCompiler/ReCodeItCrossCompiler.cs b/RecodeItLib/CrossCompiler/ReCodeItCrossCompiler.cs index 1047a9a..b34bb06 100644 --- a/RecodeItLib/CrossCompiler/ReCodeItCrossCompiler.cs +++ b/RecodeItLib/CrossCompiler/ReCodeItCrossCompiler.cs @@ -24,12 +24,6 @@ public class ReCodeItCrossCompiler { ActiveProject.ChangedTypes.Clear(); - Remapper.InitializeRemap( - ActiveProject.RemapModels, - ActiveProject.OriginalAssemblyPath, - ActiveProject.RemappedAssemblyPath, - true); - if (ActiveProject == null) { Logger.Log("ERROR: No Cross Compiler Project is loaded, create or load one first.", ConsoleColor.Red); @@ -42,6 +36,12 @@ public class ReCodeItCrossCompiler return; } + Remapper.InitializeRemap( + ActiveProject.RemapModels, + ActiveProject.OriginalAssemblyPath, + ActiveProject.RemappedAssemblyPath, + true); + Logger.Log("-----------------------------------------------", ConsoleColor.Yellow); Logger.Log($"Cross patch remap result", ConsoleColor.Yellow); Logger.Log($"Changed {ActiveProject.ChangedTypes.Count} types", ConsoleColor.Yellow);