You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Ignore empty AAR directories on Android (contributed by RPG3D)
#jira UE-88492 #PR #6676 #ue4 #android #rb trivial [CL 11520899 by Chris Babcock in 4.25 branch]
This commit is contained in:
@@ -80,26 +80,33 @@ namespace UnrealBuildTool
|
||||
/// <param name="SearchPattern">Search pattern to match</param>
|
||||
public void AddRepositories(string RepositoryPath, string SearchPattern)
|
||||
{
|
||||
List<string> ToCheck = new List<string>();
|
||||
ToCheck.Add(RepositoryPath);
|
||||
while (ToCheck.Count > 0)
|
||||
if (Directory.Exists(RepositoryPath))
|
||||
{
|
||||
int LastIndex = ToCheck.Count - 1;
|
||||
string CurrentDir = ToCheck[LastIndex];
|
||||
ToCheck.RemoveAt(LastIndex);
|
||||
foreach (string SearchPath in Directory.GetDirectories(CurrentDir))
|
||||
List<string> ToCheck = new List<string>();
|
||||
ToCheck.Add(RepositoryPath);
|
||||
while (ToCheck.Count > 0)
|
||||
{
|
||||
if (SearchPath.Contains(SearchPattern))
|
||||
int LastIndex = ToCheck.Count - 1;
|
||||
string CurrentDir = ToCheck[LastIndex];
|
||||
ToCheck.RemoveAt(LastIndex);
|
||||
foreach (string SearchPath in Directory.GetDirectories(CurrentDir))
|
||||
{
|
||||
Log.TraceInformation("Added repository: {0}", SearchPath);
|
||||
Repositories.Add(SearchPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToCheck.Add(SearchPath);
|
||||
if (SearchPath.Contains(SearchPattern))
|
||||
{
|
||||
Log.TraceInformation("Added repository: {0}", SearchPath);
|
||||
Repositories.Add(SearchPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToCheck.Add(SearchPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Log.TraceInformation("AddRepositories: Directory {0} not found; ignored", RepositoryPath);
|
||||
}
|
||||
}
|
||||
|
||||
public void DumpAAR()
|
||||
|
||||
Reference in New Issue
Block a user