| 114 | } |
| 115 | |
| 116 | void ComputeDebugMode() { |
| 117 | Logs::SetDebugEnabled(cAlphaVersion() != 0); |
| 118 | const auto debugModeSettingPath = DebugModeSettingPath(); |
| 119 | auto file = QFile(debugModeSettingPath); |
| 120 | if (file.exists() && file.open(QIODevice::ReadOnly)) { |
| 121 | Logs::SetDebugEnabled(file.read(1) != "0"); |
| 122 | #if defined _DEBUG && !defined Q_OS_MAC |
| 123 | } else { |
| 124 | Logs::SetDebugEnabled(true); |
| 125 | #endif |
| 126 | } |
| 127 | if (cDebugMode()) { |
| 128 | Logs::SetDebugEnabled(true); |
| 129 | } |
| 130 | if (Logs::DebugEnabled()) { |
| 131 | QLoggingCategory::setFilterRules("qt.qpa.gl.debug=true"); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | void ComputeExternalUpdater() { |
| 136 | auto locations = QStandardPaths::standardLocations( |
no test coverage detected