platform tweak

allow_new_sellers
Martin Brodbeck 4 years ago
parent a17bc8f89a
commit 74719b762f
  1. 4
      src/core/database.cpp

@ -15,9 +15,9 @@ Database::Database()
{
namespace fs = std::filesystem;
#if defined(__linux__)
#if defined(__linux__) || defined (__APPLE__)
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";
#else
throw std::runtime_error("Platform not supported.");

Loading…
Cancel
Save