///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 28 | |
| 29 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 30 | void FDlgConfigParser::InitializeParser(const FString& FilePath) |
| 31 | { |
| 32 | FileName = ""; |
| 33 | String = ""; |
| 34 | From = 0; |
| 35 | Len = 0; |
| 36 | bHasValidWord = false; |
| 37 | |
| 38 | if (!FFileHelper::LoadFileToString(String, *FilePath)) |
| 39 | { |
| 40 | UE_LOG(LogDlgConfigParser, Error, TEXT("Failed to load config file %s"), *FilePath) |
| 41 | } |
| 42 | else |
| 43 | { |
| 44 | // find first word |
| 45 | FindNextWord(); |
| 46 | } |
| 47 | |
| 48 | FileName = FPaths::GetBaseFilename(FilePath, true); |
| 49 | } |
| 50 | |
| 51 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 52 | void FDlgConfigParser::InitializeParserFromString(const FString& Text) |
nothing calls this directly
no outgoing calls
no test coverage detected