From 9a03de72c2e198621aa21986705370094c985ae1 Mon Sep 17 00:00:00 2001 From: Squid Coder Date: Sat, 1 Feb 2025 14:21:55 -0600 Subject: [PATCH] add helper method `isViewTracking()` --- Config.cpp | 4 ++++ Config.h | 1 + 2 files changed, 5 insertions(+) diff --git a/Config.cpp b/Config.cpp index 5a671aa2..4f7ffd2c 100644 --- a/Config.cpp +++ b/Config.cpp @@ -819,6 +819,10 @@ namespace { } } +bool isViewTracking() { + auto& ssConfig = stonesenseState.ssConfig; + return ssConfig.config.track_mode != Config::TRACKING_NONE; +} bool loadConfigFile() { diff --git a/Config.h b/Config.h index 93b9f0fe..76e597f2 100644 --- a/Config.h +++ b/Config.h @@ -77,5 +77,6 @@ struct action_name_mapper { void (*func)(uint32_t); }; +bool isViewTracking(); bool loadConfigFile(); std::optional trim_line(std::string line);