diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-05-07 00:39:04 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-05-07 00:39:04 +0100 |
| commit | 4fab2afced44e745d5af85184fd9c3997af2374a (patch) | |
| tree | f38b89f120ac4a96c04ff470e4abd770b22ba546 /src/config/ConfigManager.cpp | |
| parent | 78b8ce229c098a9911e2fe0dbc02f4b8340f70a9 (diff) | |
config: use lua by default, generate lua if no config present
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index aaad6dc9..297e9c04 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -30,7 +30,7 @@ bool Config::initConfigManager() { Log::logger->log(Log::DEBUG, "[cfg] Regular config at {}", filePath.string()); std::error_code ec; - if (std::filesystem::exists(filePath, ec) && !ec && filePath.extension() == ".lua") { + if (filePath.extension() == ".lua") { // we have lua! Log::logger->log(Log::DEBUG, "[cfg] Using lua config found at {}", filePath.string()); g_mgr = makeUnique<Lua::CConfigManager>(); @@ -42,7 +42,7 @@ bool Config::initConfigManager() { } else { Log::logger->log(Log::DEBUG, "[cfg] Config is either explicit or special."); - if (filePath.extension() == ".lua" || filePath.extension() == "lua") { + if (filePath.extension() == ".lua") { Log::logger->log(Log::DEBUG, "[cfg] Config is lua, loading lua mgr"); g_mgr = makeUnique<Lua::CConfigManager>(); } else { |
