/Engine/Source/Editor/UnrealEd/Public/FileHelpers.h
Save all packages. Assume all dirty packages should be saved and check out from source control (if enabled).
true on success, false on fail.
static bool SavePackages ( const [TArray](API\Runtime\Core\Containers\TArray)< [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * > & PackagesToSave, bool bOnlyDirty )