feat : builtin file system can be empty in host play mode.

HostPlayMode模式下内置文件系统可以为空。
This commit is contained in:
何冠峰
2024-08-12 19:10:57 +08:00
parent b7b375092f
commit 79ac231df2
4 changed files with 34 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ namespace YooAsset
internal class HostPlayModeImpl : IPlayMode, IBundleQuery
{
public readonly string PackageName;
public IFileSystem BuildinFileSystem { set; get; }
public IFileSystem BuildinFileSystem { set; get; } //可以为空!
public IFileSystem DeliveryFileSystem { set; get; } //可以为空!
public IFileSystem CacheFileSystem { set; get; }
@@ -118,7 +118,7 @@ namespace YooAsset
if (packageBundle == null)
throw new Exception("Should never get here !");
if (BuildinFileSystem.Belong(packageBundle))
if (BuildinFileSystem != null && BuildinFileSystem.Belong(packageBundle))
{
BundleInfo bundleInfo = new BundleInfo(BuildinFileSystem, packageBundle);
return bundleInfo;