MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getConsoleMaxLines

Method getConsoleMaxLines

launcher/BaseInstance.cpp:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179int BaseInstance::getConsoleMaxLines() const
180{
181 auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
182 bool conversionOk = false;
183 int maxLines = lineSetting->get().toInt(&conversionOk);
184 if (!conversionOk) {
185 maxLines = lineSetting->defValue().toInt();
186 qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines;
187 }
188 return maxLines;
189}
190
191bool BaseInstance::shouldStopOnConsoleOverflow() const
192{

Callers 1

getLogModelMethod · 0.80

Calls 3

getSettingMethod · 0.80
getMethod · 0.45
defValueMethod · 0.45

Tested by

no test coverage detected