From: chaoskagami Date: Thu, 9 Jun 2016 23:19:16 +0000 (-0400) Subject: Prevent recaching every boot X-Git-Tag: v0.0.8~1 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=7e5b383574c88b8f481658d858ced9e38cf8fa86;p=corbenik%2Fcorbenik.git Prevent recaching every boot --- 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);