Upgrade UE4 API function to get the project directory

This commit is contained in:
bernat 2020-12-15 17:04:37 +01:00
parent 0d0ef5a907
commit 458761605e
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ void UPrepareAssetsForCookingCommandlet::GenerateMapPathsFile(
if (Map.Path.StartsWith(TEXT("/Game/")))
{
// replacing relative /Game/... address by absolute address to be able to parse files
FString FullPath(FPaths::GameDir() + TEXT("/Content/") + Map.Path.Mid(6, Map.Path.Len() - 6) + TEXT("/Sublevels/") + Map.Name);
FString FullPath(FPaths::ProjectDir() + TEXT("/Content/") + Map.Path.Mid(6, Map.Path.Len() - 6) + TEXT("/Sublevels/") + Map.Name);
TArray<FString> Sublevels;
FileManager.FindFiles(Sublevels, *FullPath, TEXT("*.umap"));
for (auto Sublevel : Sublevels)