Skip to content

Commit

Permalink
Windows: if a CMD switch immediately exits, wait for an Enter press
Browse files Browse the repository at this point in the history
Helpful if a developer is testing --help from Visual Studio, for example.
  • Loading branch information
jyrkive authored and GregoryLundberg committed Nov 30, 2017
1 parent a64cc4f commit c7b87ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wesnoth.cpp
Expand Up @@ -582,6 +582,13 @@ static int do_gameloop(const std::vector<std::string>& args)
game_config::wesnoth_program_dir = filesystem::directory_name(args[0]);
int finished = process_command_args(cmdline_opts);
if(finished != -1) {
#ifdef _WIN32
if(lg::using_own_console()) {
std::cerr << "Press enter to continue..." << std::endl;
std::cin.get();
}
#endif

return finished;
}

Expand Down

0 comments on commit c7b87ab

Please sign in to comment.