Allow a custom launcher log path #151

Open
azimaus970 wants to merge 2 commits from upstream-pr/151 into main
azimaus970 commented 2026-11-25 15:08:44 +00:00 (Migrated from github.com)
First-time contributor

Imported from Zettrox/ztrx. Originally posted by azimaus970 on 2026-11-25T15:05:12Z.


Why

The launcher writes every run to %TEMP%\ztrx.log, so a second run
overwrites the log from the build you're comparing against.

What changed

  • Added an optional -LogPath. Omitting it uses %TEMP%\ztrx.log.
  • Empty paths, directories, and paths with a missing parent fail before launch.
  • Log write failures return exit code 1.
  • Documented that reusing a path overwrites the previous log.

Verification

Ran 20 checks across PowerShell 7 and Windows PowerShell 5.1 with a
stand-in executable. Verified default and custom paths, spaces and
brackets, overwrite behavior, and invalid and locked destinations.
No game files were used.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6607501119 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/151). Originally posted by [azimaus970](https://github.com/azimaus970) on 2026-11-25T15:05:12Z. --- ## Why The launcher writes every run to `%TEMP%\ztrx.log`, so a second run overwrites the log from the build you're comparing against. ## What changed - Added an optional `-LogPath`. Omitting it uses `%TEMP%\ztrx.log`. - Empty paths, directories, and paths with a missing parent fail before launch. - Log write failures return exit code 1. - Documented that reusing a path overwrites the previous log. ## Verification Ran 20 checks across PowerShell 7 and Windows PowerShell 5.1 with a stand-in executable. Verified default and custom paths, spaces and brackets, overwrite behavior, and invalid and locked destinations. No game files were used.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/151:upstream-pr/151'
git switch 'upstream-pr/151'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/151'
git switch 'upstream-pr/151'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/151'
git switch 'upstream-pr/151'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/151'
git switch 'main'
git merge --squash 'upstream-pr/151'
git switch 'main'
git merge --ff-only 'upstream-pr/151'
git switch 'main'
git merge 'upstream-pr/151'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx!151
No description provided.