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 informational command-line arguments not working with -console #1168

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

InfoTeddy
Copy link
Contributor

The intention of the -console argument was to enable seeing console output on Windows without having to use workarounds. However, this didn't actually work for arguments like -addresses and -version, because the program would exit first before it could get the chance to create the console.

The other issue is that the console closes too quickly before output can be read by the user. So to fix that, we must hold it open and let the user close it when they want to.

Legal Stuff:

By submitting this pull request, I confirm that...

  • My changes may be used in a future commercial release of VVVVVV
  • I will be credited in a CONTRIBUTORS file and the "GitHub Friends"
    section of the credits for all of said releases, but will NOT be compensated
    for these changes unless there is a prior written agreement

The intention of the `-console` argument was to enable seeing console
output on Windows without having to use workarounds. However, this
didn't actually work for arguments like `-addresses` and `-version`,
because the program would exit first before it could get the chance to
create the console.

The other issue is that the console closes too quickly before output can
be read by the user. So to fix that, we must hold it open and let the
user close it when they want to by waiting for an enter press from
STDIN.
@InfoTeddy InfoTeddy merged commit dd15d67 into TerryCavanagh:master Jun 4, 2024
4 checks passed
@InfoTeddy InfoTeddy deleted the general-bug-fixes branch June 4, 2024 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant