upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/dev-tools.md
diff options
context:
space:
mode:
authorOreoFR <29048345+OreoFR@users.noreply.github.com>2026-12-03 04:54:15 +0100
committerOreoFR <29048345+OreoFR@users.noreply.github.com>2026-12-03 04:54:15 +0100
commit9fa65d1e71f7eb2dfd8981282460fa6ecb56853f (patch)
tree68df98bc1a79babd49e5dbc55ff36de5541fbc15 /docs/dev-tools.md
parent69925a7c0c6a073e0c1f6db20d3e7617c3834f23 (diff)
launcher: the cache and saves Clear shader cache sees are the runtime's own (Linux saves, LEONIDA_DATA_DIR, inherited and typed paths)
merzleckeier's review of 69925a7c0: - [P1] cache_dir_problem protected <data_root>/data only; on Linux play-linux.sh puts the saves in ${XDG_DATA_HOME:-~/.local/share}/leonida/data (or an inherited LEONIDA_DATA_DIR), and an Advanced LEONIDA_DATA_DIR moves them on both systems. runtime_dir now gives the runtime's own folder for LEONIDA_CACHE_DIR and LEONIDA_DATA_DIR (Advanced first, Linux's inherited environment next, then each system's default; relative values from where the runtime starts: d3d12 on Windows, the checkout on Linux), and the guard protects those effective saves as well as <data_root>/data. - [P2] An inherited relative LEONIDA_CACHE_DIR was not normalised, and a typed ~ was expanded while the runtime takes it as it is: both resolve the same way now (no ~ expansion, as leonida-core's config), so PLAY, the confirmation and the deletion name one folder. Tests: RuntimeDirTests (inherited relative from the checkout; a typed ~ kept on both systems; Windows ignores an inherited value; the Linux default saves and their parent refused as a cache, an Advanced LEONIDA_DATA_DIR and a folder in it refused on both systems, the Linux default cache allowed); the Linux cache test made path-neutral. 143 OK. With the old saves guard the new test fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/dev-tools.md')
0 files changed, 0 insertions, 0 deletions