platform tweak
This commit is contained in:
parent
a17bc8f89a
commit
74719b762f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue