Skip to content

Fix PackFarc console command arguments#106

Open
copyrat90 wants to merge 1 commit intoevandixon:masterfrom
copyrat90:console-packfarc
Open

Fix PackFarc console command arguments#106
copyrat90 wants to merge 1 commit intoevandixon:masterfrom
copyrat90:console-packfarc

Conversation

@copyrat90
Copy link
Copy Markdown

@copyrat90 copyrat90 commented Aug 19, 2021

Sky Editor's console has the PackFarc command, but the arguments are invalid.

If Directory.Exists(Arguments(0)) Then
    Await Farc.Pack(Arguments(0), Arguments(1), Integer.Parse(Arguments(2)), Boolean.Parse(Arguments(3)), CurrentFileSystem)
Else
    Console.WriteLine("Directory does not exist: " & Arguments(0))

Arguments(0) is the command name PackFarc itself, NOT the Input Directory.
Input Directory is Arguments(1), Output Filename is Arguments(2), and so on.

~\SkyEditor.ROMEditor.UI.WPF Build 220 $ PackFarc test\lang\us message-us.bin 5 False
Directory does not exist: PackFarc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant