Launcher: Horizon's registry as a mod browser source

A browser source for Horizon's own registry (docs/api/mod-index.md): it reads index.json
(HORIZON_MOD_INDEX for a test registry, cached in the game folder for when the registry can't
be reached), searches it by kind and words, lists versions with the SHA-256 the index gives,
and blocks the versions it says were taken down. Downloads accept the registry's release host
and check SHA-256; file:// files only from a local index.

Installing, the takedown check before play and the CLI come next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-24 22:47:37 +02:00
parent bffb68b0c5
commit 7e513d2d5c
11 changed files with 423 additions and 18 deletions
+1
View File
@@ -164,6 +164,7 @@ pub(super) fn parse_file(f: &Value) -> Option<Version> {
name: name.clone(),
size: f["fileLength"].as_u64().unwrap_or(0),
sha512: None,
sha256: None,
sha1,
primary: true,
}]