Factor out handling of variables populated from the database.

This reorganization is a first step toward handling database compilation separately.
This commit is contained in:
Jason S. Ninneman 2017-05-28 15:42:05 -07:00
parent e0f160d313
commit df46df6979
11 changed files with 127 additions and 56 deletions

3
init.c
View file

@ -7,6 +7,7 @@
#include "main.h"
#include "share.h"
#include "funcs.h"
#include "database.h"
/*
* Initialisation
@ -175,7 +176,7 @@ static void quick_io(void);
void initialise(void) {
if (oldstyle)
printf("Initialising...\n");
if(!quick_init()){raw_init(); report(); quick_save();}
if(!quick_init()){raw_init(); report(); quick_save();}
finish_init();
}