Skip to content

Commit

Permalink
make configuration_path configurable via env var EE_CONF_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
jstsmthrgk authored Mar 8, 2024
1 parent 4ea6f0d commit 519c3cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 519c3cd

Please sign in to comment.