forked from GarageGames/3SS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cs
52 lines (40 loc) · 1.77 KB
/
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//-----------------------------------------------------------------------------
// Torque
// Copyright GarageGames, LLC 2011
//-----------------------------------------------------------------------------
// Set log mode.
setLogMode(2);
// Controls whether the execution or script files or compiled DSOs are echoed to the console or not.
// Being able to turn this off means far less spam in the console during typical development.
setScriptExecEcho( false );
// Controls whether all script execution is traced (echoed) to the console or not.
trace( false );
// Controls whether global
$pref::T2D::imageAssetGlobalFilterMode = "Smooth";
// The name of the company. Used to form the path to save preferences. Defaults to GarageGames
// if not specified.
// The name of the game. Used to form the path to save preferences. Defaults to C++ engine define TORQUE_GAME_NAME
// if not specified.
// Appending version string to avoid conflicts with existing versions and other versions.
setCompanyAndProduct("GarageGames", "3StepStudio" @ getThreeStepStudioVersion());
// Set module database information echo.
ModuleDatabase.EchoInfo = false;
// Set asset database information echo.
AssetDatabase.EchoInfo = false;
// Is a module merge available?
if ( ModuleDatabase.isModuleMergeAvailable() )
{
// Yes, so merge modules.
if ( ModuleDatabase.mergeModules( "modules", true, false ) == false )
{
error( "A serious error occurred merging modules!" );
quit();
}
}
// Scan modules.
ModuleDatabase.scanModules( "modules" );
// Load boot module.
ModuleDatabase.LoadExplicit( "{EditorBoot}" );
//-----------------------------------------------------------------------------
// MM: This is a test and will be removed!
//ModuleDatabase.schedule( 1, LoadExplicit, "{MelvTesting}" );