Browse Source

fix dbpath for windows

allow_new_sellers
Martin Brodbeck 4 years ago
parent
commit
a6c5366b63
  1. 2
      src/core/database.cpp

2
src/core/database.cpp

@ -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…
Cancel
Save