Skip to content

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Add RBF path cache that scans for core files on startup
  • Provides O(1) lookups by system ID or short name with hardcoded paths as fallback
  • Allows cores to be installed in non-standard locations (e.g., user-specific directories)
  • Cache refreshes automatically when launcher cache refreshes via launchers.refresh API

Add a cache that scans for RBF core files on startup and provides O(1)
lookups by system ID or short name. The cache is preferred for resolving
core paths with the hardcoded paths as fallback.

This allows cores to be installed in non-standard locations while
maintaining compatibility with the default paths.

- Add RBFCache with thread-safe lookups via syncutil.RWMutex
- Cache refreshes automatically when launcher cache refreshes
- Use cached paths in MGL generation and core launching
- Within a directory, newer cores (higher date) take precedence
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 62.50000% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/platforms/mister/cores/rbf_cache.go 69.38% 15 Missing ⚠️
pkg/platforms/mister/mgls/mgls.go 0.00% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit e4a024d into main Dec 18, 2025
9 checks passed
@wizzomafizzo wizzomafizzo deleted the feat/mister-rbf-cache branch December 18, 2025 09:53
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.

2 participants