26 UE_LOG(LogDlgStatsCommandlet, Display, TEXT(
"Starting"));
29 TArray<FString> Tokens;
30 TArray<FString> Switches;
31 TMap<FString, FString> ParamVals;
32 UCommandlet::ParseCommandLine(*Params, Tokens, Switches, ParamVals);
40 UPackage* Package =
Dialogue->GetOutermost();
42 const FString OriginalDialoguePath = Package->GetPathName();
47 UE_LOG(LogDlgStatsCommandlet,
Warning, TEXT(
"Dialogue = `%s` is not in the game directory, ignoring"), *OriginalDialoguePath);
53 TotalStats += DialogueStats;
54 UE_LOG(LogDlgStatsCommandlet, Display, TEXT(
"Dialogue = %s. Total Text Word count = %d"), *OriginalDialoguePath, DialogueStats.
WordCount);
57 UE_LOG(LogDlgStatsCommandlet, Display,
58 LINE_TERMINATOR TEXT(
"Stats:") LINE_TERMINATOR
59 TEXT(
"Total Text Word Count = %d"),