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 vgmstream-cli invocation for POSIX #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ramen2X
Copy link

@Ramen2X Ramen2X commented Oct 22, 2024

On Linux and macOS, vgmstream-cli uses the POSIX getopt function, which enforces a specific options standard; one where it parses options before non-options. However, it is my understanding that on Windows, vgmstream-cli uses the glibc getopt function, which is different in that it is flexible in what positions it can parse options passed to the program in.

Because of this, the tool fails on POSIX systems when waiting for vgmstream-cli to exit cleanly. vgmstream-cli throws the error input files must go after options. Simply swapping the arguments around completely takes care of the discrepancy, as it appeases the syntax of both getopt types.

I tested this PR on both Windows (x64) and macOS (arm64) and there are no issues with decryption on either of them.

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