I have some issues in TriloTracker where saved songs sometimes are corrupted.
It seems like there are old and new blocks of data in the file that is overwritten.
The strange thing is that I can only reproduce the issue on openMSX when DirAsDisk is used.
The directory is not too big. It contains aprox. 300kb. And it happens with this specific file. Time after time. Even with other contents in the directory.
The scenario is:
Load ALESTEGG.TMU and save as new file ALESTETT.TMU. No problem
Load ALESTEGG.TMU and save (overwrite). Problem. Pieces of old data and new data are mixed.
The file is saved in smaller sequential writes as I have to compress the data on the fly. The blocks of data, that are wrong, do not allign with save actions. So it is almost not possible that the wrong data is written.
This issue only happens with DirAsDisk in openMSX.
It does works in these situations without issues:
- OpenMSX on a HDD image
- Emulicious as DirAsDisk
- Real MSX on an MFR and floppy.
Does anyone have an idea why this happens?
Are there other cases known where this happens?