浏览代码

Merge pull request #841 from Azaezel/alpha401/StartupSanity

kill the ap if no valid core directory found.
Brian Roberts 3 年之前
父节点
当前提交
14872eb4b6
共有 1 个文件被更改,包括 2 次插入1 次删除
  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.