Files
UnrealEngineUWP/Engine/Source/Developer/LauncherServices/Private/Launcher/LauncherProjectPath.cpp
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

25 lines
570 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "Launcher/LauncherProjectPath.h"
#include "Misc/Paths.h"
FString FLauncherProjectPath::GetProjectName(const FString& ProjectPath)
{
if (!ProjectPath.IsEmpty())
{
return FPaths::GetBaseFilename(ProjectPath);
}
return FString();
}
FString FLauncherProjectPath::GetProjectBasePath(const FString& ProjectPath)
{
if (!ProjectPath.IsEmpty())
{
FString OutPath = ProjectPath;
FPaths::MakePathRelativeTo(OutPath, *FPaths::RootDir());
return FPaths::GetPath(OutPath);
}
return FString();
}