Add dynamic lights setting and fix macOS config paths

- Add DynamicLights (0–7) setting mapped to the eu07.ini dynamiclights key,
  exposed as a slider in the Graphics section of Settings.
- Fix config file paths on macOS for eu07.ini, eu07_input-keyboard.ini,
  and userpresets.json to use ~/Library/Application Support/MaSzyna/
  instead of falling through to the Linux XDG path.
This commit is contained in:
Mateusz Włodarczyk
2026-06-30 21:30:52 +02:00
parent 710bfc0d10
commit 211863c921
7 changed files with 46 additions and 6 deletions

View File

@@ -88,6 +88,12 @@ public sealed class KeyboardConfig
if (!string.IsNullOrEmpty(appData))
return Path.Combine(appData, "MaSzyna", "eu07_input-keyboard.ini");
}
else if (OperatingSystem.IsMacOS())
{
string? home = Environment.GetEnvironmentVariable("HOME");
if (!string.IsNullOrEmpty(home))
return Path.Combine(home, "Library", "Application Support", "MaSzyna", "eu07_input-keyboard.ini");
}
else
{
string? home = Environment.GetEnvironmentVariable("HOME");