Bug fixes
This commit is contained in:
parent
4ce0024460
commit
7e1bf009ec
@ -371,7 +371,7 @@ public partial class ReCodeItForm : Form
|
|||||||
Remapper.InitializeRemap(
|
Remapper.InitializeRemap(
|
||||||
CrossCompiler.ActiveProject.RemapModels,
|
CrossCompiler.ActiveProject.RemapModels,
|
||||||
CrossCompiler.ActiveProject.OriginalAssemblyPath,
|
CrossCompiler.ActiveProject.OriginalAssemblyPath,
|
||||||
CrossCompiler.ActiveProject.RemappedAssemblyPath);
|
CrossCompiler.ActiveProject.VisualStudioDependencyPath);
|
||||||
|
|
||||||
ReloadRemapTreeView(CrossCompiler.ActiveProject.RemapModels);
|
ReloadRemapTreeView(CrossCompiler.ActiveProject.RemapModels);
|
||||||
return;
|
return;
|
||||||
@ -906,7 +906,7 @@ public partial class ReCodeItForm : Form
|
|||||||
var activeProj = CrossCompiler.ActiveProject;
|
var activeProj = CrossCompiler.ActiveProject;
|
||||||
|
|
||||||
CCOriginalAssemblyText.Text = activeProj.OriginalAssemblyPath;
|
CCOriginalAssemblyText.Text = activeProj.OriginalAssemblyPath;
|
||||||
CCProjectDepdendencyText.Text = activeProj.RemappedAssemblyPath;
|
CCProjectDepdendencyText.Text = activeProj.VisualStudioDependencyPath;
|
||||||
CCVisualStudioProjDirText.Text = activeProj.VisualStudioSolutionPath;
|
CCVisualStudioProjDirText.Text = activeProj.VisualStudioSolutionPath;
|
||||||
CCBuildDirText.Text = activeProj.BuildDirectory;
|
CCBuildDirText.Text = activeProj.BuildDirectory;
|
||||||
|
|
||||||
@ -991,7 +991,6 @@ public partial class ReCodeItForm : Form
|
|||||||
|
|
||||||
ProjectManager.CreateProject(
|
ProjectManager.CreateProject(
|
||||||
CCOriginalAssemblyText.Text,
|
CCOriginalAssemblyText.Text,
|
||||||
CCProjectDepdendencyText.Text,
|
|
||||||
CCVisualStudioProjDirText.Text,
|
CCVisualStudioProjDirText.Text,
|
||||||
CCProjectDepdendencyText.Text,
|
CCProjectDepdendencyText.Text,
|
||||||
CCBuildDirText.Text);
|
CCBuildDirText.Text);
|
||||||
|
@ -16,7 +16,6 @@ public static class ProjectManager
|
|||||||
|
|
||||||
public static void CreateProject(
|
public static void CreateProject(
|
||||||
string OrigAssemblyPath,
|
string OrigAssemblyPath,
|
||||||
string RemappedAssemblyOutputPath,
|
|
||||||
string VSSolutionDirPath,
|
string VSSolutionDirPath,
|
||||||
string DependencyPath,
|
string DependencyPath,
|
||||||
string BuildPath)
|
string BuildPath)
|
||||||
@ -24,7 +23,7 @@ public static class ProjectManager
|
|||||||
Logger.Log("-----------------------------------------------", ConsoleColor.Yellow);
|
Logger.Log("-----------------------------------------------", ConsoleColor.Yellow);
|
||||||
Logger.Log($"Generating Cross Compiler project", ConsoleColor.Yellow);
|
Logger.Log($"Generating Cross Compiler project", ConsoleColor.Yellow);
|
||||||
Logger.Log($"Original Assembly Path {OrigAssemblyPath}", ConsoleColor.Yellow);
|
Logger.Log($"Original Assembly Path {OrigAssemblyPath}", ConsoleColor.Yellow);
|
||||||
Logger.Log($"Remapped Assembly Path: {RemappedAssemblyOutputPath}", ConsoleColor.Yellow);
|
Logger.Log($"Remapped Assembly Path: {DependencyPath}", ConsoleColor.Yellow);
|
||||||
Logger.Log($"Visual Studio Solution Directory: {VSSolutionDirPath}", ConsoleColor.Yellow);
|
Logger.Log($"Visual Studio Solution Directory: {VSSolutionDirPath}", ConsoleColor.Yellow);
|
||||||
Logger.Log($"Build Path: {BuildPath}", ConsoleColor.Yellow);
|
Logger.Log($"Build Path: {BuildPath}", ConsoleColor.Yellow);
|
||||||
|
|
||||||
@ -32,7 +31,6 @@ public static class ProjectManager
|
|||||||
ActiveProject = new CrossCompilerProjectModel
|
ActiveProject = new CrossCompilerProjectModel
|
||||||
{
|
{
|
||||||
OriginalAssemblyPath = OrigAssemblyPath,
|
OriginalAssemblyPath = OrigAssemblyPath,
|
||||||
RemappedAssemblyPath = RemappedAssemblyOutputPath,
|
|
||||||
VisualStudioSolutionPath = VSSolutionDirPath,
|
VisualStudioSolutionPath = VSSolutionDirPath,
|
||||||
VisualStudioDependencyPath = DependencyPath,
|
VisualStudioDependencyPath = DependencyPath,
|
||||||
BuildDirectory = BuildPath,
|
BuildDirectory = BuildPath,
|
||||||
@ -67,7 +65,7 @@ public static class ProjectManager
|
|||||||
public static void MoveOriginalReference()
|
public static void MoveOriginalReference()
|
||||||
{
|
{
|
||||||
var outPath = Path.Combine(
|
var outPath = Path.Combine(
|
||||||
ActiveProject.VisualStudioClonedSolutionDirectory,
|
ActiveProject.VisualStudioClonedDependencyPath,
|
||||||
ActiveProject.OriginalAssemblyDllName);
|
ActiveProject.OriginalAssemblyDllName);
|
||||||
|
|
||||||
Logger.Log(ActiveProject.VisualStudioClonedDependencyPath, ConsoleColor.Red);
|
Logger.Log(ActiveProject.VisualStudioClonedDependencyPath, ConsoleColor.Red);
|
||||||
|
@ -41,16 +41,16 @@ public class ReCodeItCrossCompiler
|
|||||||
Remapper.InitializeRemap(
|
Remapper.InitializeRemap(
|
||||||
ActiveProject.RemapModels,
|
ActiveProject.RemapModels,
|
||||||
ActiveProject.OriginalAssemblyPath,
|
ActiveProject.OriginalAssemblyPath,
|
||||||
ActiveProject.RemappedAssemblyPath,
|
ActiveProject.VisualStudioDependencyPath,
|
||||||
true);
|
true);
|
||||||
|
|
||||||
Logger.Log("-----------------------------------------------", ConsoleColor.Green);
|
Logger.Log("-----------------------------------------------", ConsoleColor.Green);
|
||||||
Logger.Log($"Generated Cross Mapped DLL for project {ActiveProject.SolutionName}", ConsoleColor.Green);
|
Logger.Log($"Generated Cross Mapped DLL for project {ActiveProject.SolutionName}", ConsoleColor.Green);
|
||||||
Logger.Log($"Built to: {Path.Combine(ActiveProject.RemappedAssemblyPath, ActiveProject.OriginalAssemblyDllName)}", ConsoleColor.Green);
|
Logger.Log($"Built to: {Path.Combine(ActiveProject.VisualStudioDependencyPath, ActiveProject.OriginalAssemblyDllName)}", ConsoleColor.Green);
|
||||||
Logger.Log($"Changed {ActiveProject.ChangedTypes.Count} types", ConsoleColor.Green);
|
Logger.Log($"Changed {ActiveProject.ChangedTypes.Count} types", ConsoleColor.Green);
|
||||||
Logger.Log($"Original assembly path: {ActiveProject.OriginalAssemblyPath}", ConsoleColor.Green);
|
Logger.Log($"Original assembly path: {ActiveProject.OriginalAssemblyPath}", ConsoleColor.Green);
|
||||||
Logger.Log($"Original assembly hash: {ActiveProject.OriginalAssemblyHash}", ConsoleColor.Green);
|
Logger.Log($"Original assembly hash: {ActiveProject.OriginalAssemblyHash}", ConsoleColor.Green);
|
||||||
Logger.Log($"Original patched assembly path: {ActiveProject.RemappedAssemblyPath}", ConsoleColor.Green);
|
Logger.Log($"Original patched assembly path: {ActiveProject.VisualStudioDependencyPath}", ConsoleColor.Green);
|
||||||
//Logger.Log($"Original patched assembly hash: {ActiveProject.RemappedAssemblyHash}", ConsoleColor.Green);
|
//Logger.Log($"Original patched assembly hash: {ActiveProject.RemappedAssemblyHash}", ConsoleColor.Green);
|
||||||
Logger.Log("-----------------------------------------------", ConsoleColor.Green);
|
Logger.Log("-----------------------------------------------", ConsoleColor.Green);
|
||||||
}
|
}
|
||||||
|
@ -13,13 +13,6 @@ public class CrossCompilerProjectModel
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string OriginalAssemblyPath { get; set; }
|
public string OriginalAssemblyPath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Remapped output path
|
|
||||||
///
|
|
||||||
/// (Required on creation)
|
|
||||||
/// </summary>
|
|
||||||
public string RemappedAssemblyPath { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The path to the working directory vs project
|
/// The path to the working directory vs project
|
||||||
///
|
///
|
||||||
@ -28,7 +21,8 @@ public class CrossCompilerProjectModel
|
|||||||
public string VisualStudioSolutionPath { get; set; }
|
public string VisualStudioSolutionPath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The path to the working directory vs project
|
/// The path to the dependency folder for the active solution. Also where the remapped dll is
|
||||||
|
/// built to and replaced
|
||||||
///
|
///
|
||||||
/// (Required on creation)
|
/// (Required on creation)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,7 +57,16 @@ public class CrossCompilerProjectModel
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The path to the cloned solutions dependency folder
|
/// The path to the cloned solutions dependency folder
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VisualStudioClonedDependencyPath => Path.GetDirectoryName(VisualStudioDependencyPath)!;
|
public string VisualStudioClonedDependencyPath
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
// Take just the folder name
|
||||||
|
var folderName = VisualStudioDependencyPath.Split('\\').Last();
|
||||||
|
|
||||||
|
return Path.Combine(VisualStudioClonedSolutionDirectory, folderName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public string ProjectDllName => SolutionName + ".dll";
|
public string ProjectDllName => SolutionName + ".dll";
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ public static class Logger
|
|||||||
|
|
||||||
private static void WriteToDisk(object message)
|
private static void WriteToDisk(object message)
|
||||||
{
|
{
|
||||||
if (true) { return; }
|
if (DataProvider.IsCli) { return; }
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user