mirror of https://github.com/tuyoogame/YooAsset
parent
4e8840cd93
commit
4c619778c3
|
@ -23,6 +23,8 @@ namespace YooAsset
|
||||||
return new System.Uri(path).ToString();
|
return new System.Uri(path).ToString();
|
||||||
#elif UNITY_STANDALONE
|
#elif UNITY_STANDALONE
|
||||||
return StringUtility.Format("file:///{0}", path);
|
return StringUtility.Format("file:///{0}", path);
|
||||||
|
#elif UNITY_OPENHARMONY
|
||||||
|
return path;
|
||||||
#else
|
#else
|
||||||
return path;
|
return path;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -58,7 +58,12 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
private static string CreateDefaultBuildinRoot()
|
private static string CreateDefaultBuildinRoot()
|
||||||
{
|
{
|
||||||
return PathUtility.Combine(UnityEngine.Application.streamingAssetsPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
string path = PathUtility.Combine(UnityEngine.Application.streamingAssetsPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
||||||
|
#if UNITY_OPENHARMONY
|
||||||
|
return $"file://{path}";
|
||||||
|
#else
|
||||||
|
return path;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
private static string CreateDefaultSandboxRoot()
|
private static string CreateDefaultSandboxRoot()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue