Subversion Repositories spk

Rev

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

Rev 8 Rev 9
Line 1256... Line 1256...
1256
	this->AddFile ( file );
1256
	this->AddFile ( file );
1257
 
1257
 
1258
	CLog::logf( "Size: %s", file->GetDataSizeString().c_str() );
1258
	CLog::logf( "Size: %s", file->GetDataSizeString().c_str() );
1259
 
1259
 
1260
	return d;
1260
	return d;
-
 
1261
}
-
 
1262
 
-
 
1263
CSpkFile *CSpkFile::convertFromOld(const Utils::String &sOldFilename)
-
 
1264
{
-
 
1265
	// check if the old file is actually in an old format
-
 
1266
	int ret = CBaseFile::CheckFile ( sOldFilename );
-
 
1267
	if ( ret != SPKFILE_INVALID && ret != SPKFILE_OLD ) {
-
 
1268
		return NULL;
-
 
1269
 	}
-
 
1270
 
-
 
1271
	CSpkFile *pSpkFile = new CSpkFile();
-
 
1272
	if ( !pSpkFile->convertOld(sOldFilename) ) {
-
 
1273
		delete pSpkFile;
-
 
1274
		return NULL;
-
 
1275
	}
-
 
1276
 
-
 
1277
	return pSpkFile;
1261
}
1278
}
1262
 
1279
 
1263
bool CSpkFile::convertOld(const Utils::String &sOldFilename)
1280
bool CSpkFile::convertOld(const Utils::String &sOldFilename)
1264
{
1281
{
1265
	// check if the old file is actually in an old format
1282
	// check if the old file is actually in an old format