From 4fab2afced44e745d5af85184fd9c3997af2374a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 7 May 2026 00:39:04 +0100 Subject: config: use lua by default, generate lua if no config present --- src/config/ConfigManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/ConfigManager.cpp') 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(); @@ -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(); } else { -- cgit v1.2.3