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