Subversion Repositories spk

Rev

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

Rev 225 Rev 226
Line 19... Line 19...
19
			m_bFoundPackages = true;
19
			m_bFoundPackages = true;
20
			CBaseFile *p = m_pPackages->GetEnabledMod();
20
			CBaseFile *p = m_pPackages->GetEnabledMod();
21
			this->TextMod->Text = _US(p->name(m_pPackages->GetLanguage()));
21
			this->TextMod->Text = _US(p->name(m_pPackages->GetLanguage()));
22
			this->TextAuthor->Text = _US(p->author());
22
			this->TextAuthor->Text = _US(p->author());
23
			this->TextVersion->Text = _US(p->version());
23
			this->TextVersion->Text = _US(p->version());
24
			this->TextDesc->Text = _US(p->description().findReplace("<br>", "\n").stripHtml());
24
			this->TextDesc->Text = _US(p->description().findReplace(L"<br>", L"\n").stripHtml());
25
			this->TextCreated->Text = _US(p->creationDate());
25
			this->TextCreated->Text = _US(p->creationDate());
26
			ButNoMod->Enabled = true;
26
			ButNoMod->Enabled = true;
27
 
27
 
28
			// update graphic
28
			// update graphic
29
			bool addedIcon = false;
29
			bool addedIcon = false;
Line 225... Line 225...
225
					if ( p->icon()->writeFilePointer() )
225
					if ( p->icon()->writeFilePointer() )
226
						addedIcon = true;
226
						addedIcon = true;
227
				}
227
				}
228
 
228
 
229
				if ( !addedIcon )
229
				if ( !addedIcon )
230
					p->setIcon(NULL, "");
230
					p->setIcon(NULL, L"");
231
			}
231
			}
232
			// get an advert to display
232
			// get an advert to display
233
			if ( p->GetFirstFile(FILETYPE_ADVERT) )
233
			if ( p->GetFirstFile(FILETYPE_ADVERT) )
234
			{
234
			{
235
				bool done = false;
235
				bool done = false;
Line 296... Line 296...
296
					this->FindPackages_Directory(info->RootDirectory + "XPluginManager");
296
					this->FindPackages_Directory(info->RootDirectory + "XPluginManager");
297
			}
297
			}
298
		}
298
		}
299
 
299
 
300
		// read all game directories extra content
300
		// read all game directories extra content
301
		this->FindPackages_Directory(_US((m_pPackages->getCurrentDirectory().findReplace("\\","/") + "/ExtraContent").findReplace("//", "/")));
301
		this->FindPackages_Directory(_US((m_pPackages->getCurrentDirectory().findReplace(L"\\",L"/") + L"/ExtraContent").findReplace(L"//", L"/")));
302
 
302
 
303
		int num = -1;
303
		int num = -1;
304
		for ( CBaseFile *p = m_lAvailablePackages->First(); p; p = m_lAvailablePackages->Next() )
304
		for ( CBaseFile *p = m_lAvailablePackages->First(); p; p = m_lAvailablePackages->Next() )
305
		{
305
		{
306
			p->SetNum(num);
306
			p->SetNum(num);
Line 464... Line 464...
464
					}
464
					}
465
 
465
 
466
					if ( p )
466
					if ( p )
467
					{
467
					{
468
						enabled = true;
468
						enabled = true;
469
						this->TextDescSelected->Text = _US(p->description().findReplace("<br>", "\n").stripHtml());
469
						this->TextDescSelected->Text = _US(p->description().findReplace(L"<br>", L"\n").stripHtml());
470
						m_pSelectedMod = p;
470
						m_pSelectedMod = p;
471
 
471
 
472
						// update graphic
472
						// update graphic
473
						bool addedIcon = false;
473
						bool addedIcon = false;
474
						C_File *picFile = p->GetFirstFile(FILETYPE_ADVERT);
474
						C_File *picFile = p->GetFirstFile(FILETYPE_ADVERT);