Repository navigation
U-1: run scripts offer to find the game folder and take a dragged-in exe - #29
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #28, helps U-1 (no terminal knowledge needed); does not finish it, so the TODO row stays.
When no game folder is saved yet,
run-gta6.ps1andmeasure-gta6.ps1now offer to find the game instead of asking for a path straight away.What changed
scripts/game-dir.ps1(new, shared by both run scripts):MicrosoftGame.config: up to 4 levels on every fixed drive (Windows' own folders skipped), deeper in Downloads, Desktop and Documents and the usual Xbox, Steam and Epic folders. Stops after 60 s.MicrosoftGame.config) and folder and asks to confirm. Several: numbered list, games named GTA first. None: says so..exe(or its folder) from File Explorer into the window, or paste the address bar..exe(& '...'or"..."), a file in a subfolder, a folder up to 3 levels above, or the folder holdingContentall resolve to the game folder. It asks again until one has aMicrosoftGame.config.run-gta6.ps1,measure-gta6.ps1: the old prompt loop is replaced byRead-GameDir; header comments updated.-GameDirand a saved folder work as before.Tested
Windows 11 Pro 25H2, Ryzen 7 7800X3D, RTX 3080 12 GB, driver 621.24.
y,yreturned the right folder..exein both forms, a file in a subfolder and the folder above all resolved; a wrong path and an empty answer were rejected.Read-GameDirwith scripted answers: detect and accept; skip and drag in the.exe; detect, reject, wrong path, then the right folder.cargo xtask policy: ok.start-measure.cmd, or a PC where the game is deeper than the scan goes (the drag-and-drop prompt covers that).AI-assisted.
🤖 Generated with Claude Code