From 7e5b383574c88b8f481658d858ced9e38cf8fa86 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Thu, 9 Jun 2016 19:19:16 -0400 Subject: [PATCH] Prevent recaching every boot --- source/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/config.c b/source/config.c index 32e1962..50e22fd 100644 --- a/source/config.c +++ b/source/config.c @@ -20,8 +20,6 @@ regenerate_config() fclose(conf_handle); fprintf(BOTTOM_SCREEN, "Config file written.\n"); - - config.options[OPTION_RECONFIGURED] = 1; } void @@ -94,6 +92,8 @@ save_config() if (!(conf_handle = fopen(PATH_CONFIG, "w"))) abort("Failed to open config for write?\n"); + config.options[OPTION_RECONFIGURED] = 0; // This should not persist to disk. + fwrite(&config, 1, sizeof(config), conf_handle); fclose(conf_handle); -- 2.39.5