| 201 | } |
| 202 | |
| 203 | shared_qobject_ptr<LogModel> LaunchTask::getLogModel() |
| 204 | { |
| 205 | if (!m_logModel) { |
| 206 | m_logModel.reset(new LogModel()); |
| 207 | m_logModel->setMaxLines(getConsoleMaxLines(m_instance->settings())); |
| 208 | m_logModel->setStopOnOverflow(shouldStopOnConsoleOverflow(m_instance->settings())); |
| 209 | // FIXME: should this really be here? |
| 210 | m_logModel->setOverflowMessage(tr("Stopped watching the game log because the log length surpassed %1 lines.\n" |
| 211 | "You may have to fix your mods because the game is still logging to files and" |
| 212 | " likely wasting harddrive space at an alarming rate!") |
| 213 | .arg(m_logModel->getMaxLines())); |
| 214 | } |
| 215 | return m_logModel; |
| 216 | } |
| 217 | |
| 218 | bool LaunchTask::parseXmlLogs(QString const& line, MessageLevel level) |
| 219 | { |
no test coverage detected