Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

25 lines
560 B
C++

// Copyright 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();
}