sgdk
|
00001 00062 #ifndef _SAVEMAN_H_ 00063 #define _SAVEMAN_H_ 00064 00065 #include "types.h" 00066 00071 enum { 00072 SM_STAT_PARAM_ERR = -3, 00073 SM_STAT_HW_ERR = -2, 00074 SM_STAT_ERR = -1, 00075 SM_STAT_OK = 0, 00076 SM_STAT_WARN_NO_DATA = 1, 00077 }; 00109 int16_t sm_init(uint8_t num_slots, uint32_t max_length_restrict); 00110 00115 void sm_deinit(void); 00116 00132 int16_t sm_load(uint8_t slot, void *save_data, uint16_t len); 00133 00150 int16_t sm_save(uint8_t slot, const void *save_data, uint16_t len); 00151 00165 int16_t sm_delete(uint8_t slot); 00166 00179 int16_t sm_clear(uint8_t num_slots); 00180 00181 #endif