예제 #1
0
 internal static void CopyMetadataFiles(string tempFolder, string destinationFolder)
 {
     foreach (var file in Directory.GetFiles(Paths.Combine(IL2CPPBuilder.GetCppOutputPath(tempFolder), "Data", "Metadata")).Where(f => f.EndsWith(BinaryMetadataSuffix)))
     {
         File.Copy(file, Paths.Combine(destinationFolder, Path.GetFileName(file)), true);
     }
 }
예제 #2
0
 internal static void CopyEmbeddedResourceFiles(string tempFolder, string destinationFolder)
 {
     foreach (var file in Directory.GetFiles(Paths.Combine(IL2CPPBuilder.GetCppOutputPath(tempFolder), "Data", "Resources")).Where(f => f.EndsWith("-resources.dat")))
     {
         File.Copy(file, Paths.Combine(destinationFolder, Path.GetFileName(file)), true);
     }
 }
예제 #3
0
        internal static void CopyConfigFiles(string tempFolder, string destinationFolder)
        {
            string source = Paths.Combine(new string[]
            {
                IL2CPPBuilder.GetCppOutputPath(tempFolder),
                "Data",
                "etc"
            });

            FileUtil.CopyDirectoryRecursive(source, destinationFolder);
        }
예제 #4
0
 internal static void CopyMetadataFiles(string tempFolder, string destinationFolder)
 {
     foreach (string current in from f in Directory.GetFiles(Paths.Combine(new string[]
     {
         IL2CPPBuilder.GetCppOutputPath(tempFolder),
         "Data",
         "Metadata"
     }))
              where f.EndsWith("-metadata.dat")
              select f)
     {
         File.Copy(current, Paths.Combine(new string[]
         {
             destinationFolder,
             Path.GetFileName(current)
         }), true);
     }
 }
예제 #5
0
 public string GetCppOutputDirectoryInStagingArea()
 {
     return(IL2CPPBuilder.GetCppOutputPath(this.m_TempFolder));
 }
예제 #6
0
 internal static void CopyEmbeddedResourceFiles(string tempFolder, string destinationFolder)
 {
     string[] components = new string[] { IL2CPPBuilder.GetCppOutputPath(tempFolder), "Data", "Resources" };
     if (< > f__am$cache0 == null)
     {
예제 #7
0
 internal static void CopyConfigFiles(string tempFolder, string destinationFolder)
 {
     string[] components = new string[] { IL2CPPBuilder.GetCppOutputPath(tempFolder), "Data", "etc" };
     FileUtil.CopyDirectoryRecursive(Paths.Combine(components), destinationFolder);
 }
예제 #8
0
 internal static void CopyMetadataFiles(string tempFolder, string destinationFolder)
 {
     foreach (string str in ((IEnumerable <string>)Directory.GetFiles(Paths.Combine(IL2CPPBuilder.GetCppOutputPath(tempFolder), "Data", "Metadata"))).Where <string>((Func <string, bool>)(f => f.EndsWith("-metadata.dat"))))
     {
         File.Copy(str, Paths.Combine(destinationFolder, Path.GetFileName(str)), 1 != 0);
     }
 }