Просмотр исходного кода

Merge pull request #588 from Azaezel/alpha40/splashscreenSuppression

kill splashscreen on nonwindows
Brian Roberts 4 лет назад
Родитель
Сommit
2e153e43e0
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      Templates/BaseGame/game/main.tscript.in

+ 7 - 2
Templates/BaseGame/game/main.tscript.in

@@ -19,9 +19,14 @@ ModuleDatabase.LoadExplicit( "CoreModule" );
 // Display a splash window immediately to improve app responsiveness before
 // engine is initialized and main window created.
 if ($Server::Dedicated == false)
-    displaySplashWindow($Core::splashWindowImage);
+{
+    if ($platform $= "windows")
+       displaySplashWindow($Core::splashWindowImage);
+}
 else
+{
     $Video::forceDisplayAdapter = -1;
+}
     
 //-----------------------------------------------------------------------------
 // Load any gameplay modules
@@ -45,7 +50,7 @@ else
    }
 }
 
-if ($Server::Dedicated == false)
+if ( ($Server::Dedicated == false) && ($platform $= "windows") )
     closeSplashWindow();
 
 echo("Engine initialized...");