/Engine/Source/Editor/UnrealEd/Public/FileHelpers.h
Save all packages. Optionally prompting the user to select which packages to save. Prompt the user to select which dirty packages to save and check them out from source control (if enabled).
true on success, false on fail.
static bool SavePackagesWithDialog ( const [TArray](API\Runtime\Core\Containers\TArray)< [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * > & PackagesToSave, bool bOnlyDirty )