fix dbpath for windows

This commit is contained in:
Martin Brodbeck 2018-07-31 12:31:57 +02:00
parent db0dba9b4f
commit a6c5366b63
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Database::Database()
#if defined(__linux__) || defined(__APPLE__) #if defined(__linux__) || defined(__APPLE__)
fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2"; fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2";
#elif defined(_WIN64) || defined(_WIN32) #elif defined(_WIN64) || defined(_WIN32)
fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2"; fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA")) / "kima2";
#else #else
throw std::runtime_error("Platform not supported."); throw std::runtime_error("Platform not supported.");
#endif #endif