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

Hiding console window on Windows build #5

Open
parkersprouse opened this issue Aug 1, 2020 · 4 comments
Open

Hiding console window on Windows build #5

parkersprouse opened this issue Aug 1, 2020 · 4 comments

Comments

@parkersprouse
Copy link

Hello!

I'm not very familiar with building C code, so redistHelper has been a life saver for my Heaps projects, so thank you for creating it!

One thing that I would like to ask about though is the console window that pops open with the game when you launch a project built on Windows. I know you can call hl.UI.closeConsole() to close it after the game launches, but that still results in the prompt briefly flashing when launching the game, and I personally dislike that.

Are there any changes that can be made to redistHelper to remove the console window entirely? Any flags that can be added to the Windows build command that can accomplish this? I'd be willing to fork / clone the repo and do it myself, I'm more asking for some direction if you didn't have the time or weren't personally interested in doing it yourself.

Thank you for any help!

@parkersprouse parkersprouse changed the title Hiding console window on dist build Hiding console window on Windows build Aug 1, 2020
@deepnight
Copy link
Owner

The issue is related to Hashlink itself, and I agree that an option to not show the console at all would be great :)

You can write an issue there: https://github.com/HaxeFoundation/hashlink

@Grimo0
Copy link

Grimo0 commented Jun 28, 2022

Hi !
This seems to have solve the issue : HaxeFoundation/hashlink#519 (comment)

editbin.exe /subsystem:windows hl.exe, where editbin is a part of Visual Studio

@deepnight
Copy link
Owner

True, but it forces the user to install the whole Visual Studio thing just to change this app flag 🤔 I'm still hoping for an actual fix, as it used to work before some undetermined update.

@Grimo0
Copy link

Grimo0 commented Jun 28, 2022

What about updating the bundled hl.exe ?

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

No branches or pull requests

3 participants