Files
romrepomgr/RomRepoMgr.Core/Filesystem/Winfsp.cs

28 lines
618 B
C#
Raw Normal View History

2020-08-30 14:22:41 +01:00
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;
}
}
}
}
}