Subversion Repositories spk

Rev

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

Rev 125 Rev 127
Line 385... Line 385...
385
Utils::String CVirtualFileSystem::_extract(const Utils::String &sFile, const Utils::String &sTo)
385
Utils::String CVirtualFileSystem::_extract(const Utils::String &sFile, const Utils::String &sTo)
386
{
386
{
387
	// check if we need to unpack the file
387
	// check if we need to unpack the file
388
	if ( CCatFile::CheckPackedExtension(sFile) ) {
388
	if ( CCatFile::CheckPackedExtension(sFile) ) {
389
		CFileIO File(sFile);
389
		CFileIO File(sFile);
390
		C_File f(CyString(File.fullFilename()));
390
		C_File f(File.fullFilename());
391
		if ( !f.readFromFile(File) ) return "";
391
		if ( !f.readFromFile(File) ) return "";
392
		if ( !f.UnPCKFile() ) return "";
392
		if ( !f.UnPCKFile() ) return "";
393
		if ( !f.WriteToFile(sTo) ) return "";
393
		if ( !f.WriteToFile(sTo) ) return "";
394
		return sTo;
394
		return sTo;
395
	}
395
	}