mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Wrap last incompatible .NET Core stuff
This commit is contained in:
@@ -1004,6 +1004,7 @@ namespace DICUI.Utilities
|
||||
/// <returns>Copy protection detected in the envirionment, if any</returns>
|
||||
public static async Task<string> RunProtectionScanOnPath(string path)
|
||||
{
|
||||
#if NET_FRAMEWORK
|
||||
try
|
||||
{
|
||||
var found = await Task.Run(() =>
|
||||
@@ -1021,6 +1022,9 @@ namespace DICUI.Utilities
|
||||
{
|
||||
return $"Path could not be scanned! {ex}";
|
||||
}
|
||||
#else
|
||||
return "Copy protection scanning is not available on .NET Core builds";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user