|
Symptom
If a card's save data is in an invalid format, you should be able to run nn::fs::FormatSaveData to put the save data into a normal state, but in some rare cases the invalid format is not cleared up even if FormatSaveData itself returns ResultSuccess.
Frequency of Occurrence
Because this becomes less likely as you continue to use save data following a format and also as the number of bytes written increases, it does not have a large effect on normal usage. However, it can be relatively easier for this to occur in format-destroy cycles for debugging.
Affects
All card-based software.
Comments
You do not need any additional implementation other than one that handles errors for invalid formats. If the aforementioned symptom occurs, several of the functions executed after FormatSaveData will return errors associated with nn::fs::ResultBadFormat. If you execute FormatSaveData again at this time, save data returns to the normal state. (This means repeating the sequence for handling corrupted save data twice.)
Support Period
Scheduled for support in CTR-SDK 2.0
|