MCPcopy Create free account
hub / github.com/clementgallet/libTAS / switchForFile

Method switchForFile

src/program/lua/LuaFunctionList.cpp:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void LuaFunctionList::switchForFile(int row, bool active)
148{
149 fileList[row].enabled = active;
150 const std::filesystem::path& file = fileList[row].file;
151 for (auto& nlf : functions) {
152 if (0 == file.compare(nlf.file)) {
153 nlf.active = active;
154 }
155 }
156}
157
158bool LuaFunctionList::call(NamedLuaFunction::CallbackType c)
159{

Callers 1

setDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected