MCPcopy Create free account
hub / github.com/OpenMW/openmw / parseGeneralSection

Function parseGeneralSection

components/config/launchersettings.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 bool parseGeneralSection(const QString& key, const QString& value, LauncherSettings::General& general)
134 {
135 if (key == sFirstRunKey)
136 return parseBool(value, general.mFirstRun);
137 if (key == sMainWindowWidthKey)
138 return parseInt(value, general.mMainWindow.mWidth);
139 if (key == sMainWindowHeightKey)
140 return parseInt(value, general.mMainWindow.mHeight);
141 if (key == sMainWindowPosXKey)
142 return parseInt(value, general.mMainWindow.mPosX);
143 if (key == sMainWindowPosYKey)
144 return parseInt(value, general.mMainWindow.mPosY);
145
146 return false;
147 }
148
149 bool parseImporterSection(const QString& key, const QString& value, LauncherSettings::Importer& importer)
150 {

Callers 1

setValueMethod · 0.85

Calls 2

parseBoolFunction · 0.85
parseIntFunction · 0.85

Tested by

no test coverage detected