From a1594e77aaeb27646da0193cb3e6c4da0a105f33 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 13 Oct 2021 21:50:11 +0100 Subject: [PATCH] Add support to force managed checksums only. --- Aaru6.Checksums/Native.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Aaru6.Checksums/Native.cs b/Aaru6.Checksums/Native.cs index f5a7868..d95d28f 100644 --- a/Aaru6.Checksums/Native.cs +++ b/Aaru6.Checksums/Native.cs @@ -7,10 +7,15 @@ namespace Aaru6.Checksums static bool _checked; static bool _supported; + public static bool ForceManaged { get; set; } + public static bool IsSupported { get { + if(ForceManaged) + return false; + if(_checked) return _supported;