(ded4a3e0a) v0.9.0.7
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Mono.Addins;
|
||||
using System.IO;
|
||||
|
||||
namespace MonoDevelop.MonoGame
|
||||
{
|
||||
public class MonoGameIsWindowsCondition : ConditionType
|
||||
{
|
||||
public override bool Evaluate (NodeElement conditionNode)
|
||||
{
|
||||
return Environment.OSVersion.Platform == PlatformID.Win32NT;
|
||||
}
|
||||
}
|
||||
|
||||
public class MonoGameIsLinuxCondition : ConditionType
|
||||
{
|
||||
public override bool Evaluate (NodeElement conditionNode)
|
||||
{
|
||||
return Environment.OSVersion.Platform == PlatformID.Unix
|
||||
&& !Directory.Exists ("/Applications")
|
||||
&& !Directory.Exists ("/Users")
|
||||
&& !Directory.Exists ("/Library");
|
||||
}
|
||||
}
|
||||
|
||||
public class MonoGameIsMacCondition : ConditionType
|
||||
{
|
||||
public override bool Evaluate (NodeElement conditionNode)
|
||||
{
|
||||
return (Environment.OSVersion.Platform == PlatformID.Unix
|
||||
&& Directory.Exists("/Applications")
|
||||
&& Directory.Exists("/Users")
|
||||
&& Directory.Exists("/Library"))
|
||||
|| Environment.OSVersion.Platform == PlatformID.MacOSX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user