From 7d88cf456b70268336970ff584ea0c22deac8bfa Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Sun, 24 Sep 2017 20:07:34 +0200 Subject: update rot files - add config file editor - move telemetry out of minethd --- console.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'console.cpp') diff --git a/console.cpp b/console.cpp index 6a2555b..c6b7d4d 100644 --- a/console.cpp +++ b/console.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef _WIN32 #include @@ -211,3 +212,18 @@ void printer::print_str(const char* str) fflush(logfile); } } + +//Do a press any key for the windows folk. *insert any key joke here* +#ifdef _WIN32 +void win_exit() +{ + printer::inst()->print_str("Press any key to exit."); + get_key(); + std::exit(1); +} + +#else +void win_exit() { + std::exit(1); +} +#endif // _WIN32 -- cgit v1.1