public static byte[] LoadModBinaryZip(int modId, int modfileId) { string filePath = GenerateModBinaryZipFilePath(modId, modfileId); byte[] zipData = CacheClient.LoadBinaryFile(filePath); return(zipData); }
public static Texture2D ReadImageFile(string filePath) { Texture2D texture = null; if (File.Exists(filePath)) { byte[] imageData = CacheClient.LoadBinaryFile(filePath); if (imageData != null) { texture = new Texture2D(0, 0); texture.LoadImage(imageData); } } return(texture); }