dwatteau / scummtr

Fan translation tools for SCUMM engine games
MIT License
23 stars 4 forks source link

feat(scummfont): Rename the -new file ourselves, don't ask users to do it manually #30

Closed dwatteau closed 3 years ago

dwatteau commented 3 years ago

Even with the "don't forget to rename the -new file" remainder, it's easy to forget to do this, especially since it's the only tool behaving this way.

So, let's just do the renaming ourselves.

(PR #26 was a previous attempt, before ScummFont was switched to ScummIO. I don't think we can use the backup() stuff, since saveFont() wants to read the previous file and write the new file at the same time.)