Clear _alreadyGivenNames on each run, Create mapping file if it doesn't exist instead of throwing an exception

This commit is contained in:
Cj 2024-08-29 19:35:27 -04:00
parent ff0db0cae0
commit 3ab1c05547
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ public class ReCodeItRemapper
{ {
_remaps = []; _remaps = [];
_remaps = remapModels; _remaps = remapModels;
_alreadyGivenNames = [];
Module = DataProvider.LoadModule(assemblyPath); Module = DataProvider.LoadModule(assemblyPath);
OutPath = outPath; OutPath = outPath;

View File

@ -97,7 +97,7 @@ public static class DataProvider
{ {
if (!File.Exists(path)) if (!File.Exists(path))
{ {
throw new FileNotFoundException($"path `{path}` does not exist..."); File.Create(path).Close();
} }
JsonSerializerSettings settings = new() JsonSerializerSettings settings = new()