code wiki / (root) / nx_installed_census.nx

nx_installed_census.nx

buildroot/runtime/nx_installed_census.nx

6934 B135 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_installed_census.nx -- INSTALLED MODE of the intelmine miner, the thin program over nx_installed_census_lib. nx_installed_census steam <steam-root> [maxdepth=4] [reviews-dir=knowledge/reviews/steam/] [fingerprints-conf] Reads the Steam client's libraries and every app manifest, walks each install tree (bounded), fingerprints what the title SHIPS from knowledge/reviewmine/fingerprints.conf, ties each row to the review rubric journaled for the same appid, prints one INSTALLED line per title, and truncate-writes knowledge/reviews/installed/steam.census (a census is a snapshot, so it is rewritten whole; a run appends nothing). Under WSL pass the Windows root (C:\Program Files (x86)\Steam) or its /mnt/c form; both are mapped. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_reviewmine_lib.nx nx_installed_census_lib.nx nx_installed_census.nx

imports: nx_syscalls.nxnx_reviewmine_lib.nxnx_installed_census_lib.nx

imported by: nobody (leaf or entry point)

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

main icp_usage rm_w sys_write rm_slen sys_exit rm_streq rm_atoi ic_init 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 ↻ ic_set_maxdepth ic_fp_load ic_init ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close rm_line_end ic_class_index ic_class_name rm_slen ↻ ic_lc

structs

none

consts

12const ICP_FP_CONF: *u8 = "knowledge/reviewmine/fingerprints.conf"
13const ICP_OUT_DIR: *u8 = "knowledge/reviews/installed"
14const ICP_CENSUS: *u8 = "knowledge/reviews/installed/steam.census"
15const ICP_REVIEWS: *u8 = "knowledge/reviews/steam/"
16const ICP_ROW_CAP: i64 = 8192
17const ICP_OUT_CAP: i64 = 1048576
18const ICP_EXIT_USAGE: i64 = 2
19const ICP_ARGC_MIN: i64 = 3 // nx_installed_census steam <steam-root>
20const ICP_ARG_ROOT: i64 = 2 // argv positions
21const ICP_ARG_DEPTH: i64 = 3
22const ICP_ARG_REVIEWS: i64 = 4
23const ICP_ARG_CONF: i64 = 5
24const ICP_HEADER: *u8 = "# knowledge/reviews/installed/steam.census -- snapshot rows i|appid|name|installdir|size_bytes|buildid|last_updated|last_played|language|library|on_disk|engine|anticheat|vr|audio|net|video|physics|script|mod|redist|files|dirs|walk_capped|reviews_journaled|review_score|total_positive|total_negative|walk_bytes|assets(ext:files:bytes top 8 by bytes)\n"

functions

26func icp_usage() -> i64
called by 1: main calls 1: rm_w
30func icp_print_app(libidx: i64) -> i64
53func main(argc: i64, argv: *i64) -> i64