From de579c6f0d298bc551addf02b001addea6b698ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Mar 2013 00:38:20 +0300 Subject: Fix termination with using help and version command line switches. --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d9c726a2c..8e9105b64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,6 +27,7 @@ #include #include +#include #include "utils/gettext.h" #ifdef ANDROID @@ -238,12 +239,12 @@ int main(int argc, char *argv[]) if (options.printHelp) { printHelp(); - return 0; + _exit(0); } else if (options.printVersion) { printVersion(); - return 0; + _exit(0); } // Initialize PhysicsFS -- cgit v1.2.3-70-g09d2