mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 14:28:40 +00:00
Review of the first version: a value that differs from the last start's command line was taken for the user's new choice. That lost an explicit flag on the first start after an upgrade, never let the same flag typed again win, and dropped a menu value the command line never mentioned when leonida-launch.txt lacked the key. The menu file was also rewritten before the history, so a failed history write had already lost a saved choice. Now the rule follows what the user typed: - A switch typed for this start wins over the menu's saved value of each setting it makes. The menu file drops that value, so F1 shows the command line's. scripts\play-d3d12.ps1 passes the switches typed there as -Typed, so its Series X default and -Lowest 1080 leave the menu's choice standing. A start by hand counts its own switches, and -More wins like a typed switch. - Every other setting keeps the menu's value. - The menu's SAVE AND RESTART adds -MenuRestart to the switches it replays (LEONIDA_MENU_ARGS), so there the menu's values, saved after those switches, win. leonida-launch.txt is gone. The menu file is written to a temporary file and moved over the old one, and only when a value leaves it. If that fails, the start runs with the command line's values and the file stays whole. Tests: 10 cases, among them the same switch typed again, an untyped default, a setting no switch makes, the restart, a start by hand, -More and a menu file that cannot be written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
85 lines
1.5 KiB
Plaintext
85 lines
1.5 KiB
Plaintext
# ---------------------------------------------------------------------------
|
|
# RULE #1: nothing from the game (or any other proprietary source) is ever
|
|
# committed.
|
|
# Everything is built from files the user supplies at runtime.
|
|
# This file is the first line of defence; `cargo xtask policy` (also run by
|
|
# the pre-commit hook in .githooks/) is the second and is authoritative.
|
|
# See docs/asset-policy.md.
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Build output
|
|
/target/
|
|
/tests/fixtures/*/target/
|
|
|
|
# Local configuration (contains paths to YOUR files)
|
|
/leonida.toml
|
|
|
|
# Places people tend to drop data into. Keep data outside the repo instead.
|
|
/game/
|
|
/games/
|
|
/assets/
|
|
/data/
|
|
/dump/
|
|
/dumps/
|
|
/extracted/
|
|
/cache/
|
|
/out/
|
|
|
|
# Executables, libraries, symbols
|
|
*.exe
|
|
*.dll
|
|
*.pdb
|
|
*.lib
|
|
*.sys
|
|
*.obj
|
|
*.exp
|
|
*.ilk
|
|
|
|
# Console packages and containers
|
|
*.xvd
|
|
*.xvc
|
|
*.msixvc
|
|
*.xsp
|
|
*.cab
|
|
*.msi
|
|
|
|
# Typical game data (non-exhaustive on purpose; the policy check is an allowlist)
|
|
*.bin
|
|
# The one exception (docs/asset-policy.md): the BCPack format's constant tables.
|
|
!/crates/leonida-formats/src/bcpack-tables.bin
|
|
*.dat
|
|
*.pak
|
|
*.rpf
|
|
*.dds
|
|
*.ktx
|
|
*.ktx2
|
|
*.dxbc
|
|
*.dxil
|
|
*.cso
|
|
*.spv
|
|
*.wav
|
|
*.xma
|
|
*.ogg
|
|
*.opus
|
|
*.mp3
|
|
*.mp4
|
|
*.bik
|
|
*.bk2
|
|
*.awc
|
|
*.zip
|
|
*.7z
|
|
*.rar
|
|
|
|
# Editor / OS noise
|
|
.vs/
|
|
.idea/
|
|
*.swp
|
|
Thumbs.db
|
|
.DS_Store
|
|
/target-next
|
|
|
|
# NVIDIA's own files (scripts/get-nvidia-sdks.ps1 fetches them from NVIDIA; never part of this repository)
|
|
/nvidia-sdk/
|
|
# What the F1 menu saved
|
|
/leonida-settings.txt
|