diff --git a/DATFromDir/DATFromDir.cs b/DATFromDir/DATFromDir.cs index ea0ed310..057c44ef 100644 --- a/DATFromDir/DATFromDir.cs +++ b/DATFromDir/DATFromDir.cs @@ -12,11 +12,10 @@ using DamienG.Security.Cryptography; namespace SabreTools { - /* - Auto set Name and Description from current folder - */ - - class DATFromDir + /// + /// Create a DAT file from a specified file, directory, or set thereof + /// + public class DATFromDir { // Path-related variables private static string _7zPath; @@ -42,7 +41,11 @@ namespace SabreTools // Other required variables private static string _version = DateTime.Now.ToString("yyyyMMddHHmmss"); - static void Main(string[] args) + /// + /// Start help or use supplied parameters + /// + /// String array representing command line parameters + public static void Main(string[] args) { Console.Clear(); @@ -258,6 +261,9 @@ namespace SabreTools } } + /// + /// Show text-based help + /// private static void Help() { Console.WriteLine(@"DATFromDir - Create a DAT file from a directory @@ -276,6 +282,10 @@ Options: -c=, --cat= Set the category of the DAT"); } + /// + /// Check a given file for hashes, based on current settings + /// + /// Filename of the item to be checked private static void ProcessFile (string item) { // Create the temporary output directory