private static ReadInfo GetInfoOrThrow(string path) { ReadInfo result; if (!BetterStreamingAssetsImp.TryGetInfo(path, out result)) { ThrowFileNotFound(path); } return(result); }
public static System.IO.Stream OpenRead(string path) { if (path == null) { throw new ArgumentNullException("path"); } if (path.Length == 0) { throw new ArgumentException("Empty path", "path"); } return(BetterStreamingAssetsImp.OpenRead(path)); }
public static byte[] ReadAllBytes(string path) { if (path == null) { throw new ArgumentNullException("path"); } if (path.Length == 0) { throw new ArgumentException("Empty path"); } return(BetterStreamingAssetsImp.ReadAllBytes(path)); }
public static bool DirectoryExists(string path) { return(BetterStreamingAssetsImp.DirectoryExists(path)); }
public static bool FileExists(string path) { ReadInfo info; return(BetterStreamingAssetsImp.TryGetInfo(path, out info)); }
public static void InitializeWithExternalDirectories(string dataPath, string streamingAssetsPath) { BetterStreamingAssetsImp.ApkMode = false; BetterStreamingAssetsImp.Initialize(dataPath, streamingAssetsPath); }
public static void InitializeWithExternalApk(string apkPath) { BetterStreamingAssetsImp.ApkMode = true; BetterStreamingAssetsImp.Initialize(apkPath, "jar:file://" + apkPath + "!/assets/"); }
public static void Initialize() { BetterStreamingAssetsImp.Initialize(Application.dataPath, Application.streamingAssetsPath); }
public static string[] GetFiles(string path, string searchPattern, SearchOption searchOption) { return(BetterStreamingAssetsImp.GetFiles(path, searchPattern, searchOption)); }