Don't commit the settings file
This commit is contained in:
parent
2ca2a4f98c
commit
a53c8fe525
|
@ -4,5 +4,6 @@
|
||||||
/assets.pack
|
/assets.pack
|
||||||
/data.pack
|
/data.pack
|
||||||
/.vs/
|
/.vs/
|
||||||
|
/.data.db
|
||||||
*.swp
|
*.swp
|
||||||
*~
|
*~
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
#define SETTINGS_DB_FILE ".data.db"
|
||||||
|
|
||||||
static sqlite3 *db = NULL;
|
static sqlite3 *db = NULL;
|
||||||
static Settings settings;
|
static Settings settings;
|
||||||
|
|
||||||
|
@ -92,7 +94,7 @@ load_settings(void)
|
||||||
void
|
void
|
||||||
settings_init(void)
|
settings_init(void)
|
||||||
{
|
{
|
||||||
int result = sqlite3_open("data.db", &db);
|
int result = sqlite3_open(SETTINGS_DB_FILE, &db);
|
||||||
if (result) {
|
if (result) {
|
||||||
error("Failed to open settings db: %s", sqlite3_errmsg(db));
|
error("Failed to open settings db: %s", sqlite3_errmsg(db));
|
||||||
sqlite3_close(db);
|
sqlite3_close(db);
|
||||||
|
|
Loading…
Reference in New Issue