[ISSUE]: wLe not truncating PS1 save extension properly
Checks
- [x] I have checked existing issues for duplicates and found none
Describe the issue
This is probably less of a bug and more of an unintended behavior.
I've been trying to copy an individual FF7 save from MASS to MC1.
That save was exported from a memcard and as such has the .dat extension.
BASCUS-94163FF7-S01.dat
After copying, the file shows up as BASCUS-94163FF7-S01. on the memory card, whereas a clean FF7 save on slot 1 is normally titled BASCUS-94163FF7-S01
It can be read by the PSX BIOS, but not by the game.
I first assumed the extension was not truncated properly, so I removed the trailing dot. It still would not show up in-game.
After investigating the save itself, it seems like wLE modifies the header block of the save itself to match the file name it's using, and as such it writes the extra dot to the save, causing the game to fail to recognize the identifier.
The only fix is to remove the .dat extension altogether before copying the save.
I'm filing this as a bug because I assume wLe isn't truncating the extension properly, but there might as well be a 20-character limit on filenames that drops dat, and the user is supposed to supply the save without any extension for proper use.
Console model
SCPH-75000
@GSTDiandre check out this.
@10522 Not the same issue, the memcard is detected just fine and copying/pasting works.
This is about how wLE writes into PS1 save file headers by relying on the name of the file it is supplied. It only functions properly if the file has no extension, else it will mess with the save ID and cause the save not to be recognized by the game. PS1 saves are commonly stored with .dat or .mcr formats.