change the platform strings to DotNet

This commit is contained in:
UbitUmarov
2022-10-02 15:34:51 +01:00
parent 1a548390b5
commit b687a3604c

View File

@@ -2339,24 +2339,12 @@ namespace OpenSim.Framework
public static string GetRuntimeInformation()
{
string ru = String.Empty;
if (Environment.OSVersion.Platform == PlatformID.Unix)
return Environment.OSVersion.Platform switch
{
ru = "Unix/Mono";
}
else
if (Environment.OSVersion.Platform == PlatformID.MacOSX)
ru = "OSX/Mono";
else
{
if (IsPlatformMono)
ru = "Win/Mono";
else
ru = "Win/.NET";
}
return ru;
PlatformID.MacOSX => "OSX/DotNet",
PlatformID.Unix => "Unix/DotNet",
_ => "Win/DotNet",
};
}
/// <summary>