Keep scenery files intact on save and follow them on disk

Saves keep comments and every byte they do not change. Faults in a scenery's
text are found and described. Files that change while the starter runs are
picked up without a manual reload.
This commit is contained in:
maj00r
2026-11-01 16:06:15 +01:00
parent b6735fe345
commit 69aa075bfa
30 changed files with 3596 additions and 215 deletions

View File

@@ -353,7 +353,7 @@ public partial class Scenarios : UserControl
private void PopulateFaults(Scenery scenery)
{
var lines = new List<string>();
lines.AddRange(scenery.Faults);
lines.Add(StarterNG.Domain.Sceneries.SceneryFaultText.Format(scenery.Faults, 500, key => App.Loc[key]));
var db = AppServices.Current.Library.Vehicles;
foreach (var ts in scenery.Trainsets)