Subversion Repositories spk

Rev

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

Rev 48 Rev 49
Line 1382... Line 1382...
1382
		this->AddGameCompatability(rest.token(" ", 1), rest.tokens(" ", 2));
1382
		this->AddGameCompatability(rest.token(" ", 1), rest.tokens(" ", 2));
1383
	else if ( first.Compare("GameCompatExact:") )
1383
	else if ( first.Compare("GameCompatExact:") )
1384
		this->AddGameCompatability(rest.token(" ", 1), rest.tokens(" ", 2));
1384
		this->AddGameCompatability(rest.token(" ", 1), rest.tokens(" ", 2));
1385
	else if ( first.Compare("Date:") )
1385
	else if ( first.Compare("Date:") )
1386
		m_sCreationDate = rest;
1386
		m_sCreationDate = rest;
1387
	else if ( first.Compare("WebAddress:") )
1387
	else if ( first.Compare("WebAddress:") )		this->setWebAddress(rest);
1388
		m_sWebAddress = rest;
-
 
1389
	else if ( first.Compare("WebSite:") )
1388
	else if ( first.Compare("WebSite:") )			this->setWebSite(rest);
1390
		m_sWebSite = rest;
-
 
1391
	else if ( first.Compare("Email:") )
1389
	else if ( first.Compare("Email:") )				this->setEmail(rest);
1392
		m_sEmail = rest;
-
 
1393
	else if ( first.Compare("WebMirror1:") || first.Compare("Mirror1:") || first.Compare("WebMirror:") )
1390
	else if ( first.Compare("WebMirror1:") || first.Compare("Mirror1:") || first.Compare("WebMirror:") )
1394
		this->AddWebMirror(rest);
1391
		this->AddWebMirror(rest);
1395
	else if ( first.Compare("WebMirror2:") || first.Compare("Mirror2:") )
1392
	else if ( first.Compare("WebMirror2:") || first.Compare("Mirror2:") )
1396
		this->AddWebMirror(rest);
1393
		this->AddWebMirror(rest);
1397
	else if ( first.Compare("PluginType:") )		this->setPluginType(rest);
1394
	else if ( first.Compare("PluginType:") )		this->setPluginType(rest);
Line 1409... Line 1406...
1409
		this->AddNeededLibrary(rest.token("||", 1), rest.token("||", 2), rest.token("||", 3));
1406
		this->AddNeededLibrary(rest.token("||", 1), rest.token("||", 2), rest.token("||", 3));
1410
	else if ( first.Compare("FakePatchBefore:") )
1407
	else if ( first.Compare("FakePatchBefore:") )
1411
		this->AddFakePatchOrder(false, rest.token("||", 1), rest.token("||", 2));
1408
		this->AddFakePatchOrder(false, rest.token("||", 1), rest.token("||", 2));
1412
	else if ( first.Compare("FakePatchAfter:") )
1409
	else if ( first.Compare("FakePatchAfter:") )
1413
		this->AddFakePatchOrder(true, rest.token("||", 1), rest.token("||", 2));
1410
		this->AddFakePatchOrder(true, rest.token("||", 1), rest.token("||", 2));
1414
	else if ( first.Compare("ForumLink:") )
1411
	else if ( first.Compare("ForumLink:") )			this->setForumLink(rest);
1415
		m_sForumLink = rest;
-
 
1416
	else
1412
	else
1417
		return false;
1413
		return false;
1418
 
1414
 
1419
	return true;
1415
	return true;
1420
}
1416
}
Line 1786... Line 1782...
1786
	values += Utils::String(m_sName.ToString()) + "\n";
1782
	values += Utils::String(m_sName.ToString()) + "\n";
1787
	values += Utils::String("Author: ") + m_sAuthor.ToString() + "\n";
1783
	values += Utils::String("Author: ") + m_sAuthor.ToString() + "\n";
1788
	values += Utils::String("Version: ") + m_sVersion.ToString() + "\n";
1784
	values += Utils::String("Version: ") + m_sVersion.ToString() + "\n";
