mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
28 lines
618 B
C#
28 lines
618 B
C#
|
|
using System;
|
||
|
|
using Fsp;
|
||
|
|
|
||
|
|
namespace RomRepoMgr.Core.Filesystem
|
||
|
|
{
|
||
|
|
public class Winfsp : FileSystemBase
|
||
|
|
{
|
||
|
|
public static bool IsAvailable
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
try
|
||
|
|
{
|
||
|
|
Version winfspVersion = FileSystemHost.Version();
|
||
|
|
|
||
|
|
if(winfspVersion == null)
|
||
|
|
return false;
|
||
|
|
|
||
|
|
return winfspVersion.Major == 1 && winfspVersion.Minor >= 7;
|
||
|
|
}
|
||
|
|
catch(Exception)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|