#Git and VS files
.*~
# Unanchored: a pattern containing a slash is matched from the repo root
# only, so '__pycache__/*' never covered tools/trace/sltrace/__pycache__.
__pycache__/
*.pyc
.vscode/
.[vV][sS]/

*.rz
*.tmp
*.o
branchdiff.sh
branchdiff_report.txt
*.dump
*.cdata*
/StructLayoutSettings.json
# rom files
*.[zZnN]64

021990.bin
0219D0.bin

# Assets
assets/animationtable_data.bin
assets/animationtable_entries.bin
assets/font/*.bin
assets/ge007.e.118660.jfont_chardata.bin
assets/ge007.j.118660.jfont_chardata.bin
assets/jfont_dl.bin
assets/font_chardataj.bin
assets/font_chardatae.bin
assets/ge007.u.29D160.Globalimagetable.bin
assets/rarewarelogo.bin
assets/ge007.u.2A4D50.usedby7F008DE4.bin
assets/ge007.u.117880.jfont_dl.bin
assets/ge007.u.117940.jfont_chardata.bin
assets/ge007.u.123040.efont_chardata.bin
assets/ge007.u.29E560.Globalimagetable_commandblock.bin
#images
assets/images/split/*.bin*
assets/images/combined/*.bin*
assets/images/out/*
assets/images/split/png/*
#music
assets/music/*.bin
assets/music/*.ctl
assets/music/*.tbl
assets/music/*.sbk
assets/music/*.seq
assets/music/*.aifc
assets/music/*.aiff
#obseg
assets/obseg/bg/*.bin
assets/obseg/bg/e/*.bin
assets/obseg/chr/*/Model.c
assets/obseg/gun/*/Model.c
assets/obseg/ob__ob_end.seg
assets/obseg/prop/*/Model.c
assets/obseg/setup/*.bin
assets/obseg/setup/[eju]/*.bin
assets/obseg/stan/*.bin
assets/obseg/text/*.bin
assets/obseg/text/[eju]/*.bin
assets/obseg/text/[eju]/*.c
assets/ramrom/*.bin
assets/ramrom/[eju]/*.bin
# bin is required, but lets prevent accidental deletion
bin/*
build/*
build-*/*
notes/*
!build/test.c
!notes/StyleGuide.md
#tools
tools/extractor/*.o
tools/extractor/extractor
tools/aaa_rip/main.o
tools/aaa_rip/aaa_rip
tools/n64cksum
tools/armips
tools/gzipsrc/gzip
tools/gzipsrc/*.o
tools/report/report
tools/report/index.html
tools/report/JPN.htm
tools/gaudio/*
bondtypes_AI.h
acpp_c.c
as1_c.c
cc_c.c
cfe_c.c
copt_c.c
ugen_c.c
ujoin_c.c
uld_c.c
umerge_c.c
uopt_c.c
usplit_c.c

#exclude local user scripts in root folder
/my_*.sh
assets/obseg/em/data/alien8.seg
assets/obseg/em/data/atic.seg
assets/obseg/em/data/cookie.seg
assets/obseg/em/data/gunfright.seg
assets/obseg/em/data/jetman.seg
assets/obseg/em/data/jetpac.seg
assets/obseg/em/data/knightlore.seg
assets/obseg/em/data/pssst.seg
assets/obseg/em/data/sabre.seg
assets/obseg/em/data/spec_rom.seg
assets/obseg/em/data/under.seg

scripts/local/
scripts/make/local/
scripts/__pycache__/generate_prop_model_c.cpython-310.pyc

### Sightline ###

# Python venv. Never committed; recreate with: make venv
.venv/

# The user-supplied base ROM. NEVER COMMIT THIS.
# *.[zZnN]64 above already covers it; this is deliberately redundant so the rule
# survives an upstream rebase that touches the pattern above.
baserom*.z64
baserom*.n64
baserom*.v64

# Sightline build output
/build/
tools/sightline/__pycache__/
tools/trace/__pycache__/
tools/derive/__pycache__/

# IDO static recomp build products (tools/ido5.3_recomp/.gitignore covers the
# binaries themselves; these are the intermediates it does not list)
tools/ido5.3_recomp/*.o
tools/ido5.3_recomp/rabbitizer/build/

# CI runner state. act_runner writes its registration credential to
# ci/runner/data/.runner - that is a secret and must never be committed.
ci/runner/data/
ci/runner/.env
.venv-ci/

# Compiled trace-harness input plugin (built by its Makefile / CI)
tools/trace/slinput/*.so
# Savestates hold ROM-derived RAM - local only, never committed
tools/trace/states/

# Host-mode CI runner: binary is extracted from the image, credential is secret
ci/runner-host/act_runner
ci/runner-host/.runner

# Third-party reference material: cheat databases, community notes, etc.
# Useful locally, not ours to redistribute, and project policy keeps external
# reference outside the repo (cf. Zoinkity's notes, cloned separately).
reference/

# The LIVE cartridge save - your progress, and it moves every session.
tools/trace/saves/
# NOTE: tools/trace/inputs/*.eeprom is deliberately NOT ignored. Those are the
# per-recording snapshots of the cartridge as a session started, and replay
# cannot reproduce a trace without one - ignoring them would leave committed
# traces unverifiable from a fresh clone or on CI. They are almost entirely
# zeros and compress to well under a kilobyte each.

# Recordings kept for reference but not usable (ROM gone, or made with a bug)
tools/trace/quarantine/
build/u/direct/*.build
build/native/

# Per-session working files
build/.keep-going-count
build/bootsweep/

# ROM-derived framebuffer captures (SL_SHOT) - never commit
*.ppm

# package-demo.ps1 output: carries the user's ROM, private and local
SightlineDemo.exe

# Texture sets (#47). Exactly the baserom boundary above, one level out: the
# user brings the SOURCE, a local tool writes the PACK, and neither is ours to
# distribute. Nothing under either directory is ever committed, packaged or
# exported.
#
#   texsources/   the player's own copies of a texture set's source - the
#                 Community HD project's official release archive, and any
#                 user-supplied XBLA source. Read only by
#                 tools/windows/prepare-textures.ps1.
#   texpacks/     what that tool WRITES: <set>/<hex4>.sltx, the development
#                 SL_TEXPACK_ROOT. Derived from the sources above, so it
#                 inherits their boundary exactly.
/texsources/
/texpacks/

# World assets (#68). The SAME boundary, one directory further out: the user
# brings the SOURCE (texsources/ above - the two features share it and nothing
# else), a local tool writes the ASSET, and neither is ours to distribute.
#
#   worldassets/  what tools/windows/prepare-xbla-assets.ps1 WRITES:
#                 xbla/<class>/<item>.slwa, the development
#                 SL_WORLDASSET_ROOT. Derived from the source above, so it
#                 inherits its boundary exactly.
/worldassets/

# Background draw snapshots (sl_bgsnap_write.c). The SAME boundary as the three
# trees above, and for the same reason: a snapshot is one frame of the
# background pass's real inputs, read out of the user's own extracted world
# asset, so it is ROM-derived and is not ours to distribute. The writer is an
# off-by-default diagnostic and the files it writes are evidence for an offline
# comparison, never a build input and never committed.
#
#   bgsnapshots/  what src/gfx/sl_bgsnap_write.c WRITES when SL_BGSNAP selects
#                 a frame: bgsnap-<read>-<frame>-<cloud>.bin, the default
#                 SL_BGSNAP_DIR.
/bgsnapshots/

# Production buffer diagnostic records (src/gfx/sl_gfx_bgtf.c, SL_BG_TF_DUMP).
# The SAME boundary again: a record holds one background draw's actual
# transform-feedback clip pool and the CPU clip pool beside it, both computed
# from the user's own extracted world asset, so it is ROM-derived and is not
# ours to distribute. The writer is off by default, writes once per process, and
# never replaces a record already on disk.
#
#   bgtfdumps/    what it WRITES when SL_BG_TF_DUMP selects a draw:
#                 tfclip-<read>-<frame>-<cloud>-m<mesh>-t<material>-d<dmode>
#                 .gpuclip.bin, .cpuclip.bin, .idx.bin and .json - the default
#                 SL_BG_TF_DUMP_DIR.
/bgtfdumps/
