mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Credits!
This commit is contained in:
@@ -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="))
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user