コード例 #1
0
ファイル: Exporter.cs プロジェクト: guestnone/NilNote
 public void Start(string path)
 {
     mPath       = new NPath(path);
     mStringPath = path;
     if (!mPath.DirectoryExists())
     {
         mPath.CreateDirectory();
     }
     mPath.DeleteContents();
 }
コード例 #2
0
        private static NPath FindInstallRoot(string installName)
        {
            if (Il2CppDependencies.Available && !UnitySourceCode.Available)
            {
                return(Il2CppDependencies.MonoInstall(installName));
            }
            string[] append = new string[] { installName };
            NPath    path   = CommonPaths.Il2CppRoot.Parent.Combine(append);

            if (path.DirectoryExists(""))
            {
                return(path);
            }
            if (!UnitySourceCode.Available)
            {
                throw new InvalidOperationException("Unable to find mono install at: " + path);
            }
            string[] textArray2 = new string[] { "External/" + installName + "/builds/monodistribution" };
            return(UnitySourceCode.Paths.UnityRoot.Combine(textArray2));
        }
コード例 #3
0
 public Msvc15Installation() : base(new Version(15, 0))
 {
     this._sdkBinDirectories = new List <NPath>();
     base.SDKDirectory       = WindowsSDKs.GetWindows10SDKDirectory(out this._sdkVersion);
     this._netfxsdkDir       = WindowsSDKs.GetDotNetFrameworkSDKDirectory();
     if (base.SDKDirectory != null)
     {
         string[] append     = new string[] { "bin" };
         NPath    item       = base.SDKDirectory.Combine(append);
         string[] textArray2 = new string[] { this._sdkVersion };
         NPath    path2      = item.Combine(textArray2);
         if (path2.DirectoryExists(""))
         {
             this._sdkBinDirectories.Add(path2);
         }
         this._sdkBinDirectories.Add(item);
         string[] textArray3 = new string[] { "UnionMetadata" };
         NPath    path3      = base.SDKDirectory.Combine(textArray3);
         string[] textArray4 = new string[] { this._sdkVersion };
         NPath    path4      = path3.Combine(textArray4);
         this._sdkUnionMetadataDirectory = !path4.DirectoryExists("") ? path3 : path4;
     }
 }
コード例 #4
0
 private static void AddVCToolsForArchitecture(Architecture architecture, VCComponent component, string architectureFolder, Dictionary <Type, VCPaths> vcToolsPaths)
 {
     if (component != null)
     {
         string[] append = new string[] { "VC", "Tools", "MSVC", component.RawVersion };
         NPath    path   = component.InstallationPath.Combine(append);
         if (!path.DirectoryExists(""))
         {
             string   str        = component.RawVersion.Substring(0, component.RawVersion.LastIndexOf('.'));
             string[] textArray2 = new string[] { "VC", "Tools", "MSVC", str };
             path = component.InstallationPath.Combine(textArray2);
         }
         string[] textArray3  = new string[] { "bin", _hostDirectory, architectureFolder };
         NPath    toolsPath   = path.Combine(textArray3);
         string[] textArray4  = new string[] { "include" };
         NPath    includePath = path.Combine(textArray4);
         string[] textArray5  = new string[] { "lib", architectureFolder };
         NPath    libPath     = path.Combine(textArray5);
         if ((toolsPath.DirectoryExists("") && includePath.DirectoryExists("")) && libPath.DirectoryExists(""))
         {
             vcToolsPaths.Add(architecture.GetType(), new VCPaths(toolsPath, includePath, libPath));
         }
     }
 }