MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getLogModel

Method getLogModel

launcher/launch/LaunchTask.cpp:227–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227shared_qobject_ptr<LogModel> LaunchTask::getLogModel()
228{
229 if(!m_logModel)
230 {
231 m_logModel.reset(new LogModel());
232 m_logModel->setMaxLines(m_instance->getConsoleMaxLines());
233 m_logModel->setStopOnOverflow(m_instance->shouldStopOnConsoleOverflow());
234 // FIXME: should this really be here?
235 m_logModel->setOverflowMessage(tr("Stopped watching the game log because the log length surpassed %1 lines.\n"
236 "You may have to fix your mods because the game is still logging to files and"
237 " likely wasting harddrive space at an alarming rate!").arg(m_logModel->getMaxLines()));
238 }
239 return m_logModel;
240}
241
242void LaunchTask::onLogLines(const QStringList &lines, MessageLevel::Enum defaultLevel)
243{

Callers 1

Calls 7

setMaxLinesMethod · 0.80
getConsoleMaxLinesMethod · 0.80
setStopOnOverflowMethod · 0.80
setOverflowMessageMethod · 0.80
getMaxLinesMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected