Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 4592edc

Browse files
author
wanderer
committed
资源下载抛出异常, 也关闭下载
1 parent c396590 commit 4592edc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎GameFramework/Runtime/Resource/ResourceVersion.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,15 @@ private void DownloadFiles(List<AssetHashInfo> needDownloadFiles,Action<float, d
359359
{
360360
File.Delete(localPath);
361361
_webRequest.FileDownloader.StopDownload();
362+
_updating = false;
362363
//throw new GameException($"File integrity verification failed. {localPath}");
363364
errorCallback?.Invoke(localPath, "File integrity verification failed.");
364365

365366
}
366367
}, (localPath, error) =>
367368
{
368369
_webRequest.FileDownloader.StopDownload();
370+
_updating = false;
369371
errorCallback?.Invoke(localPath, error);
370372
});
371373
}

‎GameFramework/Runtime/Setting/SettingManager.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,12 @@ public string GetInternetReachability()
286286
{
287287
if (Application.internetReachability == NetworkReachability.NotReachable)
288288
{
289-
return "无网络";
289+
return "NOLAN";
290290
}
291291
//Check if the device can reach the internet via a carrier data network
292292
else if (Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork)
293293
{
294-
return "移动数据";
294+
return "4G";
295295
}
296296
//Check if the device can reach the internet via a LAN
297297
else if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /