Clean up names in --show-aircraft; avoid -set.xml suffixes.
This commit is contained in:
parent
8dd39e773e
commit
bf52c378a4
1 changed files with 5 additions and 0 deletions
|
@ -1777,6 +1777,11 @@ private:
|
|||
int maturity = 0;
|
||||
string descStr(" ");
|
||||
descStr += path.file();
|
||||
// trim common suffix from file names
|
||||
int nPos = descStr.rfind("-set.xml");
|
||||
if (nPos == (int)(descStr.size() - 8)) {
|
||||
descStr.resize(nPos);
|
||||
}
|
||||
|
||||
SGPropertyNode *node = root.getNode("sim");
|
||||
if (node) {
|
||||
|
|
Loading…
Reference in a new issue