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

Function getConsoleMaxLines

launcher/BaseInstance.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55#include "FileSystem.h"
56
57int getConsoleMaxLines(SettingsObject* settings)
58{
59 auto lineSetting = settings->getSetting("ConsoleMaxLines");
60 bool conversionOk = false;
61 int maxLines = lineSetting->get().toInt(&conversionOk);
62 if (!conversionOk) {
63 maxLines = lineSetting->defValue().toInt();
64 qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines;
65 }
66 return maxLines;
67}
68
69bool shouldStopOnConsoleOverflow(SettingsObject* settings)
70{

Callers 4

ApplicationMethod · 0.85
getLogModelMethod · 0.85
OtherLogsPageMethod · 0.85
reloadMethod · 0.85

Calls 3

getSettingMethod · 0.80
getMethod · 0.45
defValueMethod · 0.45

Tested by

no test coverage detected