# Whitelist: ignore everything, then allow only our own sources/docs.
# Never commit game files, decrypted binaries, lifted code, logs, saves.
/*
!/.gitignore
!/OPERATIONS.md
!/README.md
!/LICENSE
!/THIRD_PARTY_NOTICES.md
!/patches/
# Individual worker SDK exports; the combined patch and SDK.lock stay tracked.
/patches/*-runtime.diff
!/codex/
/codex/*
!/codex/*.md
!/codex/N.host-check.sh
!/codex/P.host-check.sh
!/codex/P.check.sh
!/codex/P.savedata-regression.sh
!/codex/S.host-check.sh
!/codex/X.host-check.sh
!/codex/X.hash-test.c
!/codex/U.host-check.sh
!/codex/V.host-check.sh
!/codex/W.host-check.sh
!/codex/W.analyze.py
!/codex/W.audio-clock.c
/codex/*.last.md
!/work/
/work/*
!/work/RECON.md
!/port/
/port/*
!/port/vulkan/
!/port/CMakeLists.txt
!/port/main.cpp
!/port/stubs.cpp
!/port/config.toml
!/port/run.sh
!/port/play.sh
!/port/capture.sh
!/port/script-common.sh
!/port/src/
/port/src/*
!/port/src/d2_*
!/port/spu/
/port/spu/*
!/port/spu/README.md
*.elf
*.BIN
*.bin
*.log
.DS_Store

!/codex/Y.host-check.sh
!/codex/Y.analyze.py
!/codex/Y.sync-test.c
!/codex/Q.sync-test.c

!/codex/AA.host-check.sh
!/codex/AA.replay-check.sh
!/codex/AA.replay.c
!/codex/AA.replay-drain.c
!/codex/AA.vertex-test.c
!/codex/AA.cache-test.c
!/codex/AA.sync-test.c
!/codex/AA.sync-stubs.c

!/codex/AB.host-check.sh
!/codex/AB.sync-test.c
!/codex/AB.profile.py
!/codex/AB.check.sh

!/tools/
/tools/*
!/tools/d2_save_import.py
!/codex/AC.host-check.sh
!/codex/AC.save-import-test.py
!/port/install-content.sh
!/codex/AD.host-check.sh
!/codex/AD.edat-test.py
!/codex/AD.fs-test.c

!/codex/AG.host-check.sh
!/codex/AG.metal-test.m

# Asset-free cheat/editor schema
!port/d2_cheats.v1.json

!/codex/AF.host-check.sh
!/codex/AF.check.sh
!/codex/AF.save-check.py
!/codex/AF.overlay-test.c
!/codex/AF.editor-test.cpp
!/codex/AF.hotkey-test.m
!/codex/AF.raster-test.cpp

!/codex/AH.portrait-check.sh
!/codex/AH.portrait-drive.py
!/codex/AH.ocr.m
!/codex/AH.metal-check.sh
!/codex/AH.elf-test.c
!/codex/AH.launcher-test.m
!/codex/AI.host-check.sh
!/codex/AN.host-check.sh

# Maintained asset-free regression suite and reproducibility tools.
!/port/tests/
/port/tests/*
!/port/tests/*.c
!/port/tests/*.cpp
!/port/tests/*.m
!/port/tests/*.py
!/port/tests/*.sh
!/port/tests/*.md
!/port/tests/CMakeLists.txt
!/tools/*.sh
!/tools/*.py
!/tools/requirements-lifts.txt
!/tools/requirements-rpg.txt

!/codex/AO.host-check.sh

!/codex/AP.host-check.sh
!/codex/AS.host-check.sh
!/codex/AP.atrac-check.py

# One-command costume helper and its shipped pose data (appearance importer).
!/tools/costume
!/tools/data/

# Local sprite workbench frontend and launcher (no game assets).
!/tools/sprite-workbench
!/tools/sprite_workbench/
!/tools/sprite_workbench/*.html
!/tools/sprite_workbench/*.css
!/tools/sprite_workbench/*.js
!/Sprite Workbench.command

# Shareable costume recipes: text only, no artwork or game data.
!/costume-recipes/
/costume-recipes/*
!/costume-recipes/*.d2costume.json
!/costume-recipes/README.md

# Costume packs contain game artwork: never tracked.
/costume-packs/

# Windows source-only port additions.
!/docs/
!/docs/*.md
!/windows/
/windows/*
!/windows/*.py
!/windows/*.bat
!/windows/perfil.json
!/windows/config.exemplo.json
!/port/d2_*.h
/windows/config.local.json
/windows/*.log
/windows/*.zip
!/.github/
!/.github/workflows/
!/.github/workflows/windows-launcher.yml

# Asset-free UDF reader and native regression fixtures (generated ISO files stay out).
!/port/vfs/
!/port/vfs/**
/port/vfs/build*/
*.iso
!/.github/workflows/iso-vfs.yml
!/.github/workflows/iso-launcher.yml
/build-iso-vfs/
/ci-tools/

# Native graphics sources and audited upstream FSR headers.
!/.gitattributes
!/port/graphics/
!/port/graphics/**
/port/graphics/build*/
!/.github/workflows/graphics.yml
/build-graphics/

# Launcher translation catalog (source only).
!/windows/locales/
/windows/locales/*
!/windows/locales/en.json
