Update ResourcePackage.cs

pull/332/merge
何冠峰 2024-12-12 17:59:04 +08:00
parent 341bd5947f
commit 038a52f7fc
1 changed files with 0 additions and 20 deletions

View File

@ -176,26 +176,6 @@ namespace YooAsset
} }
#endif #endif
} }
// 检测文件系统参数
if (_playMode == EPlayMode.WebPlayMode)
{
var webPlayModeParams = parameters as WebPlayModeParameters;
if (webPlayModeParams.WebServerFileSystemParameters != null)
{
var fileSystemClassName = webPlayModeParams.WebServerFileSystemParameters.FileSystemClass;
if (fileSystemClassName == typeof(DefaultCacheFileSystem).FullName
|| fileSystemClassName == typeof(DefaultBuildinFileSystem).FullName)
throw new Exception($"{fileSystemClassName} not support {nameof(EPlayMode.WebPlayMode)}");
}
if (webPlayModeParams.WebRemoteFileSystemParameters != null)
{
var fileSystemClassName = webPlayModeParams.WebRemoteFileSystemParameters.FileSystemClass;
if (fileSystemClassName == typeof(DefaultCacheFileSystem).FullName
|| fileSystemClassName == typeof(DefaultBuildinFileSystem).FullName)
throw new Exception($"{fileSystemClassName} not support {nameof(EPlayMode.WebPlayMode)}");
}
}
} }
private void InitializeOperation_Completed(AsyncOperationBase op) private void InitializeOperation_Completed(AsyncOperationBase op)
{ {