MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / ReloadConfig

Function ReloadConfig

src/Utils/Config/ConfigFileWatcher.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void ReloadConfig() {
66 LOG_INFO("Reloading config: {}", g_configPath);
67
68 const Config::LoadResult result = Config::Load(g_configPath);
69 if (!result.applied) {
70 LOG_WARN("Config reload skipped; keeping previous valid config");
71 return;
72 }
73
74 Log::ApplyConfigLevel();
75
76 if (result.luaPathsChanged) {
77 RestartLuaWatcher();
78 }
79}
80
81void WatcherThread() {
82 const std::filesystem::path configPath(g_configPath);

Callers 1

WatcherThreadFunction · 0.85

Calls 3

RestartLuaWatcherFunction · 0.85
LoadFunction · 0.70
ApplyConfigLevelFunction · 0.50

Tested by

no test coverage detected