diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-02 21:41:05 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-02 21:41:05 -0400 |
commit | 90076cf689bd241097d940b1f333d4898b0a9950 (patch) | |
tree | fcc98f719747dcf5f677cb16b7cf275a4034e66b /platform.cpp | |
parent | 0fcd14c089ea8c3cf281200b90cc1745c7fd7d53 (diff) | |
download | abaddon-portaudio-90076cf689bd241097d940b1f333d4898b0a9950.tar.gz abaddon-portaudio-90076cf689bd241097d940b1f333d4898b0a9950.zip |
add cmake config file for resource dir
Diffstat (limited to 'platform.cpp')
-rw-r--r-- | platform.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform.cpp b/platform.cpp index b5e92e3..e6338ff 100644 --- a/platform.cpp +++ b/platform.cpp @@ -2,6 +2,7 @@ #include <string> #include <fstream> #include <filesystem> +#include <config.h> using namespace std::literals::string_literals; @@ -97,7 +98,7 @@ std::string Platform::FindResourceFolder() { const static std::string home_path = std::getenv("HOME") + "/.config/abaddon"s; - for (const auto &path : { "."s, home_path, "/usr/share/abaddon"s }) { + for (const auto &path : { "."s, home_path, std::string(ABADDON_DEFAULT_RESOURCE_DIR) }) { if (IsFolder(path + "/res") && IsFolder(path + "/css")) { found_path = path; found = true; |