This commit is contained in:
Matt Nadareski
2016-04-18 16:32:17 -07:00
parent 38f62683d9
commit cd958b7950
5 changed files with 43 additions and 0 deletions

View File

@@ -57,8 +57,16 @@ namespace SabreTools
Console.Clear();
Console.Title = "DATFromDir " + Build.Version;
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))
{
Build.Credits();
return;
}
// First things first, take care of all of the arguments that this could have
_noMD5 = false; _noSHA1 = false; _forceunzip = false; _allfiles = false; _old = false; _log = false; _superDat = false;
bool credits = false;
_name = ""; _desc = ""; _cat = ""; _version = ""; _author = ""; _basePath = "";
List<string> inputs = new List<string>();
foreach (string arg in args)
@@ -103,6 +111,9 @@ namespace SabreTools
case "--superdat":
_superDat = true;
break;
case "--credits":
credits = true;
break;
default:
if (arg.StartsWith("-n=") || arg.StartsWith("--name="))
{

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.IO.Compression;
@@ -42,6 +43,14 @@ namespace SabreTools
Console.SetBufferSize(Console.BufferWidth, 999);
Console.Title = "DATabase " + Build.Version;
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))
{
Build.Credits();
logger.Close();
return;
}
// If there's no arguments, show the menu
if (args.Length == 0)
{

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
@@ -17,6 +18,13 @@ namespace DatSplit
{
Console.Title = "DatSplit " + Build.Version;
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))
{
Build.Credits();
return;
}
// If we don't have arguments, show help
if (args.Length == 0 && args.Length != 3)
{

View File

@@ -33,6 +33,13 @@ namespace SabreTools
Console.Title = "Headerer " + Build.Version;
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))
{
Build.Credits();
return;
}
if (args.Length == 0 || args.Length > 2)
{
Build.Help();

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
@@ -16,6 +17,13 @@ namespace SabreTools
{
Console.Title = "SingleGame " + Build.Version;
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))
{
Build.Credits();
return;
}
if (args.Length == 0)
{
Build.Help();