platform tweak

This commit is contained in:
Martin Brodbeck 2018-07-20 08:18:28 +02:00
parent a17bc8f89a
commit 74719b762f
1 changed files with 2 additions and 2 deletions

View File

@ -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.");