Clear _alreadyGivenNames
on each run, Create mapping file if it doesn't exist instead of throwing an exception
This commit is contained in:
parent
ff0db0cae0
commit
3ab1c05547
@ -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;
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user