Fix protenteial error

This commit is contained in:
Cj 2024-06-19 06:27:30 -04:00
parent df568681f5
commit 3cce4dd070

View File

@ -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);