Simplify XPlane CSL model strings

Before this change, the model strings were assembled via some
relatives pathes - long and very hard to read. Now it is assembled
via the pattern

<package root dir> <dir> ... <objectname> <texturename>

<package root dir> = the parent directory of xsb_aircrafts.txt
<dir> ... = directory hierarchy down to the object file

refs #574
This commit is contained in:
Roland Winklmeier
2016-02-20 21:06:40 +01:00
parent d8eda7ea4b
commit b185d10463
3 changed files with 105 additions and 31 deletions

View File

@@ -69,7 +69,13 @@ namespace BlackMisc
private:
struct CSLPlane
{
QString modelName; //!< Unique model name
QString getModelName() const;
// Model name parts
QStringList dirNames; //!< List dir names starting from xsb_aircrafts.txt parent down to obj folder
QString objectName; //!< Complete basename of the object file
QString textureName; //!< Complete basename of the texture file
QString filePath; //!< object filePath
QString icao; //!< Icao type of this model
QString airline; //!< Airline identifier. Can be empty.