From db1d487a2e49c85dbead7c11a0b8f0b67d0af127 Mon Sep 17 00:00:00 2001
From: ENGO150 <v.smejkal06@gmail.com>
Date: Fri, 30 Aug 2024 00:44:38 +0200
Subject: [PATCH] moved WHY2_CONFIG_DIR to core-flags

---
 include/chat/config.h | 3 ++-
 include/flags.h       | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/chat/config.h b/include/chat/config.h
index 3d36166..35b09cb 100644
--- a/include/chat/config.h
+++ b/include/chat/config.h
@@ -23,8 +23,9 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 extern "C" {
 #endif
 
+#include <why2/flags.h> //damn i really hate including headers in headers
+
 //CONFIG MACROS
-#define WHY2_CONFIG_DIR "/home/{USER}/.config"
 #define WHY2_CHAT_CONFIG_DIR WHY2_CONFIG_DIR "/WHY2"
 #define WHY2_CHAT_CONFIG_URL "https://raw.githubusercontent.com/ENGO150/WHY2/development/src/chat/config/"
 #define WHY2_CHAT_CONFIG_SERVER "server.toml"
diff --git a/include/flags.h b/include/flags.h
index 65fc94f..500497a 100644
--- a/include/flags.h
+++ b/include/flags.h
@@ -50,6 +50,7 @@ enum WHY2_OUTPUT_FORMAT
 
 #define WHY2_VERSION "v5.0" //WHY2_VERSION OF CURRENT BUILD     > DO NOT TOUCH THIS <
 #define WHY2_VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/release/versions.json" //URL FOR GETTING versions.json
+#define WHY2_CONFIG_DIR "/home/{USER}/.config"
 #define WHY2_VERSIONS_NAME "/tmp/why2-versions.json" //do I have to explain this?
 
 #define WHY2_UPDATE_URL "https://github.com/ENGO150/WHY2.git" // REPOSITORY URL FOR UPDATES (YOU DON'T SAY)