Skip to content

Commit

Permalink
Flush logger before waiting for input on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
GXTX authored Oct 3, 2024
1 parent db93909 commit c508a33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const char *helptext =
void WaitForInput()
{
#ifdef _WIN32
g_logger->flush();
std::cout << "Press any key to close the application...";
std::cin.get();
#endif
Expand Down

0 comments on commit c508a33

Please sign in to comment.