diff --git a/Assets/Scripts/Assembly-CSharp/UnityFile.cs b/Assets/Scripts/Assembly-CSharp/UnityFile.cs index c1e86b52a..e0f65dd09 100644 --- a/Assets/Scripts/Assembly-CSharp/UnityFile.cs +++ b/Assets/Scripts/Assembly-CSharp/UnityFile.cs @@ -133,7 +133,12 @@ public class UnityFile name = Pathing.ToPlatformAssetBundleName(name); } //string text = Pathing.appContentDataPath + localpath + name; - string text = "file://localhost/" + HelperFunctions.CreateFilePath(("/" + localpath+ name)).TrimStart('/'); + string text = HelperFunctions.CreateFilePath("/" + localpath + name); + if (Application.platform != RuntimePlatform.Android) + { + text = "file://localhost/" + text.TrimStart('/'); + } + Debug.LogWarning("Loader: "+ text); return text; }