Skip to content

Commit c66dafc

Browse files
committed
Delete all config files on settings_reset
2 parents 1b89ff7 + 1e6704a commit c66dafc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/retro-go/rg_storage.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ static cJSON *json_root(const char *name)
205205

206206
void rg_settings_reset(void)
207207
{
208+
// Get rid of everything in RG_BASE_PATH_CONFIG...
209+
// opendir(RG_BASE_PATH_CONFIG);
210+
unlink(RG_BASE_PATH_CONFIG "/favorite.txt");
211+
unlink(RG_BASE_PATH_CONFIG "/recent.txt");
212+
208213
cJSON_Delete(config_root);
209214
config_root = cJSON_CreateObject();
210215
unsaved_changes++;

0 commit comments

Comments
 (0)