| 59 | static bool g_vercheck_warned_timeout = false; |
| 60 | |
| 61 | static bool version_check_disabled() { |
| 62 | const char* env = std::getenv("FLM_DISABLE_UPDATE_CHECK"); |
| 63 | if (!env) return false; |
| 64 | |
| 65 | std::string value(env); |
| 66 | std::transform(value.begin(), value.end(), value.begin(), [](unsigned char c) { |
| 67 | return static_cast<char>(std::tolower(c)); |
| 68 | }); |
| 69 | return value == "1" || value == "true" || value == "yes" || value == "on"; |
| 70 | } |
| 71 | |
| 72 | #ifdef _WIN32 |
| 73 |
no test coverage detected