/Engine/Source/Developer/CookedEditor/Public/CookedEditorPackageManager.h
Use the asset registry to find packages to be cooked
void AddPackagesFromPath ( [TArray](API\Runtime\Core\Containers\TArray)< [FName](API\Runtime\Core\UObject\FName) > & Packages, const TCHAR * Path, [EPackageSearchMode](API\Developer\CookedEditor\ICookedEditorPackageManager\EPackageSearchMode) SearchMode ) const