Subversion Repositories spk

Rev

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

Rev 203 Rev 224
Line 177... Line 177...
177
 
177
 
178
		array <System::String ^> ^Files = Directory::GetFiles(dir, "*.spk");
178
		array <System::String ^> ^Files = Directory::GetFiles(dir, "*.spk");
179
 
179
 
180
		for ( int i = 0; i < Files->Length; i++ )
180
		for ( int i = 0; i < Files->Length; i++ )
181
		{
181
		{
182
			Utils::String file = _S(Files[i]);
182
			Utils::WString file = _WS(Files[i]);
183
			int error = 0;
183
			int error = 0;
184
			CBaseFile *p = m_pPackages->openPackage(file, &error, 0, SPKREAD_NODATA);
184
			CBaseFile *p = m_pPackages->openPackage(file, &error, 0, SPKREAD_NODATA);
185
			if ( !p )
185
			if ( !p )
186
				continue;
186
				continue;
187
			if ( !p->IsMod() || m_pPackages->findSpkPackage(p->name(), p->author()) )
187
			if ( !p->IsMod() || m_pPackages->findSpkPackage(p->name(), p->author()) )