code wiki / (root) / nx_mod_manifest.nx

nx_mod_manifest.nx

buildroot/runtime/nx_mod_manifest.nx

7015 B117 linesdepth 8pulls 16 transitivereach 0 importersview sourcekind tooltopic mod
docsdependenciesstructsconstsfunctions

about

nx_mod_manifest.nx -- THE SOVEREIGN MOD PACKAGE COMMAND (/compare/modding MD18 mod_manifest_emit, 2026-09-06). A thin caller of nx_mod_manifest_lib so the command line, the installer and the gate prove the SAME chain. usage: nx_mod_manifest emit <out.nxmod> name=<n> version=<v> game=<a,b> licence=<id> [dep=<n@v>,<n@v>] [jrnl=<p>] [root=<dir>] <rel-path>... nx_mod_manifest verify <manifest.nxmod> [root=<dir>] exits: 0 emitted / ACCEPT | 2 usage | 3 the manifest or a member could not be read (named) | 4 REFUSED (the licence is not a rights-table row, a member path is unsafe, a member is MISSING or TAMPERED, or the audit head does not match) license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_mod_manifest_lib.nx nx_mod_manifest.nx

imports: nx_syscalls.nxnx_mod_manifest_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main mmc_usage mmc_w sys_write mm_len mmc_kv mmc_prefix mm_len ↻ mm_streq mmc_w ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ mmc_is_kv mmc_prefix ↻ mod_manifest_emit mm_emit mm_field_ok lg_ctx sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close lg_field

structs

none

consts

11const MMC_EXIT_USAGE: i64 = 2
12const MMC_EXIT_UNREADABLE: i64 = 3
13const MMC_EXIT_REFUSE: i64 = 4
14const MMC_OUTFD: i64 = 1
15const MMC_KV_CAP: i64 = 64

functions

17func mmc_w(s: *u8) -> i64 { sys_write(MMC_OUTFD, s, mm_len(s)); return 0 }
called by 2: mmc_usagemain calls 2: sys_writemm_len
18func mmc_wn(v: i64) -> i64 { let t: *u8 = sys_mmap(32); var o: i64 = 0; var x: i64 = v; if x < 0 { t[0] = 45 as u8; o = 1; x = 0 - x } o = mm_putd(t, o, x); sys_write(MMC_OUTFD, t, o); return 0 }
called by 1: main calls 3: sys_mmapmm_putdsys_write
19func mmc_prefix(s: *u8, p: *u8) -> i64 { var i: i64 = 0; while p[i] != (0 as u8) { if s[i] != p[i] { return 0 } i = i + 1 } return 1 }
called by 2: mmc_kvmmc_is_kv
21func mmc_kv(argc: i64, argv: *i64, key: *u8, dflt: *u8) -> *u8
called by 1: main calls 2: mmc_prefixmm_len
26func mmc_is_kv(a: *u8) -> i64
called by 1: main calls 1: mmc_prefix
36func mmc_usage() -> i64
called by 1: main calls 1: mmc_w
40func main(argc: i64, argv: *i64) -> i64