# =============================================================================
# FFTA Recomp — .gitignore (GBA recompilation / decompilation project)
# =============================================================================
#
# GOLDEN RULE: no ROM-derived bytes ever enter this repository.
# Never commit the base ROM, BIOS dumps, save data/savestates, ROM patch
# files, assets extracted from the ROM, or captures made from the ROM.
# This includes ROMs built from the decompiled source — every .gba stays out.
#
# The retail ROM lives at the repo root as game.gba and nowhere else.

# -----------------------------------------------------------------------------
# ROMs & BIOS dumps
# -----------------------------------------------------------------------------
*.gba
*.agb
*.mb
*.rom
*.gba.gz
*.gba.zip

# Explicit base ROM — belt-and-suspenders with *.gba above
game.gba

# Retail BIOS dumps — never commit or redistribute under any of these
# names (the launch BIOS is the committed clean-room emibios at
# bios/emibios_gba_bios.bin, which does not match these patterns)
bios.bin
gba_bios.bin
bios*.bin
*.bios

# -----------------------------------------------------------------------------
# Save data & savestates
# -----------------------------------------------------------------------------
*.sav
*.srm
*.state
*.state*

# VisualBoyAdvance savestate
*.sgm

# mGBA savestates (ss0-ss9)
*.ss[0-9]

# -----------------------------------------------------------------------------
# ROM patch files (binary diffs against the ROM — treat as ROM data)
# -----------------------------------------------------------------------------
*.ips
*.bps
*.ups
*.aps
*.xdelta
*.xdelta3

# -----------------------------------------------------------------------------
# Extracted ROM contents (graphics / audio / maps / text ripped from game.gba)
# Extend this list to match whatever your extractor outputs.
# -----------------------------------------------------------------------------
extracted/
dumps/

# -----------------------------------------------------------------------------
# gbarecomp output & diagnostics
# -----------------------------------------------------------------------------
# generated/ is written by the recompiler — never edited, never committed
# (all curation lives in game.toml and src/)
/generated/

logs/
/coverage/
*.log

# -----------------------------------------------------------------------------
# Build artifacts (CMake / GCC / Clang — recomp binary and future decomp build)
# -----------------------------------------------------------------------------
build/
build-*/
out/
cmake-build-*/
CMakeCache.txt
CMakeFiles/
CMakeUserPresets.json
cmake_install.cmake
CTestTestfile.cmake
Testing/
compile_commands.json
.cache/
.ninja_deps
.ninja_log
*.o
*.obj
*.d
*.a
*.lib
*.so
*.so.*
*.dylib
*.dll
*.exe
*.elf
*.out
*.gcda
*.gcno

# Linker map files
*.map

# -----------------------------------------------------------------------------
# Android (Gradle / NDK / signing) — APKs/AABs never enter history
# (a private test APK can embed ROM/BIOS bytes; the engine names those
# ...-PRIVATE-rom-included.apk so they cannot be mistaken for releases)
# -----------------------------------------------------------------------------
android/.gradle/
android/local.properties
.cxx/
android/artifacts/
# Shared raylib FetchContent base for Android builds (one checkout per ABI)
android/.fetchcontent/
android/signing.local.properties
*.apk
*.aab
*.jks
*.keystore

# -----------------------------------------------------------------------------
# Frame-diff harness captures (ROM-derived — keep out of history)
# Adjust paths to wherever the harness writes frames/video.
# -----------------------------------------------------------------------------
frames/
captures/
diffs/

# Screenshot captures stay local as well — the README is deliberately
# image-free (decided 2026-10-08: no ROM pixels in history, even as a
# README illustration)
*screenshot*.png

# -----------------------------------------------------------------------------
# Launcher sidecars (written next to the working directory by desktop
# launcher runs — machine-specific paths; the player-owned device copies
# are separate)
# -----------------------------------------------------------------------------
rom.cfg
bios.cfg
config.ini
keybinds.ini

# -----------------------------------------------------------------------------
# Editors & OS cruft
# -----------------------------------------------------------------------------
.vscode/
.idea/
*.swp
*.swo
*~
*.orig
*.rej
.DS_Store
Thumbs.db

# -----------------------------------------------------------------------------
# Python (audit + frame-diff scripts)
# -----------------------------------------------------------------------------
__pycache__/
*.py[cod]
.venv/
venv/
/tmp/
/roms/
saves/
/recomp_cache/
recomp_coverage*.json
recomp_master_misses*.toml.frag
recomp_seed_proposals.toml
selfheal*.json
*.tga

# -----------------------------------------------------------------------------
# Intentionally tracked — do NOT add rules for these:
#   game.toml, src/, inputs/, mods/, BRINGUP.md, AGENTS.md,
#   and the gbarecompx submodule
# -----------------------------------------------------------------------------
hang_trace.csv
hang_fp_tail.csv
hang_dump.log

# release packaging output (tools/make_release.py, tools/make_appimage.py)
release-stage/
*.AppImage
*.AppDir/

# windows cross build (tools/win_cross_deps.py, tools/make_release.py --windows)
cross-prefix/
cross-build/
build-win/

# -----------------------------------------------------------------------------
# (removed 2026-10-18: the gbarecomp submodule was repointed to the
# gbarecompx fork — see BRINGUP § Phase 7 close-out; no separate in-tree
# framework tree remains)
# -----------------------------------------------------------------------------
