EP 0.1.1 语句分界线尚未完成

This commit is contained in:
ninemine
2025-07-03 21:50:26 +08:00
parent fff7b274f5
commit 6806d90829
12 changed files with 175 additions and 123 deletions

View File

@@ -16,7 +16,6 @@ namespace Convention
public static void GenerateEmptyConfigJson(ToolFile file)
{
file.Open(System.IO.FileMode.CreateNew);
file.SaveAsRawJson<Dictionary<string, object>>(new()
{
{ "properties",new Dictionary<string, object>() }
@@ -71,12 +70,9 @@ namespace Convention
var file = DataDir | path;
if (file.Exists())
{
try
{
file.Open(System.IO.FileMode.Create);
return true;
}
catch (Exception) { }
file.Delete();
file.Create();
return true;
}
return false;
}