Subversion Repositories spk

Rev

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

Rev 89 Rev 98
Line 591... Line 591...
591
	}
591
	}
592
 
592
 
593
	return "Other";
593
	return "Other";
594
}
594
}
595
 
595
 
596
bool CSpkFile::LoadPackageData(const Utils::String &sFirst, const Utils::String &sRest)
596
bool CSpkFile::LoadPackageData(const Utils::String &sFirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames)
597
{
597
{
598
	if ( sFirst.Compare("ScriptType") )
598
	if ( sFirst.Compare("ScriptType") )
599
	{
599
	{
600
		if ( sRest.Compare("Library") || sRest.Compare("Library Script") )
600
		if ( sRest.Compare("Library") || sRest.Compare("Library Script") )
601
			this->SetLibrary();
601
			this->SetLibrary();
Line 682... Line 682...
682
		}
682
		}
683
		m_lWares.push_back ( ware );
683
		m_lWares.push_back ( ware );
684
		m_pLastWare = ware;
684
		m_pLastWare = ware;
685
	}
685
	}
686
 
686
 
687
	else if ( CBaseFile::LoadPackageData(sFirst, sRest) )
687
	else if ( CBaseFile::LoadPackageData(sFirst, sRest, sMainGame, otherGames) )
688
		return true;
688
		return true;
689
	else
689
	else
690
		return false;
690
		return false;
691
 
691
 
692
	return true;
692
	return true;
Line 694... Line 694...
694
 
694
 
695
bool CSpkFile::GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile)
695
bool CSpkFile::GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile)
696
{
696
{
697
	if ( !CBaseFile::GeneratePackagerScript(wildcard, list, datafile) )
697
	if ( !CBaseFile::GeneratePackagerScript(wildcard, list, datafile) )
698
		return false;
698
		return false;
-
 
699
 
-
 
700
	list->PushBack("# File Type, Script or Ship");
-
 
701
	list->PushBack("FileType: Script");
-
 
702
	list->PushBack("");
699
 
703
 
700
	list->PushBack("# Script Type, the type of package file, some are special types, others are just for show");
704
	list->PushBack("# Script Type, the type of package file, some are special types, others are just for show");
701
	if ( this->IsLibrary() )
705
	if ( this->IsLibrary() )
702
		list->PushBack("ScriptType: Library");
706
		list->PushBack("ScriptType: Library");
703
	else if ( this->IsPackageUpdate() )
707
	else if ( this->IsPackageUpdate() )