Skip to content

Prevent startup import from overwriting maps with the same filename - #206

Open
Fv7eh wants to merge 1 commit into
Rhythia:indevfrom
Fv7eh:fix/startup-map-import-collisions
Open

Fv7eh wants to merge 1 commit into
Rhythia:indevfrom
Fv7eh:fix/startup-map-import-collisions

Conversation

@Fv7eh

@Fv7eh Fv7eh commented Nov 23, 2026

Copy link
Copy Markdown

Problem

On startup, Rhythia imports legacy maps from subfolders. The converted folder is named after the source file, so two different maps named finale.txt both 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

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