update file system
This commit is contained in:
+14
-2
@@ -36,9 +36,21 @@ namespace YooAsset
|
||||
{
|
||||
int failedTryAgain = int.MaxValue;
|
||||
int timeout = 60;
|
||||
string mainURL = _fileSystem.RemoteServices.GetRemoteMainURL(_bundle.FileName);
|
||||
string fallbackURL = _fileSystem.RemoteServices.GetRemoteFallbackURL(_bundle.FileName);
|
||||
string mainURL;
|
||||
string fallbackURL;
|
||||
if (_fileSystem.AllowCrossAccess)
|
||||
{
|
||||
mainURL = _fileSystem.RemoteServices.GetRemoteMainURL(_bundle.FileName);
|
||||
fallbackURL = _fileSystem.RemoteServices.GetRemoteFallbackURL(_bundle.FileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
string fileLoadPath = _fileSystem.GetWebFileLoadPath(_bundle);
|
||||
mainURL = DownloadSystemHelper.ConvertToWWWPath(fileLoadPath);
|
||||
fallbackURL = mainURL;
|
||||
}
|
||||
_downloadhanlderAssetBundleOp = new DownloadHandlerAssetBundleOperation(_fileSystem, _bundle, mainURL, fallbackURL, failedTryAgain, timeout);
|
||||
OperationSystem.StartOperation(_fileSystem.PackageName, _downloadhanlderAssetBundleOp);
|
||||
}
|
||||
|
||||
DownloadProgress = _downloadhanlderAssetBundleOp.DownloadProgress;
|
||||
|
||||
+13
-2
@@ -38,8 +38,19 @@ namespace YooAsset
|
||||
{
|
||||
string packageName = _fileSystem.PackageName;
|
||||
string fileName = YooAssetSettingsData.GetPackageVersionFileName(packageName);
|
||||
string mainURL = _fileSystem.RemoteServices.GetRemoteMainURL(fileName);
|
||||
string fallbackURL = _fileSystem.RemoteServices.GetRemoteFallbackURL(fileName);
|
||||
string mainURL;
|
||||
string fallbackURL;
|
||||
if (_fileSystem.AllowCrossAccess)
|
||||
{
|
||||
mainURL = _fileSystem.RemoteServices.GetRemoteMainURL(fileName);
|
||||
fallbackURL = _fileSystem.RemoteServices.GetRemoteFallbackURL(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
string filePath = _fileSystem.GetWebPackageVersionFilePath();
|
||||
mainURL = DownloadSystemHelper.ConvertToWWWPath(filePath);
|
||||
fallbackURL = mainURL;
|
||||
}
|
||||
_getRemotePackageVersionOp = new DefaultGetRemotePackageVersionOperation(packageName, mainURL, fallbackURL, _appendTimeTicks, _timeout);
|
||||
OperationSystem.StartOperation(packageName, _getRemotePackageVersionOp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user