|
|
|
@ -554,9 +554,13 @@ public class SkiaEncoder : IImageEncoder
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public void CreateSplashscreen(IReadOnlyList<string> posters, IReadOnlyList<string> backdrops)
|
|
|
|
|
{
|
|
|
|
|
var splashBuilder = new SplashscreenBuilder(this);
|
|
|
|
|
var outputPath = Path.Combine(_appPaths.DataPath, "splashscreen.png");
|
|
|
|
|
splashBuilder.GenerateSplash(posters, backdrops, outputPath);
|
|
|
|
|
// Only generate the splash screen if we have at least one poster and at least one backdrop/thumbnail.
|
|
|
|
|
if (posters.Count > 0 && backdrops.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
var splashBuilder = new SplashscreenBuilder(this);
|
|
|
|
|
var outputPath = Path.Combine(_appPaths.DataPath, "splashscreen.png");
|
|
|
|
|
splashBuilder.GenerateSplash(posters, backdrops, outputPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|