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 91952a2..538dce3 100644 Binary files a/data.db and b/data.db differ 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);