From a6df172b9b2ff89a21dac565ce15305ab725a2b7 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 13 Aug 2022 11:56:05 -0500 Subject: [PATCH] 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 --- Templates/BaseGame/game/main.tscript.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/main.tscript.in b/Templates/BaseGame/game/main.tscript.in index 800e9625a..0abcb346a 100644 --- a/Templates/BaseGame/game/main.tscript.in +++ b/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.