feat(render): implement Campaign AR and terrain fidelity

This commit is contained in:
Erik 2026-08-22 13:13:29 +02:00
parent 99cf26e00c
commit 7a5f96ede5
368 changed files with 50611 additions and 950 deletions

View file

@ -72,6 +72,16 @@ public sealed record ApplicationPathSet(
{
platform ??= ApplicationPathEnvironment.Instance;
// Explicit method/CLI arguments remain authoritative. The environment
// seam lets graphical automation and portable installations isolate
// all mutable user state without rewriting the real user's settings.
configDirectory ??= NonEmpty(
platform.GetEnvironmentVariable("ACDREAM_CONFIG_DIR"));
dataDirectory ??= NonEmpty(
platform.GetEnvironmentVariable("ACDREAM_DATA_DIR"));
cacheDirectory ??= NonEmpty(
platform.GetEnvironmentVariable("ACDREAM_CACHE_DIR"));
string config;
string data;
string cache;
@ -140,6 +150,9 @@ public sealed record ApplicationPathSet(
return Path.Combine(root, leaf);
}
private static string? NonEmpty(string? value) =>
string.IsNullOrWhiteSpace(value) ? null : value;
private static string RequireFolder(
IApplicationPathEnvironment platform,
Environment.SpecialFolder folder)