Skip to content

Console don't close when exit the practice mod #2

@BubbleSalt

Description

@BubbleSalt

It seems the console don't close itself when exit the practice mod. Closing the console manually will result in closing the game.

I suppose adding the PostMessage(GetConsoleWindow(), WM_CLOSE, 0, 0); after FreeConsole(); in LabToolConsole::~LabToolConsole(), labtool_manager.cpp can be helpful, but I'm not sure.

// labtool_manager.cpp

LabToolConsole::~LabToolConsole() {
    // Other cleanup code...
    FreeConsole();

    // Additional cleanup code
    PostMessage(GetConsoleWindow(), WM_CLOSE, 0, 0);
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions