add cmake config file for resource dir

This commit is contained in:
ouwou
2021-07-02 21:41:05 -04:00
parent 0fcd14c089
commit 90076cf689
3 changed files with 8 additions and 1 deletions

View File

@@ -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;