Added fallbacks for fsync issues on CachyOS.

This commit is contained in:
2026-08-27 22:02:31 +02:00
parent 4288036bb3
commit e515080171
5 changed files with 83 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ class Settings:
scaler: str = "fit"
filter: str = "linear"
runtime: str = "auto"
proton_sync: str = "auto"
proton_path: str | None = None
game_source: str | None = None
@@ -50,6 +51,7 @@ def load_settings(paths: AppPaths) -> Settings:
scaler=_string(value, "scaler", "fit"),
filter=_string(value, "filter", "linear"),
runtime=_string(value, "runtime", "auto"),
proton_sync=_string(value, "proton_sync", "auto"),
proton_path=_optional_string(value, "proton_path"),
game_source=_optional_string(value, "game_source"),
)
@@ -95,6 +97,8 @@ def _validate(settings: Settings) -> None:
raise ValueError(f"unsupported Gamescope filter: {settings.filter}")
if settings.runtime not in {"auto", "proton7", "umu"}:
raise ValueError(f"unsupported runtime selection: {settings.runtime}")
if settings.proton_sync not in {"auto", "fsync", "esync"}:
raise ValueError(f"unsupported Proton synchronization mode: {settings.proton_sync}")
def _integer(value: dict[str, object], key: str, default: int) -> int: