mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Fix some console window behavior on Windows
This commit is contained in:
parent
7c7ae79f9f
commit
8db4ba9e58
@ -213,6 +213,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Run unit tests
|
||||
if (cmd_args.getFlag("run-unittests")) {
|
||||
porting::attachOrCreateConsole();
|
||||
#if BUILD_UNITTESTS
|
||||
if (cmd_args.exists("test-module"))
|
||||
return run_tests(cmd_args.get("test-module")) ? 0 : 1;
|
||||
@ -228,6 +229,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Run benchmarks
|
||||
if (cmd_args.getFlag("run-benchmarks")) {
|
||||
porting::attachOrCreateConsole();
|
||||
#if BUILD_BENCHMARKS
|
||||
if (cmd_args.exists("test-module"))
|
||||
return run_benchmarks(cmd_args.get("test-module").c_str()) ? 0 : 1;
|
||||
@ -635,6 +637,7 @@ static bool use_debugger(int argc, char *argv[])
|
||||
continue;
|
||||
new_args.push_back(argv[i]);
|
||||
}
|
||||
new_args.push_back("--console");
|
||||
new_args.push_back(nullptr);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user