mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
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:
committed by
Klaus Basan
parent
1fecf65a40
commit
1a63c00a71
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user