Save a valid config at first start..!

This commit is contained in:
Steve 2015-11-02 19:07:38 +00:00
parent 36b315c56e
commit bef2511ac4
1 changed files with 3 additions and 3 deletions

View File

@ -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)