| 472 | //========================================================================== |
| 473 | |
| 474 | void CheckUserMap() |
| 475 | { |
| 476 | if (userConfig.CommandMap.IsEmpty()) return; |
| 477 | if (FindMapByName(userConfig.CommandMap.GetChars())) |
| 478 | { |
| 479 | return; // we already got a record for this map so no need for further checks. |
| 480 | } |
| 481 | FString startupMap = userConfig.CommandMap; |
| 482 | DefaultExtension(startupMap, ".map"); |
| 483 | startupMap.Substitute("\\", "/"); |
| 484 | NormalizeFileName(startupMap); |
| 485 | |
| 486 | if (!fileSystem.FileExists(startupMap.GetChars())) |
| 487 | { |
| 488 | Printf(PRINT_HIGH, "Level \"%s\" not found.\n", startupMap.GetChars()); |
| 489 | startupMap = ""; |
| 490 | } |
| 491 | userConfig.CommandMap = startupMap; |
| 492 | } |
| 493 | |
| 494 | //========================================================================== |
| 495 | // |
no test coverage detected