code wiki / (root) / nx_bspfacts.nx

nx_bspfacts.nx

buildroot/runtime/nx_bspfacts.nx

4230 B96 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_bspfacts.nx -- CLI: BodySlide preset structural facts. nx_bspfacts probe|decode <preset.xml> The Bethesda body-preset dialect beside nx_kkfacts (/compare/koikatsu card-class lane). Facts + slider name/permil pairs of the FIRST preset; per-preset data goes to the CALLER's stdout only and never enters a published plane (the k-wall in the lib header). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_bspfacts_lib.nx nx_bspfacts.nx

imports: nx_syscalls.nxnx_bspfacts_lib.nx

imported by: nobody (leaf or entry point)

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

main bc_e sys_write bc_slen sys_exit 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 ↻ sys_openat_rd sys_lseek sys_read sys_close bsp_probe kk_find kk_count bsp_count_size kk_find ↻ kk_b sys_mmap ↻ bsp_attr kk_find ↻ kk_b ↻ bc_w sys_write ↻ bc_slen ↻ bc_num sys_write ↻ sys_mmap ↻

structs

none

consts

9const BSPC_CAP: i64 = 8388608 // presets measure KBs; 8MB is the refuse-beyond bound -- census abstains, never truncates silently
10const BSPD_MAX_VALS: i64 = 512 // 3BA-class presets carry ~50..300 sliders per size; overflow visible via parsed vs printed

functions

12func bc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: bc_wbc_e
13func bc_w(s: *u8) -> i64 { sys_write(1, s, bc_slen(s)); return 0 }
called by 1: main calls 2: sys_writebc_slen
14func bc_e(s: *u8) -> i64 { sys_write(2, s, bc_slen(s)); return 0 }
called by 1: main calls 2: sys_writebc_slen
15func bc_span(buf: *u8, off: i64, len: i64) -> i64
called by 1: main calls 1: sys_write
21func bc_num(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
34func bc_eq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
36func main(argc: i64, argv: *i64) -> i64