1789
	if ( !m_sCreationDate.Empty() )
1785
	if ( !m_sCreationDate.Empty() )
1790
		values += Utils::String("Date: ") + m_sCreationDate.ToString() + "\n";
1786
		values += Utils::String("Date: ") + m_sCreationDate.ToString() + "\n";
1791
	if ( !m_sWebAddress.Empty() )
-
 
-
 
1787
 
1792
		values += Utils::String("WebAddress: ") + m_sWebAddress.ToString() + "\n";
1788
	if ( !this->webAddress().empty() )	values += "WebAddress: "	+ this->webAddress()	+ "\n";
1793
	if ( !m_sWebSite.Empty() )
-
 
1794
		values += Utils::String("WebSite: ") + m_sWebSite.ToString() + "\n";
1789
	if ( !this->webSite().empty() )		values += "WebSite: "		+ this->webSite()		+ "\n";
1795
	if ( !m_sEmail.Empty() )
1790
	if ( !this->email().empty() )		values += "Email: "			+ this->email()			+ "\n";
1796
		values += Utils::String("Email: ") + m_sEmail.ToString() + "\n";
1791
	if ( !this->forumLink().empty() )	values += "ForumLink: "		+ this->forumLink()		+ "\n";
-
 
1792
 
1797
	for ( SStringList *str = m_lMirrors.Head(); str; str = str->next )
1793
	for ( SStringList *str = m_lMirrors.Head(); str; str = str->next )
1798
		values += Utils::String("WebMirror: ") + str->str.ToString() + "\n";
1794
		values += Utils::String("WebMirror: ") + str->str.ToString() + "\n";
1799
	if ( !this->description().empty() ) {
1795
	if ( !this->description().empty() ) {
1800
		Utils::String desc = this->description();
1796
		Utils::String desc = this->description();
1801
		desc = desc.findReplace("<newline>", "<br>");
1797
		desc = desc.findReplace("<newline>", "<br>");
Line 1808... Line 1804...
1808
		if ( !gc->Data()->sVersion.empty() )
1804
		if ( !gc->Data()->sVersion.empty() )
1809
			values += Utils::String("GameCompatExact: ") + (long)gc->Data()->iGame + " " + gc->Data()->sVersion + "\n";
1805
			values += Utils::String("GameCompatExact: ") + (long)gc->Data()->iGame + " " + gc->Data()->sVersion + "\n";
1810
		else
1806
		else
1811
			values += Utils::String("GameCompat: ") + (long)gc->Data()->iGame + " " + (long)gc->Data()->iVersion + "\n";
1807
			values += Utils::String("GameCompat: ") + (long)gc->Data()->iGame + " " + (long)gc->Data()->iVersion + "\n";
1812
	}
1808
	}
1813
	if ( !m_sForumLink.Empty() )
-
 
1814
		values += Utils::String("ForumLink: ") + m_sForumLink.ToString() + "\n";
-
 
1815
 
1809
 
1816
	if ( m_bSigned )
1810
	if ( m_bSigned )
1817
		values += "Signed\n";
1811
		values += "Signed\n";
1818
 
1812
 
1819
	for ( int j = 0; j < 2; j++ ) {
1813
	for ( int j = 0; j < 2; j++ ) {
Line 2366... Line 2360...
2366
		list->PushBack("# The description of the script, displays when installing");
2360
		list->PushBack("# The description of the script, displays when installing");
2367
		list->PushBack(CyString("Description: ") + this->description());
2361
		list->PushBack(CyString("Description: ") + this->description());
2368
		list->PushBack("");
2362
		list->PushBack("");
2369
	}
2363
	}
2370
 
2364
 
2371
	if ( !m_sWebSite.Empty() )
2365
	if ( !this->webSite().empty() ) {
2372
	{
-
 
2373
		list->PushBack("# A link to the website for the script, ie for an online help page");
2366
		list->PushBack("# A link to the website for the script, ie for an online help page");
2374
		list->PushBack(CyString("WebSite: ") + m_sWebSite);
2367
		list->PushBack(CyString("WebSite: ") + this->webSite());
2375
		list->PushBack("");
2368
		list->PushBack("");
2376
	}
2369
	}
