Don't commit the settings file

This commit is contained in:
Linus Probert 2018-03-17 00:21:46 +01:00
parent 2ca2a4f98c
commit a53c8fe525
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,5 +4,6 @@
/assets.pack
/data.pack
/.vs/
/.data.db
*.swp
*~

BIN
data.db

Binary file not shown.

View File

@ -23,6 +23,8 @@
#include "util.h"
#include "defines.h"
#define SETTINGS_DB_FILE ".data.db"
static sqlite3 *db = NULL;
static Settings settings;
@ -92,7 +94,7 @@ load_settings(void)
void
settings_init(void)
{
int result = sqlite3_open("data.db", &db);
int result = sqlite3_open(SETTINGS_DB_FILE, &db);
if (result) {
error("Failed to open settings db: %s", sqlite3_errmsg(db));
sqlite3_close(db);