Files
UnrealEngine/Engine/Source/Programs/Enterprise/Datasmith/DatasmithRhinoExporter/DatasmithRhino7.Target.cs
2025-05-18 13:04:45 +08:00

33 lines
743 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System;
using System.IO;
public class DatasmithRhino7Target : DatasmithRhinoBaseTarget
{
public DatasmithRhino7Target(TargetInfo Target)
: base(Target)
{
}
public override string GetVersion() { return "7"; }
public override string GetRhinoInstallFolderWindows()
{
try
{
return OperatingSystem.IsWindows() ? Microsoft.Win32.Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\McNeel\Rhinoceros\7.0\Install", "Path", "") as string : null;
}
catch(Exception)
{
return "";
}
}
public override string GetRhinoInstallFolderMac()
{
return "/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Versions/Current/Resources/";
}
}