Make command-line argument -carla-settings accept relative paths

This commit is contained in:
nsubiron 2017-05-10 12:24:13 +02:00
parent 2309ffb184
commit cbfc1f2845
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ static bool GetSettingsFileName(FString &Value)
{
// Try to get it from the command-line arguments.
if (FParse::Value(FCommandLine::Get(), TEXT("-carla-settings="), Value)) {
if (FPaths::IsRelative(Value)) {
Value = FPaths::ConvertRelativePathToFull(FPaths::LaunchDir(), Value);
}
if (FPaths::FileExists(Value)) {
return true;
}