mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Further fixes to logging and SL read
This commit is contained in:
@@ -323,7 +323,7 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.Warning("Invalid input detected: " + arg);
|
logger.Error("Invalid input detected: " + arg);
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
Build.Help();
|
Build.Help();
|
||||||
logger.Close();
|
logger.Close();
|
||||||
@@ -343,6 +343,7 @@ namespace SabreTools
|
|||||||
if (help || !(add ^ (convertMiss || romba) ^ convertCMP ^ convertRC ^ convertSD ^ convertXml ^ extsplit ^ generate ^
|
if (help || !(add ^ (convertMiss || romba) ^ convertCMP ^ convertRC ^ convertSD ^ convertXml ^ extsplit ^ generate ^
|
||||||
genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ (merge || diff) ^ rem ^ stats ^ trim))
|
genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ (merge || diff) ^ rem ^ stats ^ trim))
|
||||||
{
|
{
|
||||||
|
logger.Error("Only one feature switch is allowed at a time");
|
||||||
Build.Help();
|
Build.Help();
|
||||||
logger.Close();
|
logger.Close();
|
||||||
return;
|
return;
|
||||||
@@ -352,6 +353,7 @@ namespace SabreTools
|
|||||||
if (inputs.Count == 0 && ((convertMiss || romba) || convertCMP || convertRC || convertSD
|
if (inputs.Count == 0 && ((convertMiss || romba) || convertCMP || convertRC || convertSD
|
||||||
|| convertXml || extsplit || hashsplit || import || (merge || diff) || stats || trim))
|
|| convertXml || extsplit || hashsplit || import || (merge || diff) || stats || trim))
|
||||||
{
|
{
|
||||||
|
logger.Error("This feature requires at least one input");
|
||||||
Build.Help();
|
Build.Help();
|
||||||
logger.Close();
|
logger.Close();
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ namespace SabreTools.Helper
|
|||||||
{
|
{
|
||||||
datdata.Description = (String.IsNullOrEmpty(datdata.Description) ? xtr.GetAttribute("description") : datdata.Description);
|
datdata.Description = (String.IsNullOrEmpty(datdata.Description) ? xtr.GetAttribute("description") : datdata.Description);
|
||||||
}
|
}
|
||||||
|
xtr.Read();
|
||||||
break;
|
break;
|
||||||
case "header":
|
case "header":
|
||||||
// We want to process the entire subtree of the header
|
// We want to process the entire subtree of the header
|
||||||
|
|||||||
Reference in New Issue
Block a user