Explorar o código

kill the ap if no valid core directory found.
closes the application if no core module found, ie folks didn't run install, or the project manager failed to pre-copy folders

AzaezelX %!s(int64=3) %!d(string=hai) anos
pai
achega
a6df172b9b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Templates/BaseGame/game/main.tscript.in

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

@@ -14,7 +14,8 @@ $appName = "@TORQUE_APP_NAME@";
 // Load up scripts to initialise subsystems.
 ModuleDatabase.setModuleExtension("module");
 ModuleDatabase.scanModules( "core", false );
-ModuleDatabase.LoadExplicit( "CoreModule" );
+if (!ModuleDatabase.LoadExplicit( "CoreModule" ))
+    quit();
 
 // Display a splash window immediately to improve app responsiveness before
 // engine is initialized and main window created.