fix(problems): the crash check reads the game log in logs/ too #60
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/ui
area/updates
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!60
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/crash-check-logs"
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?
On builds from Longshot nightly-127 on, the launcher never says that the game closed unexpectedly: the game's log moved to
logs/longshot_log.txt(MagicBeanDev/Longshot#321), and the crash check only readslongshot_log.txtbeside the game.What changed
Core/Problems.cs:CrashCheck.LogPathreturns the newer oflogs/longshot_log.txtand the looselongshot_log.txt, andCrashCheck.Findreads that one. Both places are kept, since Longshot v3.0.0-rc.3 and the nightlies before 127 still write the loose file.logs/at its first start, but keeps it where it is when one of that name is there already (host/game_layout.c). That's why it takes the newer file rather than preferringlogs/.tests/launcher_core/ProblemChecks.cs: the crash check's test now also covers:logs/is found;logs/is read when it is newer;How it was tested
<game folder>/logs/longshot_log.txt, with the same game folder the launcher already uses: Longshothost/game_layout.candhost/hos_main.cat cf605c85, againsthost/hos_main.cat 0c74253d (v3.0.0-rc.3).python -I tests/test_launcher_core.pyandpython -I tests/test_release.pyare left to CI.Found while checking whether a new launcher nightly needs a new builder release. It needs none: everything else the launcher reads from a build is unchanged by the layout move.
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e34avQ5cTCWow16MXn