MCPcopy Create free account
hub / github.com/MultiMC/Launcher / getConsoleMaxLines

Method getConsoleMaxLines

launcher/BaseInstance.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75int BaseInstance::getConsoleMaxLines() const
76{
77 auto lineSetting = settings()->getSetting("ConsoleMaxLines");
78 bool conversionOk = false;
79 int maxLines = lineSetting->get().toInt(&conversionOk);
80 if(!conversionOk)
81 {
82 maxLines = lineSetting->defValue().toInt();
83 qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines;
84 }
85 return maxLines;
86}
87
88bool BaseInstance::shouldStopOnConsoleOverflow() const
89{

Callers 1

getLogModelMethod · 0.80

Calls 3

getSettingMethod · 0.80
getMethod · 0.45
defValueMethod · 0.45

Tested by

no test coverage detected