Subversion Repositories spk

Rev

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

Rev 129 Rev 158
Line 216... Line 216...
216
 
216
 
217
			if ( p->GetIcon() )
217
			if ( p->GetIcon() )
218
			{
218
			{
219
				bool addedIcon = false;
219
				bool addedIcon = false;
220
				p->ReadIconFileToMemory();
220
				p->ReadIconFileToMemory();
221
				p->GetIcon()->SetFilename(m_pPackages->GetTempDirectory().FindReplace("\\", "/") + "/" + p->author() + "_" + p->name() + "." + p->GetIconExt());
221
				p->GetIcon()->setFilename(m_pPackages->tempDirectory().findReplace("\\", "/") + "/" + p->author() + "_" + p->name() + "." + p->iconExt());
222
				p->GetIcon()->SetFullDir(m_pPackages->GetTempDirectory());
222
				p->GetIcon()->setFullDir(m_pPackages->tempDirectory());
223
				if ( p->GetIcon()->UncompressData() )
223
				if ( p->GetIcon()->UncompressData() )
224
				{
224
				{
225
					if ( p->GetIcon()->writeFilePointer() )
225
					if ( p->GetIcon()->writeFilePointer() )
226
						addedIcon = true;
226
						addedIcon = true;
227
				}
227
				}
Line 234... Line 234...
234
			{
234
			{
235
				bool done = false;
235
				bool done = false;
236
				C_File *f = p->GetFirstFile(FILETYPE_ADVERT);
236
				C_File *f = p->GetFirstFile(FILETYPE_ADVERT);
237
				if ( p->ReadFileToMemory(f) )
237
				if ( p->ReadFileToMemory(f) )
238
				{
238
				{
239
					f->SetFullDir(m_pPackages->GetTempDirectory());
239
					f->setFullDir(m_pPackages->tempDirectory());
240
					if ( f->UncompressData() )
240
					if ( f->UncompressData() )
241
					{
241
					{
242
						if ( f->writeFilePointer() )
242
						if ( f->writeFilePointer() )
243
							done = true;
243
							done = true;
244
					}
244
					}