Update runtime code

This commit is contained in:
hevinci
2022-11-01 23:02:20 +08:00
parent bdc8285255
commit b5f2174ed0
5 changed files with 58 additions and 29 deletions
@@ -125,31 +125,7 @@ namespace YooAsset
/// </summary>
public void ParseFileName(int nameStype)
{
if (nameStype == 1)
{
FileName = FileHash;
}
else if (nameStype == 2)
{
string tempFileExtension = System.IO.Path.GetExtension(BundleName);
FileName = $"{FileHash}{tempFileExtension}";
}
else if (nameStype == 3)
{
string tempFileExtension = System.IO.Path.GetExtension(BundleName);
string tempBundleName = BundleName.Replace('/', '_').Replace(tempFileExtension, "");
FileName = $"{tempBundleName}_{FileHash}";
}
else if (nameStype == 4)
{
string tempFileExtension = System.IO.Path.GetExtension(BundleName);
string tempBundleName = BundleName.Replace('/', '_').Replace(tempFileExtension, "");
FileName = $"{tempBundleName}_{FileHash}{tempFileExtension}";
}
else
{
throw new NotImplementedException();
}
FileName = PatchManifest.CreateBundleFileName(nameStype, BundleName, FileHash);
}
/// <summary>