From bef2511ac48c551a39d86dd1347670f66fbebe32 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 2 Nov 2015 19:07:38 +0000 Subject: [PATCH] Save a valid config at first start..! --- src/system/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/init.c b/src/system/init.c index b9af67a..172e723 100644 --- a/src/system/init.c +++ b/src/system/init.c @@ -178,9 +178,6 @@ static void loadConfig(void) else { text = readFile("data/app/config.json"); - - /* so that the player doesn't get confused */ - saveConfig(); } root = cJSON_Parse(text); @@ -194,6 +191,9 @@ static void loadConfig(void) cJSON_Delete(root); free(text); + + /* so that the player doesn't get confused if this is a new game */ + saveConfig(); } void saveConfig(void)