From 4453bec3de4fd5f8ce89f9147e93d4b1c09b6e4b Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 4 Feb 2002 22:06:37 +0000 Subject: [PATCH] Print the usage message as well if a base package version mismatch is detected. --- src/Main/main.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index fd8ff4982..62ffdf05f 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -150,6 +150,7 @@ sgVec3 rway_ols; #include "globals.hxx" #include "splash.hxx" #include "viewmgr.hxx" +#include "options.hxx" #ifdef macintosh # include // -dw- for command line dialog @@ -1474,6 +1475,9 @@ int mainLoop( int argc, char **argv ) { // Check for the correct base package version string base_version = fgBasePackageVersion(); if ( !(base_version == "0.7.9") ) { + // tell the operator how to use this application + fgUsage(); + SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... " << "Found version " << base_version ); SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version 0.7.9" ); -- 2.39.5