Tweak launcher location-arg knock-out mode.
Allow setting of various secondary location args without knocking out the main ones. The user arg values still override, but this allows selecting a runway (for example) and manually setting altitude / heading / offset if desired.
This commit is contained in:
parent
602c2c30dd
commit
d126c5a3da
1 changed files with 4 additions and 6 deletions
|
@ -129,7 +129,7 @@ bool LauncherArgumentTokenizer::isValid() const
|
|||
}
|
||||
|
||||
const std::set<std::string> unsupportedArgs({
|
||||
"fg-aircraft", "fg-root", "fg-home", "aircraft-dir", "fg-scenery"});
|
||||
"fg-aircraft", "fg-root", "fg-home", "aircraft-dir"});
|
||||
|
||||
bool LauncherArgumentTokenizer::haveUnsupportedArgs() const
|
||||
{
|
||||
|
@ -147,11 +147,9 @@ void LauncherArgumentTokenizer::setArgString(QString argString)
|
|||
}
|
||||
|
||||
const std::set<std::string> positionalArgs({
|
||||
"lat", "lon", "vc", "vor", "ndb", "fix"
|
||||
"airport", "parkpos", "runway",
|
||||
"heading", "altitude", "offset-azimuth",
|
||||
"offset-distance", "glideslope",
|
||||
"on-ground"});
|
||||
"lat", "lon", "vor", "ndb", "fix"
|
||||
"airport", "parkpos", "runway"
|
||||
});
|
||||
|
||||
bool LauncherArgumentTokenizer::haveArgsIn(const std::set<std::string>& args) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue