From a6c5366b6396fbe377f3ac3446b7dee1da09c6c1 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 31 Jul 2018 12:31:57 +0200 Subject: [PATCH] fix dbpath for windows --- src/core/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index 75b85d0..9c0a062 100644 --- a/src/core/database.cpp +++ b/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