Skip to content

fix(mediascanner): add diagnostic logging and tests for custom launcher file matching#531

Merged
wizzomafizzo merged 1 commit intomainfrom
fix/custom-launcher-media-db-diagnostics
Feb 8, 2026
Merged

fix(mediascanner): add diagnostic logging and tests for custom launcher file matching#531
wizzomafizzo merged 1 commit intomainfrom
fix/custom-launcher-media-db-diagnostics

Conversation

@wizzomafizzo
Copy link
Member

Summary

Investigates #517 and #507 — custom launchers with media_dirs configured are not having their files indexed into the media database on Windows.

  • Added tests for PathIsLauncher and MatchSystemFile with custom launchers using absolute folder paths, empty RootDirs, mixed built-in/custom launchers, and edge cases — all pass, confirming the matching logic is correct and the bug is environmental
  • Added info-level logging after TOML unmarshal in LoadCustomLaunchers to reveal deserialization issues (wrong keys, empty values)
  • Upgraded ParseCustomLaunchers logging from debug to info with full folder paths and extensions instead of just counts
  • Added debug-level per-system counts in LauncherCache.Initialize to verify cache population
  • Added info-level diagnostic in GetFiles when a directory walk finds entries but 0 files match any launcher
  • Added debug-level logging in MatchSystemFile when no launcher matches a file, showing how many launchers were checked

Refs #517, refs #507

…er file matching (#517, #507)

Custom launchers with media_dirs configured are not having their files
indexed into the media database on Windows. Code-level tests confirm the
matching logic is correct, so this adds diagnostic logging throughout the
custom launcher pipeline to reveal why files don't match on affected
machines.
@sentry
Copy link

sentry bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit 5b2f069 into main Feb 8, 2026
11 checks passed
@wizzomafizzo wizzomafizzo deleted the fix/custom-launcher-media-db-diagnostics branch February 8, 2026 11:22
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