///////////////////////////////////// Internal /////////////////////////////////////
| 262 | // Internal |
| 263 | ////////////////////////////////////////// |
| 264 | void parseValue(const char* key, const std::string* values, s32 valueCount) |
| 265 | { |
| 266 | const char* value1 = values[0].c_str(); |
| 267 | |
| 268 | if (strcasecmp(key, "EditorPath") == 0) |
| 269 | { |
| 270 | strcpy(s_editorConfig.editorPath, value1); |
| 271 | } |
| 272 | else if (strcasecmp(key, "ExportPath") == 0) |
| 273 | { |
| 274 | strcpy(s_editorConfig.exportPath, value1); |
| 275 | } |
| 276 | else if (strcasecmp(key, "FontScale") == 0) |
| 277 | { |
| 278 | s_editorConfig.fontScale = TFE_IniParser::parseInt(value1); |
| 279 | } |
| 280 | else if (strcasecmp(key, "ThumbnailSize") == 0) |
| 281 | { |
| 282 | s_editorConfig.thumbnailSize = TFE_IniParser::parseInt(value1); |
| 283 | } |
| 284 | else if (strcasecmp(key, "Interface_Flags") == 0) |
| 285 | { |
| 286 | s_editorConfig.interfaceFlags = TFE_IniParser::parseInt(value1); |
| 287 | } |
| 288 | else if (strcasecmp(key, "Curve_SegmentSize") == 0) |
| 289 | { |
| 290 | s_editorConfig.curve_segmentSize = TFE_IniParser::parseFloat(value1); |
| 291 | } |
| 292 | else if (strcasecmp(key, "DarkForcesPort") == 0) |
| 293 | { |
| 294 | strcpy(s_editorConfig.darkForcesPort, value1); |
| 295 | } |
| 296 | else if (strcasecmp(key, "OutlawsPort") == 0) |
| 297 | { |
| 298 | strcpy(s_editorConfig.outlawsPort, value1); |
| 299 | } |
| 300 | else if (strcasecmp(key, "DarkForcesAddCmdLine") == 0) |
| 301 | { |
| 302 | strcpy(s_editorConfig.darkForcesAddCmdLine, value1); |
| 303 | } |
| 304 | else if (strcasecmp(key, "OutlawsAddCmdLine") == 0) |
| 305 | { |
| 306 | strcpy(s_editorConfig.outlawsAddCmdLine, value1); |
| 307 | } |
| 308 | else if (strcasecmp(key, "LevelEditorFlags") == 0) |
| 309 | { |
| 310 | s_editorConfig.levelEditorFlags = TFE_IniParser::parseInt(value1); |
| 311 | } |
| 312 | else if (strncasecmp(key, "Recent", strlen("Recent")) == 0) |
| 313 | { |
| 314 | addToRecents(value1, false); |
| 315 | } |
| 316 | else if (strncasecmp(key, "LEV_", 4) == 0) |
| 317 | { |
| 318 | LevelEditor::parseLevelEditorShortcut(key, values, valueCount); |
| 319 | } |
| 320 | } |
| 321 | } |
no test coverage detected