Fix load button bugs

This commit is contained in:
Cj 2024-06-19 00:02:25 -04:00
parent 1559b663fa
commit 564dbf2e57
2 changed files with 8 additions and 1 deletions

View File

@ -275,6 +275,8 @@ public partial class ReCodeItForm : Form
DataProvider.LoadMappingFile(result); DataProvider.LoadMappingFile(result);
AppSettings.Remapper.MappingPath = result; AppSettings.Remapper.MappingPath = result;
AppSettings.Remapper.UseProjectMappings = false;
ActiveProjectMappingsCheckbox.Checked = false;
DataProvider.SaveAppSettings(); DataProvider.SaveAppSettings();
LoadedMappingFilePath.Text = result; LoadedMappingFilePath.Text = result;

View File

@ -24,7 +24,12 @@ public class ReCodeItCrossCompiler
public void StartRemap() public void StartRemap()
{ {
ChangedTypes.Clear(); ChangedTypes.Clear();
Remapper.InitializeRemap(ActiveProject.OriginalAssemblyPath, ActiveProject.RemappedAssemblyPath, true);
Remapper.InitializeRemap(
ActiveProject.RemapModels,
ActiveProject.OriginalAssemblyPath,
ActiveProject.RemappedAssemblyPath,
true);
if (ActiveProject == null) if (ActiveProject == null)
{ {