Pushed updates for release v1.1.0

This commit is contained in:
2026-10-20 23:42:30 +02:00
parent be7891f066
commit d75c345d36
26 changed files with 606 additions and 217 deletions

View File

@@ -270,6 +270,24 @@ def read_cached_depot_launch_catalog(path: Path) -> DepotLaunchCatalog | None:
return None
def validate_installed_launch_catalog(
paths: AppPaths,
catalog: DepotLaunchCatalog | None,
) -> None:
"""Prevent a background update check from supplying arguments for another build."""
installed_build = _completed_depot_build(paths.native_depot_state)
if installed_build is None:
return # Legacy/external installations do not have a native depot receipt.
if catalog is None or catalog.build != installed_build:
advertised_build = str(catalog.build) if catalog is not None else "missing"
raise DepotError(
f"launch options build {advertised_build} does not match installed game "
f"build {installed_build}; run `pristontale-eu update` before playing "
"to refresh the game and its publisher launch parameters together"
)
def cache_depot_file_catalog(
path: Path,
game_directory: Path,