code wiki / _hdl_build / nx_games_reg_seed.nx

nx_games_reg_seed.nx

buildroot/runtime/_hdl_build/nx_games_reg_seed.nx

4617 B53 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind tooltopic games
docsdependenciesstructsconstsfunctions

about

nx_games_reg_seed.nx -- seed the UNIFIED GAMES registry into the SOVEREIGN content-addressed store via nx_native_config (ncfg_*), NOT a pipe/tsv file (operator: no tsv; use the nishi data management). This is the ONE SPACE for ALL our games (operator: "all our games in one space"), consolidating the 3 fragmented sources discovered by nx_game_publish + the NAS-live web games: - web (NAS-live, anon hub): voxels, tictactoe, econsim - pets-wasm (nx_arcade_serve :7700): pets, pets3d, dungeon - dungeon/tactics (knowledge/specs): abyss, crypt, skirmish, laststand Row = {id, title, engine, path, deployed}. deployed=1 => NAS-served (the manifest hashes its bytes, content-addressed version); deployed=0 => cataloged with its location (arcade:/spec:), not yet NAS-live (deploying those runtimes is a separate task -- NOT faked with a hash). Additive: add games as more rows.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_native_config.nx nx_games_reg_seed.nx

imports: nx_syscalls.nxnx_native_config.nx

imported by: nobody (leaf or entry point)

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

main ncfg_begin ss_begin ss_begin_cap sys_mmap gr_row sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ncfg_key ss_add ss_add2 ss_w32 ss_len ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻ ncfg_commit ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻

structs

none

consts

none

functions

14func gr_row(w: *i64, idx: i64, id: *u8, title: *u8, engine: *u8, path: *u8, deployed: *u8) -> i64
called by 1: main calls 2: sys_mmapncfg_add_row
24func gr_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
26func main() -> i64