Disabled OpenDriveMap from appearing on map list
This commit is contained in:
parent
9cdf00155e
commit
f2fcc64a1c
|
@ -12,8 +12,10 @@
|
|||
TArray<FString> UCarlaStatics::GetAllMapNames()
|
||||
{
|
||||
TArray<FString> TmpStrList, MapNameList;
|
||||
IFileManager::Get().FindFilesRecursive(MapNameList, *FPaths::ProjectContentDir(), TEXT("*.umap"), true, false, false);
|
||||
IFileManager::Get().FindFilesRecursive(
|
||||
MapNameList, *FPaths::ProjectContentDir(), TEXT("*.umap"), true, false, false);
|
||||
MapNameList.RemoveAll( [](const FString &Name) { return Name.Contains("TestMaps");});
|
||||
MapNameList.RemoveAll( [](const FString &Name) { return Name.Contains("OpenDriveMap");});
|
||||
for (int i = 0; i < MapNameList.Num(); i++) {
|
||||
MapNameList[i].ParseIntoArray(TmpStrList, TEXT("Content/"), true);
|
||||
MapNameList[i] = TmpStrList[1];
|
||||
|
|
Loading…
Reference in New Issue