Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PackFarc console command arguments #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Namespace Windows.ConsoleCommands

Public Overrides Async Function MainAsync(Arguments() As String) As Task
If Arguments.Count > 1 Then
If Directory.Exists(Arguments(0)) Then
Await Farc.Pack(Arguments(0), Arguments(1), Integer.Parse(Arguments(2)), Boolean.Parse(Arguments(3)), CurrentFileSystem)
If Directory.Exists(Arguments(1)) Then
Await Farc.Pack(Arguments(1), Arguments(2), Integer.Parse(Arguments(3)), Boolean.Parse(Arguments(4)), CurrentFileSystem)
Else
Console.WriteLine("Directory does not exist: " & Arguments(0))
Console.WriteLine("Directory does not exist: " & Arguments(1))
End If
Else
Console.WriteLine("Usage: PackFarc <Input Directory> <Output Filename> <FARC Type (4 or 5)> <Use Filenames?>")
Expand Down