update runtime code

重构了PersistentTools类
This commit is contained in:
hevinci
2023-07-05 15:14:21 +08:00
parent c5314c72f0
commit 2643ab81ed
15 changed files with 246 additions and 216 deletions
@@ -45,7 +45,7 @@ namespace YooAsset
{
// BundleFiles
{
string rootPath = PersistentTools.GetCachedBundleFileFolderPath(_packageName);
string rootPath = PersistentTools.GetPersistent(_packageName).SandboxCacheBundleFilesRoot;
DirectoryInfo rootDirectory = new DirectoryInfo(rootPath);
if (rootDirectory.Exists)
{
@@ -56,7 +56,7 @@ namespace YooAsset
// RawFiles
{
string rootPath = PersistentTools.GetCachedRawFileFolderPath(_packageName);
string rootPath = PersistentTools.GetPersistent(_packageName).SandboxCacheRawFilesRoot;
DirectoryInfo rootDirectory = new DirectoryInfo(rootPath);
if (rootDirectory.Exists)
{