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.)
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, sincesaveFont()
wants to read the previous file and write the new file at the same time.)