Skip to content

feat(mister): add FULLPATH-based game tracking for log_file_entry support#510

Closed
wizzomafizzo wants to merge 4 commits intomainfrom
feat/mister-startpath-tracking
Closed

feat(mister): add FULLPATH-based game tracking for log_file_entry support#510
wizzomafizzo wants to merge 4 commits intomainfrom
feat/mister-startpath-tracking

Conversation

@wizzomafizzo
Copy link
Copy Markdown
Member

@wizzomafizzo wizzomafizzo commented Jan 31, 2026

Summary

  • Watch both FULLPATH and recents files unconditionally for game tracking
  • When log_file_entry=1 is enabled in mister.ini, MiSTer writes game paths to /tmp/FULLPATH on OSD file selection
  • Both sources feed into the same SetActiveGame pipeline — whichever fires, the tracker handles it
  • No ini parsing needed — works regardless of log_file_entry setting
  • Fixes game tracking when MiSTer's recents feature is broken or disabled

@sentry
Copy link
Copy Markdown

sentry Bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/platforms/mister/tracker/tracker.go 42.85% 11 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo marked this pull request as draft February 7, 2026 00:10
Add support for MiSTer's log_file_entry setting as an alternative method
to track game launches. When log_file_entry=1 is enabled in mister.ini,
MiSTer writes the launched game path to /tmp/STARTPATH. This provides a
more direct and reliable tracking method compared to monitoring recents
files.

At startup, Zaparoo checks if STARTPATH exists. If present, it watches
STARTPATH exclusively; otherwise, it falls back to the existing recents
file monitoring.
STARTPATH contains the core/MRA path, not the ROM path. When
log_file_entry=1 is enabled, watch FULLPATH instead which receives
the actual game path when selected in the OSD browser.

STARTPATH existence is still used as the signal that log_file_entry
mode is active.
@wizzomafizzo wizzomafizzo force-pushed the feat/mister-startpath-tracking branch from 3692499 to 6e29dd3 Compare March 29, 2026 08:41
@wizzomafizzo wizzomafizzo marked this pull request as ready for review March 29, 2026 08:45
Remove the STARTPATH-based detection of log_file_entry mode. Instead,
always watch both the recents folder and FULLPATH file. Whichever
source fires, the tracker handles it through the same SetActiveGame
pipeline. This avoids the problem of STARTPATH not existing on fresh
boot and removes the need to parse mister.ini.
@wizzomafizzo wizzomafizzo changed the title feat(mister): add support for log_file_entry tracking via STARTPATH feat(mister): add FULLPATH-based game tracking for log_file_entry support Mar 29, 2026
Comment thread pkg/platforms/mister/tracker/tracker.go
@wizzomafizzo
Copy link
Copy Markdown
Member Author

absolute useless garbage feature this is. impossible to interpret the results, i feel sorry for anyone who uses it for their marquee

@wizzomafizzo wizzomafizzo deleted the feat/mister-startpath-tracking branch March 29, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant