/// <summary>
 /// 获取版本是否丢失任何natives文件
 /// </summary>
 /// <param name="core"></param>
 /// <param name="version"></param>
 /// <returns></returns>
 public static bool IsLostAnyNatives(LaunchHandler core, Version version)
 {
     foreach (var item in version.Natives)
     {
         string path = core.GetNativePath(item);
         if (!File.Exists(path))
         {
             return(true);
         }
     }
     return(false);
 }
        /// <summary>
        /// 获取版本丢失的natives文件
        /// </summary>
        /// <param name="core">所使用的核心</param>
        /// <param name="version">要检查的版本</param>
        /// <returns>返回Key为路径,value为native实例的集合</returns>
        public static Dictionary <string, Native> GetLostNatives(LaunchHandler core, Version version)
        {
            Dictionary <string, Native> lostNatives = new Dictionary <string, Native>();

            foreach (var item in version.Natives)
            {
                string path = core.GetNativePath(item);
                if (lostNatives.ContainsKey(path))
                {
                    continue;
                }
                else if (!File.Exists(path))
                {
                    lostNatives.Add(path, item);
                }
            }
            return(lostNatives);
        }