X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fmain.cxx;h=6f3c3bb39c1327a867e7726b6a4d0b87a3530a03;hb=76a94d8f0278eeddf692850918526df84a73429c;hp=a840e65bd8026abbed1a615018c16e14a370dba6;hpb=1e474b47736ecd9ad8ad15542c423a610b414ae2;p=flightgear.git diff --git a/src/Main/main.cxx b/src/Main/main.cxx index a840e65bd..6f3c3bb39 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -25,6 +25,8 @@ # include #endif +#include + #ifdef SG_MATH_EXCEPTION_CLASH # include #endif @@ -1479,6 +1481,15 @@ int main( int argc, char **argv ) { // fg_root was specified (ignore all other options for now) fgInitFGRoot(argc, argv); + // Check for the correct base package version + string base_version = fgBasePackageVersion(); + if ( !(base_version == "0.7.9") ) { + 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" ); + exit(-1); + } + // Initialize the Aircraft directory to "" (UIUC) aircraft_dir = "";