Subversion Repositories spk

Rev

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

Rev 81 Rev 82
Line 91... Line 91...
91
	}
91
	}
92
}
92
}
93
 
93
 
94
void CVirtualFileSystem::_addFile(const Utils::String &sFile, const Utils::String &sDest, FileList *pList)
94
void CVirtualFileSystem::_addFile(const Utils::String &sFile, const Utils::String &sDest, FileList *pList)
95
{
95
{
96
	(*pList)[sFile.asFilename().lower()] = sDest.asFilename();
96
	(*pList)[sFile.asFilename().lower()] = sDest.findReplace("//", "/");
97
}
97
}
98
void CVirtualFileSystem::_addModFile(const Utils::String &sFile, const Utils::String &sMod, FileList *pList)
98
void CVirtualFileSystem::_addModFile(const Utils::String &sFile, const Utils::String &sMod, FileList *pList)
99
{
99
{
100
	this->_addFile(sFile, sMod + "::" + sFile, pList);
100
	this->_addFile(sFile, sMod + "::" + sFile, pList);
101
}
101
}
Line 263... Line 263...
263
	return sFile;
263
	return sFile;
264
}
264
}
265
 
265
 
266
CyStringList *CVirtualFileSystem::GetTShipsEntries()
266
CyStringList *CVirtualFileSystem::GetTShipsEntries()
267
{
267
{
268
	Utils::String sTo = this->ExtractGameFile("types/tships.pck", "tships.txt");
268
	Utils::String sTo = this->ExtractGameFile("types/tships.pck", CPackages::tempDirectory() + "/tships.txt");
269
	if ( !sTo.empty() ) {
269
	if ( !sTo.empty() ) {
270
		CFileIO TShips(sTo);
270
		CFileIO TShips(sTo);
271
		if ( TShips.exists() )
271
		if ( TShips.exists() )
272
		{
272
		{
273
			CyStringList *lines = TShips.ReadLinesStr();
273
			CyStringList *lines = TShips.ReadLinesStr();