| 255 | } |
| 256 | |
| 257 | bool 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 | |
| 291 | void AdvSceneSwitcher::on_fileAdd_clicked() |
| 292 | { |
nothing calls this directly
no test coverage detected