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

Function writeToStatusFile

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

Source from the content-addressed store, hash-verified

22static std::hash<std::string> strHash;
23
24static void writeToStatusFile(const QString &msg)
25{
26 if (!GetSwitcher() || !GetSwitcher()->fileIO.writeEnabled ||
27 GetSwitcher()->fileIO.writePath.empty()) {
28 return;
29 }
30
31 QFile file(QString::fromStdString(GetSwitcher()->fileIO.writePath));
32 if (file.open(QIODevice::ReadWrite)) {
33 QTextStream stream(&file);
34 stream << msg << Qt::endl;
35 }
36 file.close();
37}
38
39static bool _ = []() {
40 AddStartStep(

Callers 1

switch-file.cppFile · 0.85

Calls 4

GetSwitcherFunction · 0.85
emptyMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected