diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 04:46:07 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 04:46:07 +0100 |
| commit | 69925a7c0c6a073e0c1f6db20d3e7617c3834f23 (patch) | |
| tree | 93968bb0eee8d27d777ff6fd61a990fe3f313b01 /scripts/windows-boot/crash_monitor.cpp | |
| parent | 29085dbf2bb2dec80e9e8d86926fc7f3bbed97f3 (diff) | |
launcher: Clear shader cache resolves a relative cache dir as the runtime does and never deletes saves, the game or Mandy
merzleckeier's P1 on 29085dbf2: an Advanced LEONIDA_CACHE_DIR that is
relative was resolved from the GUI's working directory, while the runtime
resolves it from where it starts (d3d12 on Windows, where play-nvidia.ps1
pushes; the checkout on Linux, where play-linux.sh starts), so Tools could
pick another existing folder; and the typed value was the recursive
deletion target as it stood.
- shader_cache_dir makes a typed value absolute from that base (~ expanded),
one path for the confirmation and the deletion.
- cache_dir_problem refuses a drive's root, a folder that holds the home
folder or the data folder, and any folder that holds or sits in the saves
(<data>/data), the game folder or Mandy's own folder. The default cache
(<data>/cache-2, beside the saves) stays allowed. Clear shader cache says
why and deletes nothing; the window warns before any confirmation.
Tests: CacheDirGuardTests (a relative value made absolute per system and,
being inside Mandy's folder, refused; Data, Data/data, the saves, Game, a
folder under Game, the parent of both, Mandy's folder, d3d12, the home
folder and the root all refused with the saves and the game file intact; a
cache elsewhere cleared; the default cache allowed). 141 OK; new texts in
de/es/fr/pt. Counter-test with the guard off (removal stubbed, nothing
deleted): both tests fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/windows-boot/crash_monitor.cpp')
0 files changed, 0 insertions, 0 deletions