// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. /*============================================================================= ScreenShotManager.cpp: Implements the FScreenShotManager class. =============================================================================*/ #include "ScreenShotComparisonToolsPrivatePCH.h" /* FScreenShotManager structors *****************************************************************************/ FScreenShotManager::FScreenShotManager( const IMessageBusRef& InMessageBus ) { MessageEndpoint = FMessageEndpoint::Builder("FScreenShotToolsModule", InMessageBus) .Handling(this, &FScreenShotManager::HandleScreenShotMessage); if (MessageEndpoint.IsValid()) { MessageEndpoint->Subscribe(); } } /* FScreenShotManager interface *****************************************************************************/ void FScreenShotManager::CreateData() { // Clear existing data CachedPlatformList.Empty(); ScreenShotDataArray.Empty(); // Root directory FString PathName = FPaths::AutomationDir(); // Array to store the list of platforms TArray TempPlatforms; TArray AllPNGFiles; IFileManager::Get().FindFilesRecursive( AllPNGFiles, *PathName, TEXT("*.png"), true, false ); const FString RenderOutputValidation(TEXT("RenderOutputValidation")); for ( int32 PathIndex = 0; PathIndex < AllPNGFiles.Num(); PathIndex++ ) { // //_/Project() Map() Time(