mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Updated the main.cs.in file to account for core module-ification.
This commit is contained in:
parent
114a82b328
commit
5037d7e046
1 changed files with 5 additions and 42 deletions
|
|
@ -16,39 +16,12 @@ $appName = "@TORQUE_APP_NAME@";
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Load up scripts to initialise subsystems.
|
// Load up scripts to initialise subsystems.
|
||||||
exec("core/main.cs");
|
ModuleDatabase.setModuleExtension("module");
|
||||||
|
ModuleDatabase.scanModules( "core", false );
|
||||||
// Parse the command line arguments
|
ModuleDatabase.LoadExplicit( "CoreModule" );
|
||||||
echo("\n--------- Parsing Arguments ---------");
|
|
||||||
parseArgs();
|
|
||||||
|
|
||||||
// The canvas needs to be initialized before any gui scripts are run since
|
|
||||||
// some of the controls assume that the canvas exists at load time.
|
|
||||||
createCanvas($appName);
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Load console.
|
// Load any gameplay modules
|
||||||
exec("core/console/main.cs");
|
|
||||||
|
|
||||||
// Init the physics plugin.
|
|
||||||
physicsInit();
|
|
||||||
|
|
||||||
sfxStartup();
|
|
||||||
|
|
||||||
// Set up networking.
|
|
||||||
setNetPort(0);
|
|
||||||
|
|
||||||
// Start processing file change events.
|
|
||||||
startFileChangeNotifications();
|
|
||||||
|
|
||||||
// If we have editors, initialize them here as well
|
|
||||||
if (isToolBuild())
|
|
||||||
{
|
|
||||||
if(isFile("tools/main.cs") && !$isDedicated)
|
|
||||||
exec("tools/main.cs");
|
|
||||||
}
|
|
||||||
|
|
||||||
ModuleDatabase.setModuleExtension("module");
|
|
||||||
ModuleDatabase.scanModules( "data", false );
|
ModuleDatabase.scanModules( "data", false );
|
||||||
ModuleDatabase.LoadGroup( "Game" );
|
ModuleDatabase.LoadGroup( "Game" );
|
||||||
|
|
||||||
|
|
@ -85,14 +58,4 @@ else
|
||||||
closeSplashWindow();
|
closeSplashWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo("Engine initialized...");
|
echo("Engine initialized...");
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// Called when the engine is shutting down.
|
|
||||||
function onExit()
|
|
||||||
{
|
|
||||||
// Stop file change events.
|
|
||||||
stopFileChangeNotifications();
|
|
||||||
|
|
||||||
ModuleDatabase.UnloadExplicit( "Game" );
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue