native libraries check fix
This commit is contained in:
@@ -42,14 +42,20 @@ public class LibrariesDownloadTaskFactory : INetworkTaskFactory
|
||||
|
||||
foreach (var l in _libraries.Libs)
|
||||
{
|
||||
if (!HashHelper.CheckFileSHA1(l.jarFilePath, l.artifact?.sha1, checkHashes))
|
||||
if (l is Libraries.NativeLib native)
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
//TODO: replace with actual native libraries check
|
||||
if(!nativeDirExists || checkHashes)
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
}
|
||||
}
|
||||
//TODO: replace with actual native libraries check
|
||||
else if (!nativeDirExists && l is Libraries.NativeLib)
|
||||
else
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
if (!HashHelper.CheckFileSHA1(l.jarFilePath, l.artifact?.sha1, checkHashes))
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user