update YooAssetSettings

This commit is contained in:
何冠峰
2025-02-06 16:43:55 +08:00
parent 38471cdd6c
commit 20c07af504
9 changed files with 51 additions and 63 deletions

View File

@@ -68,6 +68,17 @@ namespace YooAsset
/// </summary>
public bool DisableCatalogFile { private set; get; } = false;
/// <summary>
/// 自定义参数:拷贝内置清单
/// </summary>
public bool CopyBuildinPackageManifest { private set; get; } = false;
/// <summary>
/// 自定义参数:拷贝内置清单的目标目录
/// 注意:该参数为空的时候,会获取默认的沙盒目录!
/// </summary>
public string CopyBuildinPackageManifestDestPath { private set; get; }
/// <summary>
/// 自定义参数:解密方法类
/// </summary>
@@ -147,6 +158,11 @@ namespace YooAsset
{
DisableCatalogFile = (bool)value;
}
else if (name == FileSystemParametersDefine.COPY_BUILDIN_PACKAGE_MANIFEST)
{
CopyBuildinPackageManifest = true;
CopyBuildinPackageManifestDestPath = (string)value;
}
else if (name == FileSystemParametersDefine.DECRYPTION_SERVICES)
{
DecryptionServices = (IDecryptionServices)value;
@@ -291,7 +307,7 @@ namespace YooAsset
#region
protected string GetDefaultBuildinPackageRoot(string packageName)
{
string rootDirectory = YooAssetSettingsData.GetYooMobileBuildinRoot();
string rootDirectory = YooAssetSettingsData.GetYooDefaultBuildinRoot();
return PathUtility.Combine(rootDirectory, packageName);
}
public string GetBuildinFileLoadPath(PackageBundle bundle)

View File

@@ -22,7 +22,7 @@ namespace YooAsset
if (saveDirectory.Exists)
saveDirectory.Delete(true);
string rootPath = YooAssetSettingsData.GetYooEditorBuildinRoot();
string rootPath = YooAssetSettingsData.GetYooDefaultBuildinRoot();
DirectoryInfo rootDirectory = new DirectoryInfo(rootPath);
if (rootDirectory.Exists == false)
{