From 360f4e5cbd5bf66c0be99894c5239037b428605d Mon Sep 17 00:00:00 2001 From: MrAnks Date: Fri, 7 Nov 2014 15:31:21 +0000 Subject: [PATCH] Update MainStartup.cs Hide the start up splash screen if nosplash is given as a command line parameter. --- MediaBrowser.ServerApplication/MainStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index c47dc2155c..1cbe8676c5 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -224,7 +224,7 @@ namespace MediaBrowser.ServerApplication if (!runService) { - ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); + if (!options.ContainsOption("nosplash")) ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); // Not crazy about this but it's the only way to suppress ffmpeg crash dialog boxes SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOALIGNMENTFAULTEXCEPT |