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:
@@ -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,
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user