Change CService::getAircraftLivery() to return livery without path

CService::getAircraftLivery() is expected to return the livery name itself
without the full path.

ref T378
This commit is contained in:
Roland Winklmeier
2018-10-18 15:01:16 +02:00
committed by Klaus Basan
parent 1fecf65a40
commit 1a63c00a71
3 changed files with 13 additions and 2 deletions

View File

@@ -104,6 +104,16 @@ namespace XSwiftBus
return acfProperties.modelName;
}
std::string CService::getAircraftLivery() const
{
std::string liveryPath = m_liveryPath.get();
if (liveryPath.empty()) { return {}; }
// liveryPath end with / and we need to get rid of it
liveryPath.pop_back();
return getFileName(liveryPath);
}
int CService::getXPlaneVersionMajor() const
{
int version;