Check GitHub for a newer starter once a day, with a button to check now

The stable channel compares versions; the testing channel offers the staging
build of another commit. The channel switch is the starter's only, not the
simulator's.
This commit is contained in:
maj00r
2026-10-04 13:26:49 +02:00
parent a7a1e34239
commit 2b3c46938c
19 changed files with 777 additions and 1 deletions

View File

@@ -50,6 +50,9 @@ public sealed class SettingsPaths
/// </summary>
public string VehicleCacheDirectory() => Path.Combine(UserConfigDirectory(), "vehicles");
/// <summary>The day of the last update check and the release it found.</summary>
public string UpdateCheckPath() => Path.Combine(UserConfigDirectory(), "updatecheck.txt");
public string UserConfigDirectory() =>
Path.GetDirectoryName(UserConfigPath()) ?? _environment.BaseDirectory;
}