MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / checkFileContent

Method checkFileContent

lib/legacy/switch-file.cpp:257–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool SwitcherData::checkFileContent(OBSWeakSource &scene,
258 OBSWeakSource &transition)
259{
260 if (FileSwitch::pause) {
261 return false;
262 }
263
264 bool match = false;
265 for (FileSwitch &s : fileSwitches) {
266 if (!s.initialized()) {
267 continue;
268 }
269
270 bool equal = false;
271 if (s.remote) {
272 equal = checkRemoteFileContent(s);
273 } else {
274 equal = checkLocalFileContent(s);
275 }
276
277 if (equal) {
278 scene = s.getScene();
279 transition = s.transition;
280 match = true;
281
282 if (VerboseLoggingEnabled()) {
283 s.logMatch();
284 }
285 break;
286 }
287 }
288 return match;
289}
290
291void AdvSceneSwitcher::on_fileAdd_clicked()
292{

Callers

nothing calls this directly

Calls 6

checkRemoteFileContentFunction · 0.85
checkLocalFileContentFunction · 0.85
VerboseLoggingEnabledFunction · 0.85
getSceneMethod · 0.80
logMatchMethod · 0.80
initializedMethod · 0.45

Tested by

no test coverage detected