Skip to content

Add custom album hot reload support#29

Open
Suzimo506 wants to merge 1 commit into
MDMods:developmentfrom
Suzimo506:hot-reload-only
Open

Add custom album hot reload support#29
Suzimo506 wants to merge 1 commit into
MDMods:developmentfrom
Suzimo506:hot-reload-only

Conversation

@Suzimo506

Copy link
Copy Markdown

Summary

Adds hot reload support for custom albums.

This allows .mdm files in the custom albums directory to be added, removed, changed, or renamed while the game is running. The runtime album database, music info cache, custom album tag list, hidden chart data, covers, and stage UI are refreshed after file changes.

Changes

  • Add FileSystemWatcher handling for custom album add/delete/change/rename events
  • Queue file watcher events and process them on the main thread
  • Rebuild runtime album metadata after hot reload changes
  • Refresh custom album tag data and stage UI after changes
  • Support hot-reloaded hidden charts
  • Fix demo audio cleanup so reloaded preview audio does not get cut off incorrectly

Validation

  • Built successfully with dotnet build CustomAlbums.csproj --no-restore

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