Use Paths.BepInExRootPath, and cleanup dirs

This commit is contained in:
Sinai
2021-06-07 19:27:39 +10:00
parent 91671bf243
commit 0d10f94eb5
7 changed files with 8 additions and 16 deletions

View File

@ -87,9 +87,6 @@ namespace UnityExplorer.Core.Config
foreach (var entry in ConfigManager.InternalConfigs)
sec.AddKey(entry.Key, entry.Value.BoxedValue.ToString());
if (!Directory.Exists(ExplorerCore.Loader.ConfigFolder))
Directory.CreateDirectory(ExplorerCore.Loader.ConfigFolder);
File.WriteAllText(INI_PATH, data.ToString());
}