mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add a static result to detect if the platform is Windows based.
This commit is contained in:
1
.idea/.idea.DiscImageChef/.idea/contentModel.xml
generated
1
.idea/.idea.DiscImageChef/.idea/contentModel.xml
generated
@@ -62,7 +62,6 @@
|
|||||||
</e>
|
</e>
|
||||||
</e>
|
</e>
|
||||||
</e>
|
</e>
|
||||||
<e p="test.log" t="Include" />
|
|
||||||
</e>
|
</e>
|
||||||
<e p="DiscImageChef.Checksums" t="IncludeRecursive">
|
<e p="DiscImageChef.Checksums" t="IncludeRecursive">
|
||||||
<e p="Adler32Context.cs" t="Include" />
|
<e p="Adler32Context.cs" t="Include" />
|
||||||
|
|||||||
@@ -302,5 +302,10 @@ namespace DiscImageChef.CommonTypes.Interop
|
|||||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
|
||||||
public string machine;
|
public string machine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsWindows =>
|
||||||
|
GetRealPlatformID() == PlatformID.Win32NT || GetRealPlatformID() == PlatformID.Win32S ||
|
||||||
|
GetRealPlatformID() == PlatformID.Win32Windows || GetRealPlatformID() == PlatformID.WinCE ||
|
||||||
|
GetRealPlatformID() == PlatformID.WindowsPhone || GetRealPlatformID() == PlatformID.Xbox;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user