mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Add winfsp library.
This commit is contained in:
28
RomRepoMgr.Core/Filesystem/Winfsp.cs
Normal file
28
RomRepoMgr.Core/Filesystem/Winfsp.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user