From 519c3cddfee4f827591c90da59a961f863ed9118 Mon Sep 17 00:00:00 2001 From: Jstsmthrgk <38539927+jstsmthrgk@users.noreply.github.com> Date: Fri, 8 Mar 2024 02:25:48 +0100 Subject: [PATCH] make configuration_path configurable via env var EE_CONF_DIR --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 79ff889528..8441068dc3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -130,7 +130,9 @@ int main(int argc, char** argv) LOG(Info, "Starting..."); new Engine(); string configuration_path = "."; - if (getenv("HOME")) + if (getenv("EE_CONF_DIR")) + configuration_path = string(getenv("EE_CONF_DIR")); + else if (getenv("HOME")) configuration_path = string(getenv("HOME")) + "/.emptyepsilon"; #ifdef STEAMSDK {