MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / getLogModel

Method getLogModel

launcher/launch/LaunchTask.cpp:203–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203shared_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
218bool LaunchTask::parseXmlLogs(QString const& line, MessageLevel level)
219{

Callers 1

Calls 8

getConsoleMaxLinesFunction · 0.85
setMaxLinesMethod · 0.80
setStopOnOverflowMethod · 0.80
setOverflowMessageMethod · 0.80
getMaxLinesMethod · 0.80
resetMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected