/Engine/Source/Editor/UnrealEd/Public/FileHelpers.h
Looks at all currently loaded packages and saves them if their "bDirty" flag is set. Assume all dirty packages should be saved and check out from source control (if enabled).
true on success, false on fail.
static bool SaveDirtyPackages ( const bool bSaveMapPackages, const bool bSaveContentPackages )