mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
More future code
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Security.Cryptography;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
|
//using SabreTools.Helper;
|
||||||
using DamienG.Security.Cryptography;
|
using DamienG.Security.Cryptography;
|
||||||
|
|
||||||
namespace SabreTools
|
namespace SabreTools
|
||||||
@@ -51,6 +52,8 @@ namespace SabreTools
|
|||||||
Console.Clear();
|
Console.Clear();
|
||||||
Console.Title = "DATFromDir " + "0.6.0.0";
|
Console.Title = "DATFromDir " + "0.6.0.0";
|
||||||
//Console.Title = "DATFromDir " + Build.Version;
|
//Console.Title = "DATFromDir " + Build.Version;
|
||||||
|
//Logger logger = new Logger(false, "datfromdir.log");
|
||||||
|
//logger.Start();
|
||||||
|
|
||||||
// First things first, take care of all of the arguments that this could have
|
// First things first, take care of all of the arguments that this could have
|
||||||
_noMD5 = false; _noSHA1 = false; _forceunzip = false; _allfiles = false; _old = false;
|
_noMD5 = false; _noSHA1 = false; _forceunzip = false; _allfiles = false; _old = false;
|
||||||
@@ -65,6 +68,7 @@ namespace SabreTools
|
|||||||
case "--help":
|
case "--help":
|
||||||
Help();
|
Help();
|
||||||
//Build.Help();
|
//Build.Help();
|
||||||
|
//logger.Close();
|
||||||
return;
|
return;
|
||||||
case "-m":
|
case "-m":
|
||||||
case "--noMD5":
|
case "--noMD5":
|
||||||
@@ -120,6 +124,7 @@ namespace SabreTools
|
|||||||
{
|
{
|
||||||
Help();
|
Help();
|
||||||
//Build.Help();
|
//Build.Help();
|
||||||
|
//logger.Close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -262,13 +267,16 @@ namespace SabreTools
|
|||||||
|
|
||||||
sw.Write((_old ? ")" : "\t</machine>\n</datafile>"));
|
sw.Write((_old ? ")" : "\t</machine>\n</datafile>"));
|
||||||
Console.Write("File written!");
|
Console.Write("File written!");
|
||||||
|
//logger.Log("File + _desc + ".xml written!");
|
||||||
sw.Close();
|
sw.Close();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.Write(ex.ToString());
|
Console.Write(ex.ToString());
|
||||||
|
//logger.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
|
//logger.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -367,6 +375,7 @@ Options:
|
|||||||
});
|
});
|
||||||
|
|
||||||
Console.WriteLine("File parsed: " + entry.Remove(0, _tempDir.Length));
|
Console.WriteLine("File parsed: " + entry.Remove(0, _tempDir.Length));
|
||||||
|
//logger.Log("File parsed: " + entry.Remove(0, _tempDir.Length));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Otherwise, just get the info on the file itself
|
// Otherwise, just get the info on the file itself
|
||||||
@@ -421,6 +430,7 @@ Options:
|
|||||||
});
|
});
|
||||||
|
|
||||||
Console.WriteLine("File parsed: " + item.Remove(0, _basePath.Length));
|
Console.WriteLine("File parsed: " + item.Remove(0, _basePath.Length));
|
||||||
|
//logger.Log("File parsed: " + item.Remove(0, _basePath.Length));
|
||||||
}
|
}
|
||||||
catch (IOException) { }
|
catch (IOException) { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user