[pr-fix][startup] Scripts: bench and the frame generation start read F1's file in DARNER_HOME #79
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/scripts-darner-home"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
With
DARNER_HOMEset,scripts\play-nvidia.ps1anddarner playreaddarner-settings.txtthere. Two scripts looked elsewhere:scripts\play-nvidia-framegen.ps1looked only in the repository folder, so it could miss a saved FSR 3 choice and not fetch AMD's files.scripts\bench.ps1looked only in%LOCALAPPDATA%\darner. It could miss saved choices that change a run, or stop for a fileplaydoes not read. It looked for NVIDIA's files there too.Each now looks where the launcher it starts does:
bench.ps1startsplayin the repository folder, so a relativeDARNER_HOMEis taken from there.play-nvidia.ps1does.[IO.Path]::Combine, so aDARNER_HOMEon a drive that is not there does not stop the script.Join-Pathstoppedbench.ps1there.Like the other scripts, these two do not read the folder picked in F1 (
folders.txt).How it was tested
4bf4518a[Parser]::ParseFile): 0 errors.DARNER_HOME. Each gives the folder of the launcher the script starts:bench.ps1, under the current folder for the frame generation start;%LOCALAPPDATA%\darnerforbench.ps1, the repository folder for the frame generation start;DARNER_HOMEset.Checklist
main.docs/asset-policy.md.Checked for overlap
scripts/bench.ps1, in other lines. The two merge together without conflicts, in either order.🤖 Generated with Claude Code