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 316... Line 316...
316
						else
316
						else
317
							sGames = sGames + L", " + sGame;
317
							sGames = sGames + L", " + sGame;
318
					}
318
					}
319
				}
319
				}
320
				if(sGames.empty())
320
				if(sGames.empty())
321
					item->SubItems->Add(_US("All Games"));
321
					item->SubItems->Add(L"All Games");
322
				else
322
				else
323
					item->SubItems->Add(_US(sGames));
323
					item->SubItems->Add(_US(sGames));
324
			}
324
			}
325
			else
325
			else
326
			{
326
			{
Line 705... Line 705...
705
			if ( !fileList.empty() )
705
			if ( !fileList.empty() )
706
			{
706
			{
707
				AddDialog ^ad = gcnew AddDialog(NULL, m_pMultiPackage);
707
				AddDialog ^ad = gcnew AddDialog(NULL, m_pMultiPackage);
708
				for(auto itr = fileList.begin(); itr != fileList.end(); itr++)
708
				for(auto itr = fileList.begin(); itr != fileList.end(); itr++)
709
				{
709
				{
710
					if ((*itr)->data != "-1")
710
					if ((*itr)->data != L"-1")
711
						continue;
711
						continue;
712
 
712
 
713
					Utils::WString ext = CFileIO((*itr)->str).extension();
713
					Utils::WString ext = CFileIO((*itr)->str).extension();
714
					if ( !ext.Compare(L"xsp") && !ext.Compare(L"spk") )
714
					if ( !ext.Compare(L"xsp") && !ext.Compare(L"spk") )
715
						continue;
715
						continue;
Line 1001... Line 1001...
1001
					break;
1001
					break;
1002
 
1002
 
1003
				case FILETYPE_MOD:
1003
				case FILETYPE_MOD:
1004
					if ( m_pPackage->extractFile(f, _WS(IO::Path::GetTempPath()), false) )
1004
					if ( m_pPackage->extractFile(f, _WS(IO::Path::GetTempPath()), false) )
1005
					{
1005
					{
1006
						if ( f->checkFileExt("cat") )
1006
						if ( f->checkFileExt(L"cat") )
1007
						{
1007
						{
1008
							C_File *datFile = m_pPackage->findFile(CFileIO(f).changeFileExtension(L"dat"), FILETYPE_MOD, L"");
1008
							C_File *datFile = m_pPackage->findFile(CFileIO(f).changeFileExtension(L"dat"), FILETYPE_MOD, L"");
1009
							if ( datFile )
1009
							if ( datFile )
1010
							{
1010
							{
1011
								if ( m_pPackage->extractFile(datFile, _WS(IO::Path::GetTempPath()), false) )
1011
								if ( m_pPackage->extractFile(datFile, _WS(IO::Path::GetTempPath()), false) )
1012
									process->StartInfo->FileName = IO::Path::GetTempPath() + "\\" + _US(f->name());
1012
									process->StartInfo->FileName = IO::Path::GetTempPath() + "\\" + _US(f->name());
1013
							}
1013
							}
1014
						}
1014
						}
1015
						else if ( f->checkFileExt("dat") )
1015
						else if ( f->checkFileExt(L"dat") )
1016
						{
1016
						{
1017
							C_File *catFile = m_pPackage->findFile(CFileIO(f).changeFileExtension(L"cat"), FILETYPE_MOD, L"");
1017
							C_File *catFile = m_pPackage->findFile(CFileIO(f).changeFileExtension(L"cat"), FILETYPE_MOD, L"");
1018
							if ( catFile )
1018
							if ( catFile )
1019
							{
1019
							{
1020
								if ( m_pPackage->extractFile(catFile, _WS(IO::Path::GetTempPath()), false) )
1020
								if ( m_pPackage->extractFile(catFile, _WS(IO::Path::GetTempPath()), false) )