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