Skip to content

Commit

Permalink
Removed useless stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonHaze420 committed Jan 3, 2019
1 parent 7511c79 commit b8526c4
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions wudecon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static void Main(string[] args)
ExtractSPR(src, destFolder);
Console.WriteLine("Finished processing SPR!");

/*destFolder = args[2] + "\\IPAC";
destFolder = args[2] + "\\IPAC";
Console.WriteLine("Processing IPAC..");
ExtractIPAC(src, destFolder);
Console.WriteLine("Finished processing IPAC!");
Expand All @@ -709,7 +709,7 @@ static void Main(string[] args)
destFolder = args[2] + "\\MT5";
Console.WriteLine("Processing MT5..");
ExportMT5(src, destFolder);
Console.WriteLine("Finished Processing MT5!");*/
Console.WriteLine("Finished Processing MT5!");

destFolder = args[2] + "\\MT7";
Console.WriteLine("Processing MT7..");
Expand All @@ -720,50 +720,6 @@ static void Main(string[] args)

Console.WriteLine("Operations completed in {0} minutes ({1}ms)", timeStart.ElapsedMilliseconds/60000, timeStart.ElapsedMilliseconds);
}
else if((args[0].Contains("--process")))
{
var texDir = args[1];
src = args[2];
destFolder = args[2];

Console.WriteLine("Initializing TextureDatabase..");
TextureDatabase.SearchDirectory(texDir);

Console.WriteLine("Converting models..");
ExportMT7(src, destFolder);

Console.WriteLine("Finished!");

/*Console.WriteLine("Processing all TAD's");
var ext = new List<string> { ".tac", ".TAC" };
var tacFiles = Directory.GetFiles(src, "*.*", SearchOption.AllDirectories).Where(s => ext.Contains(Path.GetExtension(s)));
ext = new List<string> { ".tad", ".TAD" };
var tadFiles = Directory.GetFiles(src, "*.*", SearchOption.AllDirectories).Where(s => ext.Contains(Path.GetExtension(s)));
foreach (string tacFile in tacFiles)
{
foreach (string tadFile in tadFiles)
{
if (Path.GetFileNameWithoutExtension(tacFile).Equals(Path.GetFileNameWithoutExtension(tadFile)))
{
try
{
ExtractTAC(tadFile, tacFile, destFolder);
}
catch (Exception e)
{
Console.WriteLine("Oops! {0} failed!\nException: {1}", tacFile, e.ToString());
++iNumFailedOperations;
}
++iNumOperations;
}
}
}
Console.WriteLine("Finished processing");*/

}

if (iNumOperations > 0 || iNumFailedOperations > 0)
Console.WriteLine("Failed {1}/{0} operations.", iNumOperations, iNumFailedOperations);
Expand Down

0 comments on commit b8526c4

Please sign in to comment.