Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On startup, Rhythia imports legacy maps from subfolders. The converted folder is named after the source file, so two different maps named
finale.txtboth write to maps/Finale. Startup then deletes both originals, leaving only one converted chart.Reproduced this on windows with rhythia rewrite 0.2.0. With the importer limited to one worker, the log showed TOTAL: 2; CORRUPT: 0 even though only one chart survived.
Fix
Give distinct maps separate output folders when their filenames match. Delete each original only after its own conversion succeeds.
Verification
Tested the patched build on windows with both the default import settings and a single import worker. In both runs, two different finale.txt charts in separate subfolders were converted into separate maps. The two successfully converted originals were removed, and a third file that failed to import was left unchanged.
AI usage
Used codex to reproduce the big before verifying it locally