fix dbpath for windows
This commit is contained in:
parent
db0dba9b4f
commit
a6c5366b63
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue