Protofall / Crayon-Savefile

A savefile system designed to take up little space and support version control. Works on PC and Dreamcast
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Unable to load/save savefile if no pre-existing savefile was present #16

Closed Protofall closed 4 years ago

Protofall commented 4 years ago

Both DEMUL and Reicast respond the same, they can't load or save a savefile because they both believe that no valid devices are present.

Redream, however, believes only the first one is valid (Controller A, slot 1) and seems to be able to save/load from it no problem

Protofall commented 4 years ago

On Reicast it appears inside crayon_savefile_update_valid_saves(), the crayon_savefile_check_savedata() function returns 2 (Failed to read file) so it enters the if part. Then when we try to get the size of the file it failed to read the file once again so it continues.

It turns out redream had an existing savefile and once that was deleted, it behaved like the other two and chances are PC would also fail this.

Protofall commented 4 years ago

The bug appears to be fixed in the next commit