new name for db

This commit is contained in:
Martin Brodbeck 2018-07-18 15:08:20 +02:00
parent e038d82cfc
commit 10b5cab5a4

View file

@ -16,9 +16,9 @@ Database::Database()
namespace fs = std::filesystem;
#if defined(__linux__)
fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2-cpp";
fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2";
#elif defined(__WIN64) || defined(__WIN32)
fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2-cpp";
fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2";
#else
throw std::runtime_error("Platform not supported.");
#endif
@ -30,7 +30,7 @@ Database::Database()
throw err;
}
}
dbpath /= "kima2.db";
dbpath /= "kima2-cpp.db";
dbname_ = dbpath.string();
init();
}