From a53c8fe5253dd9cffcf7ff4ff5f6cf035a2772d6 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 17 Mar 2018 00:21:46 +0100 Subject: [PATCH] Don't commit the settings file --- .gitignore | 1 + data.db | Bin 12288 -> 12288 bytes src/settings.c | 4 +++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cb2e836..f4b93fa 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ /assets.pack /data.pack /.vs/ +/.data.db *.swp *~ diff --git a/data.db b/data.db index 91952a2040778fa59f209182474dd01d310acdb1..538dce3e2c3e7c9c45cb479def13519afc88d217 100644 GIT binary patch delta 62 zcmZojXh@hK&B!}Z#+i|KV?wRGFb}gjM{a3xW^#OLUSd*CYKj2&<`43J`GvU!nbjFl GWOx8kClgx$ delta 62 zcmZojXh@hK&B#4b#+i|OV?wRGFc-5rM{a3xW^#OLUSd*CYKj2o<`43J`Gq+JnbjFl GWVirNp%YI4 diff --git a/src/settings.c b/src/settings.c index 06993d7..3231cf7 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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);