/// <inheritdoc /> public Stream?Resolve(string assetName) { using FileStream stream = new FileStream(assetName, FileMode.Open, FileAccess.Read); return(ContentCompressor.DecompressStream(stream, out Stream stream2) ? stream2 : null); }
/// <inheritdoc /> public Stream?Resolve(Assembly assembly, string assetName) { using Stream stream = EmbeddedResourceStreamResolver.GetManifestResourceStreamInternal(assembly, assetName); return(ContentCompressor.DecompressStream(stream, out Stream stream2) ? stream2 : null); }