磁导航1.0内部交管和信号交互
This commit is contained in:
@@ -24,7 +24,7 @@ namespace StandardScene.Fass2Simulator
|
||||
public bool AutoCompleteStationActions { get; set; }
|
||||
public string NodeProfilesPath { get; set; } = "sim-nodes.json";
|
||||
public bool EnableFileLog { get; set; } = true;
|
||||
public string LogDirectory { get; set; } = "logs";
|
||||
public string LogDirectory { get; set; } = "log";
|
||||
public Dictionary<string, Fass2SimNodeProfile> NodeProfiles { get; set; } = new Dictionary<string, Fass2SimNodeProfile>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace StandardScene.Fass2Simulator
|
||||
|
||||
public static string GetLogDirectory()
|
||||
{
|
||||
return _logDirectory ?? ResolveLogDirectory("logs");
|
||||
return _logDirectory ?? ResolveLogDirectory("log");
|
||||
}
|
||||
|
||||
private static void EnsureDefaultWriter()
|
||||
@@ -129,7 +129,7 @@ namespace StandardScene.Fass2Simulator
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(configuredPath))
|
||||
{
|
||||
return Path.Combine(AppContext.BaseDirectory, "logs");
|
||||
return Path.Combine(AppContext.BaseDirectory, "log");
|
||||
}
|
||||
|
||||
return Path.IsPathRooted(configuredPath)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace StandardScene.Fass2Simulator
|
||||
Fass2SimFileLogger.Shutdown();
|
||||
};
|
||||
|
||||
AppendLog("就绪。配置参数后点击「启动模拟」开始联调。完整日志将写入 logs 目录。");
|
||||
AppendLog("就绪。配置参数后点击「启动模拟」开始联调。完整日志将写入 log 目录。");
|
||||
}
|
||||
|
||||
private void StartButton_Click(object sender, RoutedEventArgs e)
|
||||
@@ -317,7 +317,7 @@ namespace StandardScene.Fass2Simulator
|
||||
AutoCompleteStationActions = AutoCompleteBox.IsChecked == true,
|
||||
LogRawFrames = LogRawFramesBox.IsChecked == true,
|
||||
EnableFileLog = _config?.EnableFileLog ?? true,
|
||||
LogDirectory = _config?.LogDirectory ?? "logs"
|
||||
LogDirectory = _config?.LogDirectory ?? "log"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
"AutoCompleteStationActions": false,
|
||||
"NodeProfilesPath": "sim-nodes.json",
|
||||
"EnableFileLog": true,
|
||||
"LogDirectory": "logs\\car2"
|
||||
"LogDirectory": "log\\car2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
"AutoCompleteStationActions": false,
|
||||
"NodeProfilesPath": "sim-nodes.json",
|
||||
"EnableFileLog": true,
|
||||
"LogDirectory": "logs"
|
||||
"LogDirectory": "log"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user