From 84e89ce9c8d668803347a976c52ace22e680b96c Mon Sep 17 00:00:00 2001 From: Nayd Date: Sun, 29 Sep 2019 01:33:46 +0200 Subject: [PATCH] Tools/ConnectionPatcher: Pause program when an error happens Similar to what is done in mmaps_generator and vmap4_extractor. This hopefully reduces the number of problems that Windows users have when patching fails. --- src/tools/connection_patcher/Program.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp index 7cc67a2fabb..1a551fb2e29 100644 --- a/src/tools/connection_patcher/Program.cpp +++ b/src/tools/connection_patcher/Program.cpp @@ -216,6 +216,8 @@ int main(int argc, char** argv) catch (std::exception const& ex) { std::cerr << "EX: " << ex.what() << std::endl; + std::cerr << "An error occurred. Press ENTER to continue..."; + std::cin.get(); return 1; } }