mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Update core.tscript
returns the ability to compile all scripts and gui files
This commit is contained in:
parent
70502d1b0f
commit
183d8e904f
1 changed files with 20 additions and 0 deletions
|
|
@ -38,6 +38,26 @@ function CoreModule::onCreate(%this)
|
||||||
// Parse the command line arguments
|
// Parse the command line arguments
|
||||||
echo("\n--------- Parsing Arguments ---------");
|
echo("\n--------- Parsing Arguments ---------");
|
||||||
parseArgs();
|
parseArgs();
|
||||||
|
|
||||||
|
if($compileAll)
|
||||||
|
{
|
||||||
|
echo(" --- Compiling all files ---");
|
||||||
|
compileFiles("*" @ $TorqueScriptFileExtension);
|
||||||
|
compileFiles("*.gui");
|
||||||
|
compileFiles("*.ts");
|
||||||
|
echo(" --- Exiting after compile ---");
|
||||||
|
quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($compileTools)
|
||||||
|
{
|
||||||
|
echo(" --- Compiling tools scritps ---");
|
||||||
|
compileFiles("tools/*" @ $TorqueScriptFileExtension);
|
||||||
|
compileFiles("tools/*.gui");
|
||||||
|
compileFiles("tools/*.ts");
|
||||||
|
echo(" --- Exiting after compile ---");
|
||||||
|
quit();
|
||||||
|
}
|
||||||
|
|
||||||
// The canvas needs to be initialized before any gui scripts are run since
|
// 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.
|
// some of the controls assume that the canvas exists at load time.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue