Пример #1
0
 private void downloadGameFiles(MDownloader downloader, bool downloadAsset, bool checkFileHash)
 {
     downloader.CheckHash       = checkFileHash;
     downloader.ChangeFile     += (e) => fire(e);
     downloader.ChangeProgress += (sender, e) => fire(e.ProgressPercentage);
     downloader.DownloadAll(downloadAsset);
 }
Пример #2
0
        public void CheckGameFiles(MVersion version, bool downloadAsset = true, bool checkFileHash = true)
        {
            var downloader = new MDownloader(MinecraftPath, version);

            downloadGameFiles(downloader, downloadAsset, checkFileHash);
        }