| 31 | constexpr uint32_t kDebounceMs = 500; |
| 32 | |
| 33 | bool IsLuaFile(const std::string& path) { |
| 34 | if (path.size() < 4) return false; |
| 35 | return std::equal(path.end() - 4, path.end(), ".lua", [](char lhs, char rhs) { |
| 36 | return std::tolower(static_cast<unsigned char>(lhs)) == std::tolower(static_cast<unsigned char>(rhs)); |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | ChangeAction FromPlatformAction(OSTPlatform::DirectoryWatch::ChangeAction action) { |
| 41 | switch (action) { |