Fixed save crash
This commit is contained in:
@@ -66,3 +66,26 @@ errorret_t saveWriteDolphin(const uint8_t slot, const savefile_t *file);
|
||||
* @return An error code if the delete fails.
|
||||
*/
|
||||
errorret_t saveDeleteDolphin(const uint8_t slot);
|
||||
|
||||
/**
|
||||
* Builds the memory card file name for a given save slot, from
|
||||
* SAVE_DOLPHIN_GAME_CODE and the slot index.
|
||||
*
|
||||
* @param slot The save slot index.
|
||||
* @param out Destination buffer for the file name.
|
||||
* @param max Size of out, in bytes.
|
||||
*/
|
||||
void saveGetFileNameDolphin(
|
||||
const uint8_t slot, char_t *out, const size_t max
|
||||
);
|
||||
|
||||
/**
|
||||
* Describes a libogc CARD_ERROR_* result code (see
|
||||
* https://libogc.devkitpro.org/group__card__errors.html), for logging
|
||||
* alongside the raw numeric code.
|
||||
*
|
||||
* @param result The result code returned by a CARD_* libogc call.
|
||||
* @return A human-readable description of the result code, or
|
||||
* "unknown card error" if result doesn't match a known CARD_ERROR_* code.
|
||||
*/
|
||||
const char_t *saveCardErrorStringDolphin(const int32_t result);
|
||||
|
||||
Reference in New Issue
Block a user