protected override bool ReadFile(string path, IntPtr dst) { var localPath = CacheFileFromAsset(path); var asset = File.ReadAllBytes(localPath); ResourceUtil.CopyBytes(dst, asset); return(true); }
protected override bool ReadFile(string path, IntPtr dst) { var cachePath = CacheFileFromAsset(path); if (!File.Exists(cachePath)) { return(false); } var asset = File.ReadAllBytes(cachePath); ResourceUtil.CopyBytes(dst, asset); return(true); }