# ---------------------------------------------------------------------------
# GAME DATA — NEVER COMMIT
#
# The Chinese PC port is commercial, copyrighted software. Nothing that ships
# with it, is extracted from it, or is dumped out of it belongs in this repo.
# This list covers files; it does not cover a paste into a doc, an issue, or a
# commit message. That rule is on you.
# ---------------------------------------------------------------------------

# A local install of the game, however it is laid out
/game/
/bof3/
/BoF3/

# The shipped executables and their data
BOF3.exe
START.EXE
SETUP.EXE
*.DAT
*.dat
DATA.TAG
layout.bin

# Archives, disc images, media shipped with the game
/DAT/
/BGM/
/SND/
/CDImage/
*.mdf
*.mds
*.iso
*.bin
*.cue
*.chd
*.avi
*.cab
*.EX_

# Extracted or dumped assets — textures, audio, script, fonts pulled out of
# the game's own containers. Derived from copyrighted data, same rule.
/extracted/
/dumps/
/textures_dump/

# The saves recipes load (tools/recipe_saves.py): copies of the owner's slots,
# game data like any save. Only the README is tracked.
/tools/recipe_saves/*
!/tools/recipe_saves/README.md

# ---------------------------------------------------------------------------
# Analysis scratch
# ---------------------------------------------------------------------------

# Ghidra projects contain a full copy of the analysed binary.
/ghidra/
*.gpr
*.rep/
*.gzf

# Local analysis output: traces, coverage harvests, disassembly, matcher
# intermediates. Large, machine-specific, and frequently binary-derived.
/analysis/*
# ...except the typed-data census: read from src/ and symbols.toml only,
# addresses and names, our work product (tools/data_census.py). CI's
# ratchet reads its site count.
!/analysis/data_census.tsv
# ...and the OS-service census (tools/os_census.py): same inputs, same rule.
!/analysis/os_census.tsv
# ...and the ledger's switch inventory: names and file:line from src/ and
# docs/DIVERGENCE.md only (tools/ledger_switches.py, the ledger-fields round).
!/analysis/ledger_switches.tsv
# ...and the source-layout round's move map: where each function and file-local of src/game
# moved, written by tools/move_funcs.py, read by tools/cite_lookup.py (docs/source-layout-round.md 2.4).
!/analysis/tu_moves.tsv
# ...and the relocation census: addresses, names and our own source lines
# from src/ and symbols.toml (tools/reloc_census.py, the relocatable-image
# round); its --check reads the #gate lines.
!/analysis/reloc_census.tsv
# ...and the bare-address rule's list: our own source lines, addresses and
# names from src/ (tools/reloc_bare.py, the relocatable-image round's stage D);
# its --check refuses a site the list does not hold.
!/analysis/reloc_bare.tsv
# ...and the width census: our own source lines, names and VAs from src/,
# symbols.toml and exe_host.cpp (tools/width_census.py, the 64-bit build
# round's XA1); its --check refuses a live site the list does not hold.
!/analysis/width_census.tsv
# ...and the PSX unit table: addresses, our names and counts from symbols.toml
# and the sibling's PSX images (tools/tu_psx.py, the source-layout round's SL2).
!/analysis/tu_psx.tsv
!/analysis/tu_psx_ranges.tsv
# ...and the translation-unit table and the owner's layout sheet: addresses,
# our names and counts from symbols.toml and the binary's layout, no byte of
# the game (tools/tu_census.py, the source-layout round's SL1; its --check
# reads the table). Its cache, tu_census_cache.json, stays ignored.
!/analysis/tu_layout.tsv
!/analysis/tu_layout_sheet.md

# The source-layout round's stage B tables (docs/source-layout-round.md 7a):
# every helper rename with its reason, and the x86-64 gate's named exceptions.
!/analysis/tu_renames.tsv
!/analysis/tu_gate_exceptions.tsv
!/analysis/tu_joins.tsv

# Symbol/name data IS tracked — it is our own work product, not game data.
!/names/
!/symbols.toml

# ---------------------------------------------------------------------------
# Build
# ---------------------------------------------------------------------------
/build/
/build-*/
/out/
/cmake-build-*/
CMakeCache.txt
CMakeFiles/
*.obj
*.o
*.lib
*.exp
*.pdb
*.ilk
*.idb
*.dll
*.exe
compile_commands.json

# MSVC / Visual Studio
.vs/
*.user
*.suo
*.vcxproj.user
/Debug/
/Release/
/x64/
/Win32/

# ---------------------------------------------------------------------------
# Editors, OS, Python
# ---------------------------------------------------------------------------
.idea/
.vscode/
*.swp
*~
Thumbs.db
Desktop.ini
.DS_Store
__pycache__/
*.pyc
.pytest_cache/
.venv/
venv/

# Images: screenshots for the launcher and the top-level README only, in
# docs/images/ (docs/LICENSING.md section 3). Captures made for analysis stay
# in scratch folders; this keeps one from being committed by accident.
*.png
*.jpg
*.jpeg
*.gif
*.bmp
*.webp
!docs/images/
!docs/images/**

# Notes shared privately with us that must not be published yet: kept beside
# docs/ on the owner's machine and moved into docs/ when their author agrees.
docs/gitIgnored/

# Run logs a harness or a build writes at the checkout's root (bof3x.log in a
# launcher copy L/, cmake_*.log, the self-tests' st*.log): commit 3d83467a
# took 24 of them by `git add -A` before a validation run.
/*.log
/L/
