YASim Version: add tag for version 2017.2
This commit is contained in:
parent
a56f85ac95
commit
583ea27dd6
2 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "Version.hpp"
|
#include "Version.hpp"
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace yasim {
|
namespace yasim {
|
||||||
void Version::setVersion( const char * version )
|
void Version::setVersion( const char * version )
|
||||||
|
@ -15,11 +16,15 @@ void Version::setVersion( const char * version )
|
||||||
_version = YASIM_VERSION_ORIGINAL;
|
_version = YASIM_VERSION_ORIGINAL;
|
||||||
} else if( v == "YASIM_VERSION_32" ) {
|
} else if( v == "YASIM_VERSION_32" ) {
|
||||||
_version = YASIM_VERSION_32;
|
_version = YASIM_VERSION_32;
|
||||||
|
} else if( v == "2017.2" ) {
|
||||||
|
_version = YASIM_VERSION_2017_2;
|
||||||
} else if( v == "YASIM_VERSION_CURRENT" ) {
|
} else if( v == "YASIM_VERSION_CURRENT" ) {
|
||||||
_version = YASIM_VERSION_CURRENT;
|
_version = YASIM_VERSION_CURRENT;
|
||||||
} else {
|
} else {
|
||||||
SG_LOG(SG_FLIGHT,SG_ALERT,"unknown yasim version '" << version << "' ignored, using YASIM_VERSION_ORIGINAL");
|
SG_LOG(SG_FLIGHT,SG_ALERT,"unknown yasim version '" << version << "' ignored, using YASIM_VERSION_ORIGINAL");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
std::cout << "This aircraft uses yasim version '" << v << "'\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace yasim
|
} // namespace yasim
|
||||||
|
|
|
@ -11,7 +11,8 @@ public:
|
||||||
typedef enum {
|
typedef enum {
|
||||||
YASIM_VERSION_ORIGINAL = 0,
|
YASIM_VERSION_ORIGINAL = 0,
|
||||||
YASIM_VERSION_32,
|
YASIM_VERSION_32,
|
||||||
YASIM_VERSION_CURRENT = YASIM_VERSION_32
|
YASIM_VERSION_2017_2,
|
||||||
|
YASIM_VERSION_CURRENT = YASIM_VERSION_2017_2
|
||||||
} YASIM_VERSION;
|
} YASIM_VERSION;
|
||||||
|
|
||||||
void setVersion( const char * version );
|
void setVersion( const char * version );
|
||||||
|
|
Loading…
Reference in a new issue