code wiki / (root) / nx_desktop_craft.nx

nx_desktop_craft.nx

buildroot/runtime/nx_desktop_craft.nx

9007 B217 linesdepth 8pulls 41 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_desktop_craft.nx -- NISHI CRAFT native: the generated 3D voxel world in a real desktop window, ZERO wasm / ZERO JS / ZERO third-party anything -- the same nx_wasm_craft organ the browser page runs, on the shared nx_desktop_game surface. This is the no-webassembly path the operator asked for; the Nishi Browser launches exactly this binary when a page carries the nishi-game marker. `nx_desktop_craft selftest` proves the whole pipeline against the real X server with no human. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_wasm_craft.nx nx_desktop_game.nx nx_desktop_craft.nx

imports: nx_syscalls.nxnx_wasm_craft.nxnx_desktop_game.nx

imported by: nobody (leaf or entry point)

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

main 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 ↻ dc_ms sys_clock_gettime_mono dcw sys_write ↻ dcn sys_mmap ↻ sys_write ↻ dg_setup dc_load_world sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close dg_kc_for dg_prove_surface dg_blit sys_mmap ↻ dg_poll_in sys_poll dg_pump2

structs

none

consts

10const K_MAGIC_1000000: i64 = 1000000
11const K_MAGIC_4096: i64 = 4096
12const K_MAGIC_20260728: i64 = 20260728
13const K_MAGIC_40000: i64 = 40000
14const K_MAGIC_3000: i64 = 3000

functions

16func dcw(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
17func dcn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
31func dc_save_world(base: i64) -> i64
44func dc_load_world(base: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
54func dc_ms(ts: *i64) -> i64
called by 1: main calls 1: sys_clock_gettime_mono
59func main(argc: i64, argv: *i64) -> i64