Subversion Repositories spk

Rev

Rev 203 | Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 203 Rev 206
Line 1623... Line 1623...
1623
		return german;
1623
		return german;
1624
	// otherwise use any we've found (usually first one)
1624
	// otherwise use any we've found (usually first one)
1625
	return found;
1625
	return found;
1626
}
1626
}
1627
 
1627
 
1628
Utils::WString CXspFile::getTextName(int lang)
1628
Utils::WString CXspFile::textName(int lang)
1629
{
1629
{
1630
	SText *t = FindShipText(lang);
1630
	SText *t = FindShipText(lang);
1631
	if ( t )
1631
	if ( t )
1632
	{
1632
	{
1633
		// return the correct language text
1633
		// return the correct language text
Line 1645... Line 1645...
1645
 
1645
 
1646
	// still not found one, return the ships name
1646
	// still not found one, return the ships name
1647
	return this->shipName(lang);
1647
	return this->shipName(lang);
1648
}
1648
}
1649
 
1649
 
1650
Utils::String CXspFile::GetTextDescription(int lang)
1650
Utils::WString CXspFile::textDescription(int lang)
1651
{
1651
{
1652
	SText *t = FindShipText(lang);
1652
	SText *t = FindShipText(lang);
1653
	if ( t )
1653
	if ( t )
1654
	{
1654
	{
1655
		// return the correct language text
1655
		// return the correct language text
Line 1665... Line 1665...
1665
		}
1665
		}
1666
	}
1666
	}
1667
 
1667
 
1668
	// still not found one, return the ships name
1668
	// still not found one, return the ships name
1669
	if ( !this->description().empty() ) return this->description();
1669
	if ( !this->description().empty() ) return this->description();
1670
	return this->shipName(lang).toString();
1670
	return this->shipName(lang);
1671
}
1671
}
1672
 
1672
 
1673
bool CXspFile::startExtractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *pProgress)
1673
bool CXspFile::startExtractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *pProgress)
1674
{
1674
{
1675
	m_sID = sId.remove('\r');
1675
	m_sID = sId.remove('\r');