MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / WatcherCallback

Method WatcherCallback

TranslucentTB/managers/configmanager.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ConfigManager::WatcherCallback(void *context, DWORD, std::wstring_view fileName)
46{
47 if (fileName.empty() || win32::IsSameFilename(fileName, CONFIG_FILE))
48 {
49 const auto that = static_cast<ConfigManager *>(context);
50
51 if (!that->ScheduleReload())
52 {
53 that->Reload();
54 }
55 }
56}
57
58void ConfigManager::TimerCallback(void *context, DWORD, DWORD)
59{

Callers

nothing calls this directly

Calls 2

ScheduleReloadMethod · 0.80
ReloadMethod · 0.80

Tested by

no test coverage detected