private static Stream OpenReadInZip(string path) { for (int i = 0; i < list.Count; i++) { IZipAccessor zipAccessor = list[i]; if (zipAccessor.Support(path)) { return(zipAccessor.OpenRead(path)); } } throw new NotSupportedException(path); }
private static Stream OpenReadInZip(string path) { for (int i = 0; i < list.Count; i++) { IZipAccessor zipAccessor = list[i]; if (zipAccessor.Support(path)) { return(zipAccessor.OpenRead(path)); } } #if UNITY_ANDROID if (path.IndexOf(".obb", StringComparison.OrdinalIgnoreCase) > 0 && log.IsWarnEnabled) { log.Warn("Unable to read the content in the \".obb\" file, please click the link for help, and enable access to the OBB file. https://github.com/cocowolf/loxodon-framework/blob/master/docs/faq.md"); } #endif throw new NotSupportedException(path); }