public static void Write()
        {
            TES4Collection collection       = TES4CollectionFactory.CreateForScriptExporting(DataDirectory.GetESMDirectoryPath(), DataDirectory.TES4GameFileName);
            string         buildTargetsPath = DataDirectory.GetBuildTargetsPath();

            Write(collection, buildTargetsPath, "Standalone", "", false, null, true, TES4RecordType.SCPT);
            Write(collection, buildTargetsPath, "TIF", TES5ReferenceFactory.tif_Prefix, true, null, false, TES4RecordType.INFO);
            WriteWithIndexes(collection, buildTargetsPath, "QF", TES5ReferenceFactory.qf_Prefix, TES4RecordType.QUST);
        }
 protected bool PreExecutionChecks(bool requireESM, bool requireBuildTargets, bool requireGraph, bool requireCompiler)
 {
     if (requireESM)
     {
         string esmPath = DataDirectory.GetESMDefaultFilePath();
         if (!File.Exists(esmPath))
         {
             Console.WriteLine("Please add " + esmPath);
             return(false);
         }
     }
     if (requireBuildTargets)
     {
         string buildTargetsPath = DataDirectory.GetBuildTargetsPath();
         if (!Directory.Exists(buildTargetsPath))
         {
             Console.WriteLine("Please add " + buildTargetsPath + " with all of its contents.");
             return(false);
         }
     }
     if (requireGraph)
     {
         string graphPath = DataDirectory.GetGraphDirectoryPath();
         if (!Directory.Exists(graphPath))
         {
             Console.WriteLine("Please add " + graphPath + " by running " + BuildInteroperableCompilationGraphs.FriendlyNameConst + ".");
             return(false);
         }
     }
     if (requireCompiler)
     {
         string compilerPath = DataDirectory.GetCompilerDirectoryPath();
         if (!Directory.Exists(compilerPath))
         {
             Console.WriteLine("Please add compiler binaries to " + compilerPath + ".");
             return(false);
         }
     }
     Directory.CreateDirectory(DataDirectory.GetBuildPath());
     return(true);
 }
 public static string GetRootBuildTargetPath(this IBuildTarget buildTarget)
 {
     return(Path.Combine(DataDirectory.GetBuildTargetsPath(), buildTarget.Name) + Path.DirectorySeparatorChar);
 }
示例#4
0
 private string GetRootBuildTargetPath()
 {
     return(Path.Combine(DataDirectory.GetBuildTargetsPath(), this.GetTargetName()) + Path.DirectorySeparatorChar);
 }