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

Function IsLuaFile

src/Utils/Config/LuaFileWatcher.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31constexpr uint32_t kDebounceMs = 500;
32
33bool 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
40ChangeAction FromPlatformAction(OSTPlatform::DirectoryWatch::ChangeAction action) {
41 switch (action) {

Callers 1

ProcessChangesFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected