fix dbpath for windows

This commit is contained in:
Martin Brodbeck 2018-07-31 12:31:57 +02:00
parent db0dba9b4f
commit a6c5366b63

View file

@ -18,7 +18,7 @@ Database::Database()
#if defined(__linux__) || defined(__APPLE__)
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";
fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA")) / "kima2";
#else
throw std::runtime_error("Platform not supported.");
#endif