示例#1
0
 static function init($torqueRoot)
 {
     // If the torque root is absolute then store and use it.
     if (realpath($torqueRoot) == $torqueRoot || realpath($torqueRoot) == str_replace("/", "\\", $torqueRoot)) {
         self::$absPath = str_replace("\\", "/", $torqueRoot);
         $torqueRoot = self::$absPath;
     }
     if (self::$absPath) {
         self::$paths['engineLib'] = '../../../Engine/lib/';
         self::$paths['engineSrc'] = '../../../Engine/source/';
         self::$paths['engineBin'] = '../../../Engine/bin/';
     } else {
         self::$paths['engineLib'] = $torqueRoot . '/../Engine/lib/';
         self::$paths['engineSrc'] = $torqueRoot . '/../Engine/source/';
         self::$paths['engineBin'] = $torqueRoot . '/../Engine/bin/';
     }
     self::$paths['modules'] = $torqueRoot . '/Tools/projectGenerator/modules/';
     self::$paths['libs'] = $torqueRoot . '/Tools/projectGenerator/libs/';
     self::$platform = 'win32';
 }