mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Merge pull request #1468 from marauder2k9-torque/CompileAll
Restore compileAll functionality
This commit is contained in:
commit
95c496f872
1 changed files with 20 additions and 0 deletions
|
|
@ -39,6 +39,26 @@ function CoreModule::onCreate(%this)
|
||||||
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.
|
||||||
createCanvas($appName);
|
createCanvas($appName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue