MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / init

Method init

Tools/projectGenerator/classes/Generator.php:64–90  ·  view source on GitHub ↗
( $torqueRoot )

Source from the content-addressed store, hash-verified

62 private static $module_cur;
63
64 static function init( $torqueRoot )
65 {
66 // If the torque root is absolute then store and use it.
67 if ( realpath( $torqueRoot ) == $torqueRoot ||
68 realpath( $torqueRoot ) == str_replace("/", "\\", $torqueRoot) )
69 {
70 self::$absPath = str_replace( "\\", "/", $torqueRoot );
71 $torqueRoot = self::$absPath;
72 }
73
74 if ( self::$absPath )
75 {
76 self::$paths[ 'engineLib' ] = '../../../Engine/lib/';
77 self::$paths[ 'engineSrc' ] = '../../../Engine/source/';
78 self::$paths[ 'engineBin' ] = '../../../Engine/bin/';
79 }
80 else
81 {
82 self::$paths[ 'engineLib' ] = $torqueRoot . '/../Engine/lib/';
83 self::$paths[ 'engineSrc' ] = $torqueRoot . '/../Engine/source/';
84 self::$paths[ 'engineBin' ] = $torqueRoot . '/../Engine/bin/';
85 }
86
87 self::$paths[ 'modules' ] = $torqueRoot . '/Tools/projectGenerator/modules/';
88 self::$paths[ 'libs' ] = $torqueRoot . '/Tools/projectGenerator/libs/';
89 self::$platform = 'win32';
90 }
91
92 static function setGameProjectName($name)
93 {

Callers 15

GuiEditorSelectDlgFunction · 0.45
GuiEditCanvasFunction · 0.45
GuiEditorFunction · 0.45
NavEditorPluginFunction · 0.45
GetEaseFFunction · 0.45
EditorGuiFunction · 0.45
EditorGui.ed.csFile · 0.45
ESelectObjectsWindowFunction · 0.45
optionsDlg.csFile · 0.45
GuiEditorSelectDlgFunction · 0.45
GuiEditCanvasFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected