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 880... Line 880...
880
			this->AddGameCompatability(gNode->Data()->iGame, gNode->Data()->sVersion);
880
			this->AddGameCompatability(gNode->Data()->iGame, gNode->Data()->sVersion);
881
		else
881
		else
882
			this->AddGameCompatability(gNode->Data()->iGame, (long)gNode->Data()->iVersion);
882
			this->AddGameCompatability(gNode->Data()->iGame, (long)gNode->Data()->iVersion);
883
	}
883
	}
884
 
884
 
885
	if ( !base->GetWebAddress().Empty() )
-
 
886
		m_sWebAddress = base->GetWebAddress();
-
 
887
	if ( !base->GetWebSite().Empty() )
-
 
888
		m_sWebSite = base->GetWebSite();
-
 
889
	if ( !base->GetEmail().Empty() )
-
 
890
		m_sEmail = base->GetEmail();
-
 
891
	if ( !base->GetForumLink().Empty() )
-
 
892
		m_sForumLink = base->GetForumLink();
-
 
893
 
-
 
894
 
-
 
895
	// copy over needed librarys
885
	// copy over needed librarys
896
	for ( CListNode<SNeededLibrary> *lNode = base->GetNeededLibraries()->Front(); lNode; lNode = lNode->next() )
886
	for ( CListNode<SNeededLibrary> *lNode = base->GetNeededLibraries()->Front(); lNode; lNode = lNode->next() )
897
		this->AddNeededLibrary(lNode->Data()->sName, lNode->Data()->sAuthor, lNode->Data()->sMinVersion);
887
		this->AddNeededLibrary(lNode->Data()->sName, lNode->Data()->sAuthor, lNode->Data()->sMinVersion);
898
 
888
 
899
	// web mirror address, add any new ones
889
	// web mirror address, add any new ones
Line 1083... Line 1073...
1083
	}
1073
	}
1084
	else if ( sCmd == "Desc:" ) {
1074
	else if ( sCmd == "Desc:" ) {
1085
		this->setDescription(sRest.findReplace("<br>", "\n") );
1075
		this->setDescription(sRest.findReplace("<br>", "\n") );
1086
		CLog::logf(CLog::Log_EditPackage, "\tScript Description: %s", this->description().c_str() );
1076
		CLog::logf(CLog::Log_EditPackage, "\tScript Description: %s", this->description().c_str() );
1087
	}
1077
	}
1088
	else if ( sCmd == "WebAddress:" )
1078
	else if ( sCmd == "WebAddress:" ) {
1089
	{
-
 
1090
		this->SetWebAddress ( sRest );
1079
		this->setWebAddress(sRest);
1091
		CLog::logf(CLog::Log_EditPackage, "\tWeb Address: %s", sRest.c_str() );
1080
		CLog::logf(CLog::Log_EditPackage, "\tWeb Address: %s", sRest.c_str() );
1092
	}
1081
	}
1093
	else if ( sCmd == "WebMirror1:" )
1082
	else if ( sCmd == "WebMirror1:" )
1094
	{
1083
	{
1095
		this->AddWebMirror(sRest);
1084
		this->AddWebMirror(sRest);
Line 1101... Line 1090...
1101
		CLog::logf(CLog::Log_EditPackage, "\tWeb Mirror Address: %s", sRest.c_str() );
1090
		CLog::logf(CLog::Log_EditPackage, "\tWeb Mirror Address: %s", sRest.c_str() );
1102
	}
1091
	}
1103
	
1092
	
1104
	else if ( sCmd == "ScriptType:" )
1093
	else if ( sCmd == "ScriptType:" )
1105
		this->SetScriptType (sRest);
1094
		this->SetScriptType (sRest);
1106
	else if ( sCmd == "WebSite:" )
1095
	else if ( sCmd == "WebSite:" ) {
1107
	{
-
 
1108
		this->SetWebSite ( sRest );
1096
		this->setWebSite ( sRest );
1109
		CLog::logf(CLog::Log_EditPackage, "\tWeb Site: %s", sRest.c_str() );
1097
		CLog::logf(CLog::Log_EditPackage, "\tWeb Site: %s", sRest.c_str() );
1110
	}
1098
	}
1111
	else if ( sCmd == "Email:" )
1099
	else if ( sCmd == "Email:" ) {
1112
	{
-
 
1113
		this->SetEmail ( sRest );
1100
		this->setEmail(sRest);
1114
		CLog::logf(CLog::Log_EditPackage, "\tAuthor Email Address: %s", sRest.c_str() );
1101
		CLog::logf(CLog::Log_EditPackage, "\tAuthor Email Address: %s", sRest.c_str() );
1115
	}
1102
	}
1116
	else if ( sCmd == "GameVersion:" )
1103
	else if ( sCmd == "GameVersion:" )
1117
	{
1104
	{
1118
		//TODO: fix this for new game version
1105
		//TODO: fix this for new game version