|
|
|
@ -133,7 +133,7 @@ public class UnityFile
|
|
|
|
name = Pathing.ToPlatformAssetBundleName(name);
|
|
|
|
name = Pathing.ToPlatformAssetBundleName(name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//string text = Pathing.appContentDataPath + localpath + name;
|
|
|
|
//string text = Pathing.appContentDataPath + localpath + name;
|
|
|
|
string text = (HelperFunctions.CreateFilePath(("/" + localpath.TrimStart('/') + name))).TrimStart('/');
|
|
|
|
string text = HelperFunctions.CreateFilePath(("/" + localpath+ name));
|
|
|
|
Debug.LogWarning("Loader: "+ text);
|
|
|
|
Debug.LogWarning("Loader: "+ text);
|
|
|
|
return text;
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -195,7 +195,7 @@ public class UnityFile
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (Application.platform == RuntimePlatform.Android)
|
|
|
|
if (Application.platform == RuntimePlatform.Android)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string url = HelperFunctions.CreateFilePath(m_szPath + m_szName + ".png").TrimStart('/');
|
|
|
|
string url = HelperFunctions.CreateFilePath(m_szPath + m_szName + ".png");
|
|
|
|
|
|
|
|
|
|
|
|
Debug.LogWarning(url);
|
|
|
|
Debug.LogWarning(url);
|
|
|
|
UnityWebRequest request = UnityWebRequest.Get(url);
|
|
|
|
UnityWebRequest request = UnityWebRequest.Get(url);
|
|
|
|
@ -216,7 +216,7 @@ public class UnityFile
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//string updatedPath = StaticFunctions.createFilePath(m_szPath + m_szName + ".png");
|
|
|
|
//string updatedPath = StaticFunctions.createFilePath(m_szPath + m_szName + ".png");
|
|
|
|
string updatedPath = HelperFunctions.CreateFilePath(m_szPath + m_szName + ".png").TrimStart('/');
|
|
|
|
string updatedPath = HelperFunctions.CreateFilePath(m_szPath + m_szName + ".png");
|
|
|
|
//Debug.LogWarning(updatedPath);
|
|
|
|
//Debug.LogWarning(updatedPath);
|
|
|
|
/*string updatedPath = Pathing.BaseContentPath.TrimEnd('/') + m_szPath + m_szName + ".png";
|
|
|
|
/*string updatedPath = Pathing.BaseContentPath.TrimEnd('/') + m_szPath + m_szName + ".png";
|
|
|
|
if (!System.IO.File.Exists(updatedPath))
|
|
|
|
if (!System.IO.File.Exists(updatedPath))
|
|
|
|
|