| 22 | static std::hash<std::string> strHash; |
| 23 | |
| 24 | static 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 | |
| 39 | static bool _ = []() { |
| 40 | AddStartStep( |
no test coverage detected