Browse Source

Rename variable, introduce output dir option

master
Rikux3 4 years ago
parent
commit
71ebe4d110
  1. 0
      README
  2. 9
      UsmToolkit/Program.cs
  3. 2
      UsmToolkit/Properties/launchSettings.json

0
README

9
UsmToolkit/Program.cs

@ -60,7 +60,10 @@ namespace UsmToolkit
public string InputPath { get; set; }
[Option(CommandOptionType.NoValue, Description = "Join files after extraction.", ShortName = "j", LongName = "join")]
public bool JoinOutput { get; set; }
public bool Join { get; set; }
[Option(CommandOptionType.SingleValue, Description = "Specify output directory.", ShortName = "o", LongName = "output-dir")]
public string OutputDir { get; set; }
[Option(CommandOptionType.NoValue, Description = "Remove temporary m2v and audio after joining.", ShortName = "c", LongName = "clean")]
public bool CleanTempFiles { get; set; }
@ -95,7 +98,7 @@ namespace UsmToolkit
SplitAudioStreams = false
});
if (JoinOutput)
if (Join)
{
JoinOutputFile(usmStream);
}
@ -152,7 +155,7 @@ namespace UsmToolkit
if (usmStream.HasAudio)
sb.Append($"{conf.AudioParameter} ");
sb.Append($"{pureFileName}.{conf.OutputFormat}");
sb.Append($"\"{Path.Combine(OutputDir ?? string.Empty, $"{pureFileName}.{conf.OutputFormat}")}\"");
return sb.ToString();
}

2
UsmToolkit/Properties/launchSettings.json

@ -2,7 +2,7 @@
"profiles": {
"UsmToolkit": {
"commandName": "Project",
"commandLineArgs": "extract \"F:\\CUSA05787\\tresgame\\content\\crimovie\\rebellis02\\en\\cs_dw009_mv.usm\" --join"
"commandLineArgs": ""
}
}
}
Loading…
Cancel
Save