2377
 
2370
 
2378
	if ( !m_sForumLink.Empty() )
2371
	if ( !this->forumLink().empty() ) {
2379
	{
-
 
2380
		list->PushBack("# A direct link to the thread in the egosoft forum");
2372
		list->PushBack("# A direct link to the thread in the egosoft forum");
2381
		list->PushBack(CyString("ForumLink: ") + m_sForumLink);
2373
		list->PushBack(CyString("ForumLink: ") + this->forumLink());
2382
		list->PushBack("");
2374
		list->PushBack("");
2383
	}
2375
	}
2384
 
2376
 
2385
	if ( !m_sWebAddress.Empty() )
2377
	if ( !this->webAddress().empty() ) {
2386
	{
-
 
2387
		list->PushBack("# A link to the address for the update file");
2378
		list->PushBack("# A link to the address for the update file");
2388
		list->PushBack(CyString("WebAddress: ") + m_sWebAddress);
2379
		list->PushBack(CyString("WebAddress: ") + this->webAddress());
2389
		list->PushBack("");
2380
		list->PushBack("");
2390
	}
2381
	}
2391
 
2382
 
2392
	if ( !m_sEmail.Empty() )
2383
	if ( !this->email().empty() ) {
2393
	{
-
 
2394
		list->PushBack("# The email address of the author, to allow users to contract if needed");
2384
		list->PushBack("# The email address of the author, to allow users to contract if needed");
2395
		list->PushBack(CyString("Email: ") + m_sEmail);
2385
		list->PushBack(CyString("Email: ") + this->email());
2396
		list->PushBack("");
2386
		list->PushBack("");
2397
	}
2387
	}
2398
 
2388
 
2399
	if ( m_lMirrors.Count() )
2389
	if ( m_lMirrors.Count() )
2400
	{
2390
	{
Line 2693... Line 2683...
2693
		else if ( sFirst.Compare("AutoRarExport") )
2683
		else if ( sFirst.Compare("AutoRarExport") )
2694
			m_sExportFilename = CFileIO(filename).ChangeFileExtension("rar");
2684
			m_sExportFilename = CFileIO(filename).ChangeFileExtension("rar");
2695
		else
2685
		else
2696
			m_sFilename = filename;
2686
			m_sFilename = filename;
2697
	}
2687
	}
2698
	else if ( sFirst.Compare("WebSite") )
2688
	else if ( sFirst.Compare("WebSite") )		this->setWebSite(sRest);
2699
		m_sWebSite = sRest;
-
 
2700
	else if ( sFirst.Compare("ForumLink") || sFirst.Compare("Forum") )
2689
	else if ( sFirst.Compare("ForumLink") || sFirst.Compare("Forum") ) this->setForumLink(sRest);
2701
		m_sForumLink = sRest;
-
 
2702
	else if ( sFirst.Compare("Email") )
2690
	else if ( sFirst.Compare("Email") )			this->setEmail(sRest);
2703
		m_sEmail = sRest;
-
 
2704
	else if ( sFirst.Compare("WebAddress") )
2691
	else if ( sFirst.Compare("WebAddress") )	this->setWebAddress(sRest);
2705
		m_sWebAddress = sRest;
-
 
2706
	else if ( sFirst.Compare("WebMirror") )
2692
	else if ( sFirst.Compare("WebMirror") )
2707
		this->AddWebMirror(sRest);
2693
		this->AddWebMirror(sRest);
2708
	else if ( sFirst.Compare("WebMirror1") )
2694
	else if ( sFirst.Compare("WebMirror1") )
2709
		this->AddWebMirror(sRest);
2695
		this->AddWebMirror(sRest);
2710
	else if ( sFirst.Compare("WebMirror2") )
2696
	else if ( sFirst.Compare("WebMirror2") )