瀏覽代碼

Merge pull request #117 from TooYoungTooSimp/patch-1

Make ClashMeta core use newer microarch level
2dust 3 年之前
父節點
當前提交
a96a5b99ac
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      clashN/clashN/Handler/LazyConfig.cs

+ 2 - 1
clashN/clashN/Handler/LazyConfig.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Runtime.Intrinsics.X86;
 using clashN.Mode;
 using System.Linq;
 using static clashN.Mode.ClashProxies;
@@ -89,7 +90,7 @@ namespace clashN.Handler
                 coreUrl = Global.clashMetaCoreUrl,
                 coreLatestUrl = Global.clashMetaCoreUrl + "/latest",
                 coreDownloadUrl32 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-386-{0}.zip",
-                coreDownloadUrl64 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-amd64-compatible-{0}.zip",
+                coreDownloadUrl64 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-amd64" + (Avx2.X64.IsSupported ? "" : "-compatible") + -{0}.zip",
                 match = "Clash Meta"
             });