Subversion Repositories spk

Rev

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

Rev 1 Rev 49
Line 39... Line 39...
39
			this->listView1->Groups->Add(gcnew ListViewGroup("Mods", HorizontalAlignment::Left));
39
			this->listView1->Groups->Add(gcnew ListViewGroup("Mods", HorizontalAlignment::Left));
40
 
40
 
41
			m_pCurrentItem = nullptr;
41
			m_pCurrentItem = nullptr;
42
			m_lAddress = new CyStringList;
42
			m_lAddress = new CyStringList;
43
 
43
 
44
			for ( CBaseFile *package = p->PackageList()->First(); package; package = p->PackageList()->Next() )
44
			for ( CBaseFile *package = p->PackageList()->First(); package; package = p->PackageList()->Next() ) {
45
			{
-
 
46
				if ( !package->GetWebAddress().Empty() )
45
				if ( !package->webAddress().empty() ) this->AddPackage(package);
47
					this->AddPackage(package);
-
 
48
			}
46
			}
49
 
47
 
50
			this->UpdateList();
48
			this->UpdateList();
51
		}
49
		}
52
 
50
 
Line 274... Line 272...
274
			// add all address
272
			// add all address
275
			if ( m_pDownloadPackage )
273
			if ( m_pDownloadPackage )
276
				m_lAddress->PushBack(m_pDownloadPackage->sFilename);
274
				m_lAddress->PushBack(m_pDownloadPackage->sFilename);
277
			else if ( m_pPackage )
275
			else if ( m_pPackage )
278
			{
276
			{
279
				m_lAddress->PushBack(m_pPackage->GetWebAddress());
277
				m_lAddress->PushBack(CyString(m_pPackage->webAddress()));
280
				for ( int i = 0; i < m_pPackage->GetMaxWebMirrors(); i++ )
278
				for ( int i = 0; i < m_pPackage->GetMaxWebMirrors(); i++ )
281
					m_lAddress->PushBack(m_pPackage->GetWebMirror(i));
279
					m_lAddress->PushBack(m_pPackage->GetWebMirror(i));
282
			}
280
			}
283
			else
281
			else
284
				return;
282
				return;