LocUtil: allow building only strings tables

This commit is contained in:
Nick Vella 2019-07-01 18:28:30 +10:00
parent 81ab755777
commit 21e72c5f4f
1 changed files with 63 additions and 59 deletions

View File

@ -81,13 +81,16 @@ namespace LocUtil
string[] commandFiles = (string[])ArrayHelper.Narrow(clo.GetValues("c"), typeof(string));
string[] dialogFiles = (string[])ArrayHelper.Narrow(clo.GetValues("d"), typeof(string));
string[] ribbonFiles = (string[])ArrayHelper.Narrow(clo.GetValues("r"), typeof(string));
string[] stringFiles = (string[])ArrayHelper.Narrow(clo.GetValues("s"), typeof(string));
if (commandFiles.Length + dialogFiles.Length == 0)
if (commandFiles.Length + dialogFiles.Length + stringFiles.Length == 0)
{
Console.Error.WriteLine("No input files were specified.");
return 1;
}
if(commandFiles.Length + dialogFiles.Length > 0)
{
HashSet ribbonIds;
Hashtable ribbonValues;
Console.WriteLine("Parsing commands from " + StringHelper.Join(commandFiles, ";"));
@ -155,6 +158,7 @@ namespace LocUtil
if (!GenerateEnum(dialogIds, "MessageId", denum, null, null))
return 1;
}
}
if (clo.IsArgPresent("s"))
{