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

Method getConsoleMaxLines

launcher/BaseInstance.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int BaseInstance::getConsoleMaxLines() const
168{
169 auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
170 bool conversionOk = false;
171 int maxLines = lineSetting->get().toInt(&conversionOk);
172 if(!conversionOk)
173 {
174 maxLines = lineSetting->defValue().toInt();
175 qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines;
176 }
177 return maxLines;
178}
179
180bool BaseInstance::shouldStopOnConsoleOverflow() const
181{

Callers 1

getLogModelMethod · 0.80

Calls 3

getSettingMethod · 0.80
getMethod · 0.45
defValueMethod · 0.45

Tested by

no test coverage detected