mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 02:00:16 +00:00
fix: 拷贝内置资源路径不正确
This commit is contained in:
@@ -129,13 +129,13 @@ public class CopyBuildinManifestOperation : GameAsyncOperation
|
|||||||
{
|
{
|
||||||
string fileRoot = GetBuildinYooRoot();
|
string fileRoot = GetBuildinYooRoot();
|
||||||
string fileName = YooAssetSettingsData.GetPackageHashFileName(_packageName, _packageVersion);
|
string fileName = YooAssetSettingsData.GetPackageHashFileName(_packageName, _packageVersion);
|
||||||
return PathUtility.Combine(fileRoot, fileName);
|
return PathUtility.Combine(fileRoot, _packageName, fileName);
|
||||||
}
|
}
|
||||||
private string GetBuildinManifestFilePath()
|
private string GetBuildinManifestFilePath()
|
||||||
{
|
{
|
||||||
string fileRoot = GetBuildinYooRoot();
|
string fileRoot = GetBuildinYooRoot();
|
||||||
string fileName = YooAssetSettingsData.GetManifestBinaryFileName(_packageName, _packageVersion);
|
string fileName = YooAssetSettingsData.GetManifestBinaryFileName(_packageName, _packageVersion);
|
||||||
return PathUtility.Combine(fileRoot, fileName);
|
return PathUtility.Combine(fileRoot, _packageName, fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetCacheYooRoot()
|
private string GetCacheYooRoot()
|
||||||
@@ -146,12 +146,12 @@ public class CopyBuildinManifestOperation : GameAsyncOperation
|
|||||||
{
|
{
|
||||||
string fileRoot = GetCacheYooRoot();
|
string fileRoot = GetCacheYooRoot();
|
||||||
string fileName = YooAssetSettingsData.GetPackageHashFileName(_packageName, _packageVersion);
|
string fileName = YooAssetSettingsData.GetPackageHashFileName(_packageName, _packageVersion);
|
||||||
return PathUtility.Combine(fileRoot, fileName);
|
return PathUtility.Combine(fileRoot, _packageName, fileName);
|
||||||
}
|
}
|
||||||
private string GetCacheManifestFilePath()
|
private string GetCacheManifestFilePath()
|
||||||
{
|
{
|
||||||
string fileRoot = GetCacheYooRoot();
|
string fileRoot = GetCacheYooRoot();
|
||||||
string fileName = YooAssetSettingsData.GetManifestBinaryFileName(_packageName, _packageVersion);
|
string fileName = YooAssetSettingsData.GetManifestBinaryFileName(_packageName, _packageVersion);
|
||||||
return PathUtility.Combine(fileRoot, fileName);
|
return PathUtility.Combine(fileRoot, _packageName, fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user