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.Clear();
|
||||||
Console.Title = "DATFromDir " + Build.Version;
|
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
|
// 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;
|
_noMD5 = false; _noSHA1 = false; _forceunzip = false; _allfiles = false; _old = false; _log = false; _superDat = false;
|
||||||
|
bool credits = false;
|
||||||
_name = ""; _desc = ""; _cat = ""; _version = ""; _author = ""; _basePath = "";
|
_name = ""; _desc = ""; _cat = ""; _version = ""; _author = ""; _basePath = "";
|
||||||
List<string> inputs = new List<string>();
|
List<string> inputs = new List<string>();
|
||||||
foreach (string arg in args)
|
foreach (string arg in args)
|
||||||
@@ -103,6 +111,9 @@ namespace SabreTools
|
|||||||
case "--superdat":
|
case "--superdat":
|
||||||
_superDat = true;
|
_superDat = true;
|
||||||
break;
|
break;
|
||||||
|
case "--credits":
|
||||||
|
credits = true;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (arg.StartsWith("-n=") || arg.StartsWith("--name="))
|
if (arg.StartsWith("-n=") || arg.StartsWith("--name="))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Data.SQLite;
|
using System.Data.SQLite;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
@@ -42,6 +43,14 @@ namespace SabreTools
|
|||||||
Console.SetBufferSize(Console.BufferWidth, 999);
|
Console.SetBufferSize(Console.BufferWidth, 999);
|
||||||
Console.Title = "DATabase " + Build.Version;
|
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 there's no arguments, show the menu
|
||||||
if (args.Length == 0)
|
if (args.Length == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
@@ -17,6 +18,13 @@ namespace DatSplit
|
|||||||
{
|
{
|
||||||
Console.Title = "DatSplit " + Build.Version;
|
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 we don't have arguments, show help
|
||||||
if (args.Length == 0 && args.Length != 3)
|
if (args.Length == 0 && args.Length != 3)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,6 +33,13 @@ namespace SabreTools
|
|||||||
|
|
||||||
Console.Title = "Headerer " + Build.Version;
|
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)
|
if (args.Length == 0 || args.Length > 2)
|
||||||
{
|
{
|
||||||
Build.Help();
|
Build.Help();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
@@ -16,6 +17,13 @@ namespace SabreTools
|
|||||||
{
|
{
|
||||||
Console.Title = "SingleGame " + Build.Version;
|
Console.Title = "SingleGame " + Build.Version;
|
||||||
|
|
||||||
|
// Credits take precidence over all
|
||||||
|
if ((new List<string>(args)).Contains("--credits"))
|
||||||
|
{
|
||||||
|
Build.Credits();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (args.Length == 0)
|
if (args.Length == 0)
|
||||||
{
|
{
|
||||||
Build.Help();
|
Build.Help();
|
||||||
|
|||||||
Reference in New Issue
Block a user